Download Print this page

Holtek HTG2190 Manual

8-bit 1024 pixel dot matrix lcd mcu

Advertisement

Quick Links

Features
·
Operating voltage: 2.4V~3.6V
·
64K´16 bits program ROM
·
2.3K´8 bits data RAM
·
15~39 bidirectional I/O lines
·
16 common´40~64 segment LCD driver
·
Two 16-bit programmable timer/event counters with
overflow interrupts
·
One 8-bit programmable timer with 8-stage prescaler
for PFD
·
One 8-bit programmable timer with 8-stage prescaler
for time base
·
One 8-bit PWM audio output to directly drive speaker
or buzzer
·
One 12-bit current type D/A output with 4-bit volume
control
General Description
The HTG2190 is an 8-bit high performance RISC-like
microcontroller capable of driving 1024 pixel (max.)
LCD display. Its single cycle instruction and two-stage
pipeline architecture make it suitable for high speed ap-
plications. The device is suited for use in multiple LCD
Rev. 1.20
8-Bit 1024 Pixel Dot Matrix LCD MCU Series
·
R to F function for temperature measurement
·
Synchronous serial interface
·
On-chip RC oscillator for system clock
·
32768Hz crystal oscillator for time base and LCD
driver
·
Watchdog Timer
·
HALT function and wake-up feature reduce power
consumption
·
Eight-level subroutine nesting
·
Bit manipulation instructions
·
63 powerful instructions
·
Built-in supply voltage detection circuit
·
One interrupt input
·
128-pin QFP package
low power applications among which are calculators,
clock timer, game, scales, leisure products, other hand
held LCD products and battery operated systems in par-
ticular.
1
HTG2190
July 5, 2002

Advertisement

loading
Need help?

Need help?

Do you have a question about the HTG2190 and is the answer not in the manual?

Questions and answers

Summary of Contents for Holtek HTG2190

  • Page 1 One 12-bit current type D/A output with 4-bit volume 128-pin QFP package control General Description The HTG2190 is an 8-bit high performance RISC-like low power applications among which are calculators, microcontroller capable of driving 1024 pixel (max.) clock timer, game, scales, leisure products, other hand LCD display.
  • Page 2: Block Diagram

    HTG2190 Block Diagram ¸ Rev. 1.20 July 5, 2002...
  • Page 3: Pin Assignment

    HTG2190 Pin Assignment 1 2 8 1 2 7 1 2 6 1 2 5 1 2 4 1 2 3 1 2 2 1 2 1 1 2 0 1 1 9 1 1 8 1 1 7 1 1 6 1 1 5 1 1 4 1 1 3 1 1 2 1 1 1 1 1 0 1 0 9 1 0 8 1 0 7 1 0 6 1 0 5 1 0 4 1 0 3...
  • Page 4: Pad Assignment

    HTG2190 Pad Assignment 1 1 2 1 1 4 1 1 3 1 1 1 1 1 0 1 0 9 1 0 8 1 0 7 1 0 6 1 0 5 1 0 4 1 0 3 1 0 2...
  • Page 5 HTG2190 Pad No. Pad No. -1577.85 -1351.53 789.18 1264.67 -1577.85 -1235.20 682.75 1240.28 -1577.85 -1119.38 576.33 1492.25 -1577.85 -991.36 469.65 1515.36 -1577.85 -867.16 363.22 1517.14 -1577.85 -745.49 256.54 1517.14 -1577.85 -596.65 150.11 1517.14 -1577.85 -422.91 43.43 1517.14 -1577.85 -62.99 -271.27 1517.14...
  • Page 6 HTG2190 Pad Descriptions Pad No. Pad Name Mask Option Description 37~1 ¾ SEG0~SEG39 LCD segment signal output 114~112 ¾ 53~38 COM0~COM15 LCD common signal output VOUT11, VOUT22 ¾ 54~57 LCD driving power generated VOUT33, VOUT44 62, 61, CAP1, CAP2, LCD system voltage booster condenser connecting termi- ¾...
  • Page 7: Absolute Maximum Ratings

    HTG2190 Pad No. Pad Name Mask Option Description Selectable as bidirectional input/output or serial interface clock signal by mask option. On bidirectional input/output mode, software instructions determine whether it is a CMOS output or Schmitt trigger input . Serial I/O interface clock signal.
  • Page 8 HTG2190 D.C. Characteristics Ta=25°C Test Conditions Symbol Parameter Min. Typ. Max. Unit Conditions ¾ ¾ ¾ Operating Voltage ¾ No load, f =4MHz Operating Current (RC OSC) ¾ Standby Current (RTC ON, LCD ON) No load, HALT STB1 ¾ Standby Current (RTC ON, LCD OFF)
  • Page 9: Functional Description

    After accessing a program memory word to fetch an in- struction code, the contents of the program counter are The system clock for the HTG2190 is derived from ei- incremented by one. The program counter then points to ther a crystal or an RC oscillator. It is internally divided the memory word containing the next instruction code.
  • Page 10 HTG2190 forms a short jump. The destination must be within 256 0 0 0 0 H D e v i c e i n i t i a l i z a t i o n p r o g r a m locations.
  • Page 11 HTG2190 higher-order byte of the table word are transferred to 0 0 H I A R 0 I n d i r e c t A d d r e s s i n g R e g i s t e r 0...
  • Page 12 LCD driver output dot on the ECB. If the both bits is not 0, the light of the The maximum output number of the HTG2190 LCD dot on the ECB will be turned on. If the both bits is 0, driver is 16´64.
  • Page 13 HTG2190 Register Address Bit No. Label Description P0~P4 Color0 palette COL0 ¾ Unused bit read only P0~P4 Color1 palette COL1 ¾ Unused bit read only P0~P4 Color2 palette COL2 ¾ Unused bit read only How to select the color: Dn+1...
  • Page 14 HTG2190 16COM, 1/4bias LCD clock source=32768Hz 3 / 4 V C O M 0 2 / 4 V 1 / 4 V G N D 3 / 4 V S E G 2 / 4 V 1 / 4 V...
  • Page 15 HTG2190 An example of an LCD driving waveform is shown below. 8 COM, 1/4 bias 3 2 H z 5 1 2 H z 3 / 4 V C O M 0 2 / 4 V 1 / 4 V...
  • Page 16 The ALU provides the following functions: · Arithmetic operations (ADD, ADC, SUB, Interrupt SBC, DAA) The HTG2190 provides external and a PWM D/A inter- · Logic operations (AND, OR, XOR, CPL) rupt and internal timer/event counter interrupts. The in- ·...
  • Page 17 HTG2190 Labels Bits Function C is set if the operation results in a carry during an addition operation or if a borrow does not take place during a subtraction operation; otherwise C is cleared. Also it is affected by a rotate through carry instruction.
  • Page 18 The RTC oscillator is used to provide clock source for Oscillator configuration LCD driver and Timer3. It can be enabled or disabled by mask option. There are two oscillator circuit in the HTG2190. There is another oscillator circuit designed for the real O S C I X I N time clock.
  • Page 19 HTG2190 The WDT oscillator is a free running on-chip RC oscilla- RES), software instructions, or a HALT instruction. The tor, requiring no external components. Even if the sys- software instruction is ²CLR WDT² and execution of the tem enters the power down mode, and the system clock ²CLR WDT²...
  • Page 20 HTG2190 flag is set to ²1² before entering the HALT mode, the V D D wake-up function of the related interrupt will be disabled. R E S S S T To minimize power consumption, all I/O pins should be S S T T i m e - o u t carefully managed before entering the HALT status.
  • Page 21 HTG2190 Reset WDT time-out RES reset RES reset WDT time-out Register (power on) (normal operation) (normal operation) (HALT) (HALT)* TMR0L xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu TMR0C 00-0 1--- 00-0 1--- 00-0 1--- 00-0 1--- uu-u u---...
  • Page 22 Two timer/event counters are implemented in the buffer. Writing to TMR0H will write the data and the con- HTG2190. The Timer/Event Counter 0 and 1 contain tents of the low byte buffer into the Timer/Event Counter 16-bit programmable count-up counters whose clock 0 preload register (16-bit) simultaneously.
  • Page 23 Timer/Event Counter 0 options. R to F function The Timer/Event Counter 1 has the same options as the The HTG2190 provides an ²R to F² (Resistor to Fre- Timer/Event Counter 0 and is defined by TMR1C. quency) function for temperature measurement and so...
  • Page 24 HTG2190 rives as V (input high voltage) of S1 gate, the NMOS to TMR2 location; writing to TMR2 makes the starting will be turned on for discharge. The same manner can value be placed in the Timer 2 preload register and...
  • Page 25 HTG2190 ¸ Timer 2 ¸ Timer 3 Label Bits Function F1 can select 4 frequencies by mask option Auto Mask Option SSL3~0 LCD common used System Clock near 512kHz Enable/disable PFD output (0=disable, 1=enable) System Clock near 1024kHz Enable/disable PFDB output...
  • Page 26 PWM interface rising edge of instruction MOV A,[m] (m=12H, 14H, 16H, The HTG2190 provides an 8 bit (bit7 is a sign bit) PWM 18H, 1AH). For output operation, all data is latched and D/A interface, which is good for speech synthesis. The remain unchanged until the output latch is rewritten.
  • Page 27 ²F1² for PWM modulation clock and F2 for sam- Note: Serial I/O interface function pling clock The serial interface of the HTG2190 has two types of op- ²F0² f /(n+1) n=0~7 (n:3 bits preload counter) eration mode: master mode and slave mode.
  • Page 28 HTG2190 27H.1=0 speaker 27H.1=1 buzzer SOUT is latch data at H to L by fixed mode At initial reset, the slave mode (external clock mode) is selected. Moreover, the synchronous clock, along with SERC the input/output of the 8 bits serial data, is controlled as...
  • Page 29 HTG2190 When the output of the 8 bits data from D0~D7 is com- The input data will be fetched at the rising edge (.1=²0²) pleted, the interrupt factor flag is set to ²1² and interrupt of SCLK. When the input of the 8 bits data from D0~D7 is completed, the interrupt factor flag EIF is set to ²1²...
  • Page 30 HTG2190 ;* use slave mode ;* serial clock=external clock 004h serial_ip ;serial interrupt serialap: ;serial function testing (PA=16h) ;set port A O/P a,serial ;show initial data from serial buffer pa,a serial_i: pbc.5 ;serial clock input serc.2 serc.3 ;select salve mode serc.1...
  • Page 31 HTG2190 Serial I/O Serial data Rev. 1.20 July 5, 2002...
  • Page 32 DAH-DAL will turn off DAC and prevent leakage. voice data to the register DAL (30H) and DAH (31H). Mask option The following shows many kinds of mask options in the HTG2190. All these option should be defined on order to en- sure proper system functioning. Mask Option WDT enable or disable selection.
  • Page 33: Application Circuits

    HTG2190 Application Circuits s p e a k e r / b u z z e r a p p l i c a t i o n s p e a k e r a p p l i c a t i o n...
  • Page 34: Instruction Set Summary

    HTG2190 Instruction Set Summary Instruction Flag Mnemonic Description Cycle Affected Arithmetic ADD A,[m] Add data memory to ACC Z,C,AC,OV ADDM A,[m] Add ACC to data memory Z,C,AC,OV ADD A,x Add immediate data to ACC Z,C,AC,OV ADC A,[m] Add data memory to ACC with carry...
  • Page 35 HTG2190 Instruction Flag Mnemonic Description Cycle Affected Branch Jump unconditionally JMP addr None SZ [m] Skip if data memory is zero None SZA [m] Skip if data memory is zero with data movement to ACC None SZ [m].i Skip if bit i of data memory is zero None SNZ [m].i...
  • Page 36 HTG2190 Instruction Definition ADC A,[m] Add data memory and carry to the accumulator Description The contents of the specified data memory, accumulator and the carry flag are added si- multaneously, leaving the result in the accumulator. ACC ¬ ACC+[m]+C Operation Affected flag(s) ¾...
  • Page 37 HTG2190 AND A,[m] Logical AND accumulator with data memory Description Data in the accumulator and the specified data memory perform a bitwise logical_AND op- eration. The result is stored in the accumulator. ACC ¬ ACC ²AND² [m] Operation Affected flag(s) ¾...
  • Page 38 HTG2190 CLR [m].i Clear bit of data memory Description The bit i of the specified data memory is cleared to 0. [m].i ¬ 0 Operation Affected flag(s) ¾ ¾ ¾ ¾ ¾ ¾ ¾ ¾ CLR WDT Clear Watchdog Timer Description The WDT is cleared (clears the WDT).
  • Page 39 HTG2190 CPLA [m] Complement data memory and place result in the accumulator Description Each bit of the specified data memory is logically complemented (1¢s complement). Bits which previously contained a 1 are changed to 0 and vice-versa. The complemented result is stored in the accumulator and the contents of the data memory remain unchanged.
  • Page 40 HTG2190 HALT Enter power down mode Description This instruction stops program execution and turns off the system clock. The contents of the RAM and registers are retained. The WDT and prescaler are cleared. The power down bit (PD) is set and the WDT time-out bit (TO) is cleared.
  • Page 41 HTG2190 MOV A,x Move immediate data to the accumulator Description The 8-bit data specified by the code is loaded into the accumulator. ACC ¬ x Operation Affected flag(s) ¾ ¾ ¾ ¾ ¾ ¾ ¾ ¾ MOV [m],A Move the accumulator to data memory...
  • Page 42 HTG2190 Return from subroutine Description The program counter is restored from the stack. This is a 2-cycle instruction. PC ¬ Stack Operation Affected flag(s) ¾ ¾ ¾ ¾ ¾ ¾ ¾ ¾ RET A,x Return and place immediate data in the accumulator...
  • Page 43 HTG2190 RLC [m] Rotate data memory left through carry Description The contents of the specified data memory and the carry flag are rotated 1 bit left. Bit 7 re- places the carry bit; the original carry flag is rotated into the bit 0 position.
  • Page 44 HTG2190 RRCA [m] Rotate right through carry and place result in the accumulator Description Data of the specified data memory and the carry flag are rotated 1 bit right. Bit 0 replaces the carry bit and the original carry flag is rotated into the bit 7 position. The rotated result is stored in the accumulator.
  • Page 45 HTG2190 SET [m] Set data memory Description Each bit of the specified data memory is set to 1. [m] ¬ FFH Operation Affected flag(s) ¾ ¾ ¾ ¾ ¾ ¾ ¾ ¾ SET [m]. i Set bit of data memory Description Bit i of the specified data memory is set to 1.
  • Page 46 HTG2190 SUB A,[m] Subtract data memory from the accumulator Description The specified data memory is subtracted from the contents of the accumulator, leaving the result in the accumulator. ACC ¬ ACC+[m]+1 Operation Affected flag(s) ¾ ¾ ¾ ¾ Ö Ö...
  • Page 47 HTG2190 SZ [m] Skip if data memory is 0 Description If the contents of the specified data memory are 0, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (2 cycles).
  • Page 48 HTG2190 XOR A,[m] Logical XOR accumulator with data memory Description Data in the accumulator and the indicated data memory perform a bitwise logical Exclu- sive_OR operation and the result is stored in the accumulator. ACC ¬ ACC ²XOR² [m] Operation Affected flag(s) ¾...
  • Page 49: Package Information

    HTG2190 Package Information 128-pin QFP (14´20) outline dimensions 1 0 2 1 0 3 1 2 8 Dimensions in mm Symbol Min. Nom. Max. 17.00 17.50 ¾ 13.90 14.10 ¾ 23.00 ¾ 23.50 19.90 20.10 ¾ 0.50 ¾ ¾ 0.20 ¾...
  • Page 50 Copyright Ó 2002 by HOLTEK SEMICONDUCTOR INC. The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek as- sumes no responsibility arising from the use of the specifications described. The applications mentioned herein are used...