ht82k68a Holtek Semiconductor Inc., ht82k68a Datasheet

no-image

ht82k68a

Manufacturer Part Number
ht82k68a
Description
Ht82k68a -- Multimedia Keyboard Encoder 8-bit Mask Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Technical Document
Features
General Description
The HT82K68A is an 8-bit high performance peripheral
interface IC, designed for multiple I/O products and mul-
timedia applications. It supports interface to a low speed
PC with multimedia keyboard or wireless keyboard in
Rev. 1.70
Tools Information
FAQs
Application Note
Operating voltage: 2.2V~5.5V
32/34 bidirectional I/O lines
One 8-bit programmable timer counter with overflow
interrupts
Crystal or RC oscillator
Watchdog Timer
3K 16 program ROM
160 8 data RAM
One external interrupt pin (shared with PC2)
Multimedia Keyboard Encoder 8-Bit Mask MCU
1
Windows 95, Windows 98 or Windows 2000
environment. A HALT feature is included to reduce
power consumption.
2.4V LVR by option (default disable)
HALT function and wake-up feature reduce power
consumption
Six-level subroutine nesting
Bit manipulation instructions
16-bit table read instructions
63 powerful instructions
All instructions in 1 or 2 machine cycles
20/28-pin SOP, 48-pin SSOP package
HT82K68A
December 26, 2005

Related parts for ht82k68a

ht82k68a Summary of contents

Page 1

... ROM 160 8 data RAM One external interrupt pin (shared with PC2) General Description The HT82K68A is an 8-bit high performance peripheral interface IC, designed for multiple I/O products and mul- timedia applications. It supports interface to a low speed PC with multimedia keyboard or wireless keyboard in Rev ...

Page 2

... Block Diagram Rev. 1.70 2 December 26, 2005 HT82K68A ...

Page 3

... Bidirectional 4-bit input/output port. Software* instructions determine the CMOS PC4~PC7 I/O or None output or Schmitt trigger input with or without pull-high resistor. Pull-high Bidirectional 8-bit input/output port. Software* instructions determine the CMOS PD0~PD7 I/O or None output or Schmitt Trigger input with or without pull-high resistor. Rev. 1.70 Description 3 December 26, 2005 HT82K68A ...

Page 4

... Storage Temperature ........................... 125 C SS +0.3V Operating Temperature .......................... Test Conditions V Conditions load 6MHz SYS load 6MHz SYS load, system HALT load, system HALT HT82K68A Ta=25 C Min. Typ. Max. Unit 2.2 5.5 V 0 1.5 2 ...

Page 5

... Without WDT prescaler 5V 9 ¾ ¾ Without WDT prescaler 1024 ¾ ¾ 1 Power-up or wake-up ¾ ¾ 1024 from HALT ¾ ¾ HT82K68A Max. Unit ¾ 2.4 V ¾ 1.2 V ¾ 2.3 ¾ ¾ 5 ¾ 0.7 V ¾ 1.3 ¾ ¾ 5 ¾ ...

Page 6

... Functional Description Execution Flow The HT82K68A system clock is derived from either a crystal oscillator. The system clock is internally divided into four non-overlapping clocks. One instruc- tion cycle consists of four system clock cycles. Instruction fetching and execution are pipelined in such a way that a fetch takes one instruction cycle while de- coding and execution takes the next instruction cycle ...

Page 7

... Higher-order byte register (TBLH;08H), the Watchdog Timer option Setting register (WDTS;09H), the Status reg- ister (STATUS;0AH), the Interrupt Control register Table Location P11~P8: Current program counter bits 7 HT82K68A December 26, 2005 ...

Page 8

... In addition, on entering an interrupt sequence or execut- ing a subroutine call, the status register will not be auto- matically pushed onto the stack. If the contents of status are important and if the subroutine can corrupt the sta- tus register, precaution must be taken to save it properly. 8 December 26, 2005 HT82K68A ...

Page 9

... TO is set by a WDT time-out Unused bit, read as 0 Interrupt The HT82K68A provides an internal timer counter inter- rupt and an external interrupt shared with PC2. The in- terrupt control register (INTC;0BH) contains the interrupt control bits to set not only the enable/disable status but also the interrupt request flags. ...

Page 10

... CALL subroutine operates in the in- terrupt subroutine it will damage the original control se- quence. Oscillator Configuration There are two oscillator circuits in HT82K68A. Both are designed for system clocks; the RC oscillator and the Crystal oscillator, which are determined by mask op- tions. No matter what oscillator type is selected, the sig- Rev ...

Page 11

... Once a wake-up event occurs, and the system clock co- mes from a crystal, it takes 1024 t riod) to resume normal operation. In other words, the HT82K68A will insert a dummy period after the wake-up. If the system clock comes from an RC oscillator, it con- tinues operating immediately. If the wake-up results in next instruction execution, this will execute immediately after the dummy period is completed ...

Page 12

... Points to the top of the stack Timer Counter A timer counter (TMR) is implemented in the HT82K68A. The timer counter contains an 8-bit pro- grammable count-up counter and the clock may come from the system clock divided by 4. Using the internal instruction clock, there is only one ref- erence time-base. There are two registers related to the timer counter ...

Page 13

... HT82K68A WDT Time-out (HALT) (HALT) uuuu uuuu 00-0 1--- uu-u u--- 000H 000H uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu -uuu uuuu ...

Page 14

... Input/Output Ports There are 32 bidirectional input/output lines in the HT82K68A, labeled from PA to PE, which are mapped to the data memory of [12H], [14H], [16H], [18H] and [1AH] respectively. All these I/O ports can be used for input and output operations. For input operation, these ports are ...

Page 15

... Since low voltage has to be maintained in its original state and exceed 1ms, therefore 1ms delay enters the reset mode. Rev. 1.70 The relationship between the voltage range for proper chip opera- Note: OPR tion at 4MHz system clock. Low Voltage Reset 15 HT82K68A and V is shown below. DD LVR December 26, 2005 ...

Page 16

... Mask Option The following shows five kinds of mask option in the HT82K68A. All the mask options must be defined to ensure proper system function. No. OSC type selection. This option is to decide Crystal oscillator is chosen as system clock. If the 1 Crystal oscillator is selected, the XST (Crystal Start-up Timer) default is activated, otherwise the XST is dis- abled ...

Page 17

... Rotate data memory left through carry Data Move MOV A,[m] Move data memory to ACC MOV [m],A Move ACC to data memory MOV A,x Move immediate data to ACC Bit Operation CLR [m].i Clear bit of data memory SET [m].i Set bit of data memory Rev. 1.70 Description 17 HT82K68A Instruction Flag Cycle Affected 1 Z,C,AC,OV (1) 1 Z,C,AC,OV 1 Z,C,AC,OV 1 Z,C,AC,OV (1) 1 ...

Page 18

... The flags may be affected by the execution status. If the Watchdog Timer is cleared by executing the CLR WDT1 or CLR WDT2 instruction, the TO and PDF are cleared. Otherwise the TO and PDF flags remain unchanged. Rev. 1.70 Description 18 HT82K68A Instruction Flag Cycle Affected 2 None (2) 1 None ...

Page 19

... Add the accumulator to the data memory Description The contents of the specified data memory and the accumulator are added. The result is stored in the data memory. Operation [m] ACC+[m] Affected flag(s) TO Rev. 1.70 PDF PDF PDF PDF PDF HT82K68A December 26, 2005 ...

Page 20

... Program Counter+1 Program Counter Affected flag(s) TO CLR [m] Clear data memory Description The contents of the specified data memory are cleared to 0. Operation [m] 00H Affected flag(s) TO Rev. 1.70 PDF PDF PDF addr PDF PDF HT82K68A December 26, 2005 ...

Page 21

... 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. Operation [m] [m] Affected flag(s) TO Rev. 1.70 PDF PDF PDF PDF PDF HT82K68A December 26, 2005 ...

Page 22

... Data in the specified data memory is decremented by 1, leaving the result in the accumula- tor. The contents of the data memory remain unchanged. Operation ACC [m] 1 Affected flag(s) TO Rev. 1.70 PDF (ACC.3~ACC.0)+6, AC1=AC (ACC.3~ACC.0), AC1=0 ACC.7~ACC.4+6+AC1,C=1 ACC.7~ACC.4+AC1,C=C PDF PDF PDF HT82K68A December 26, 2005 ...

Page 23

... Move data memory to the accumulator Description The contents of the specified data memory are copied to the accumulator. Operation ACC [m] Affected flag(s) TO Rev. 1.70 Program Counter+1 PDF PDF PDF addr PDF PDF HT82K68A December 26, 2005 ...

Page 24

... Data in the data memory (one of the data memories) and the accumulator perform a bitwise logical_OR operation. The result is stored in the data memory. Operation [m] ACC OR [m] Affected flag(s) TO Rev. 1.70 PDF PDF Program Counter+1 PDF PDF PDF PDF HT82K68A December 26, 2005 ...

Page 25

... The contents of the data memory remain unchanged. Operation ACC.(i+1) ACC.0 [m].7 Affected flag(s) TO Rev. 1.70 Stack PDF Stack PDF Stack PDF PDF [m].i; [m].i:bit i of the data memory (i=0~6) PDF HT82K68A December 26, 2005 ...

Page 26

... Bit 0 replaces the carry bit; the original carry flag is rotated into the bit 7 position. Operation [m].i [m].(i+1); [m].i:bit i of the data memory (i=0~6) [m]. [m].0 Affected flag(s) TO Rev. 1.70 PDF [m].i; [m].i:bit i of the data memory (i=0~6) PDF PDF PDF PDF HT82K68A December 26, 2005 ...

Page 27

... Otherwise proceed with the next instruction (1 cycle). Operation Skip if ([m] 1)=0, ACC Affected flag(s) TO Rev. 1.70 PDF PDF PDF ([m] 1) PDF ([m] 1) PDF HT82K68A December 26, 2005 ...

Page 28

... Other- wise proceed with the next instruction (1 cycle). Operation Skip if [m].i 0 Affected flag(s) TO Rev. 1.70 PDF PDF ([m]+1) PDF ([m]+1) PDF PDF HT82K68A December 26, 2005 ...

Page 29

... The low-order and high-order nibbles of the specified data memory are interchanged, writ- ing the result to the accumulator. The contents of the data memory remain unchanged. Operation ACC.3~ACC.0 ACC.7~ACC.4 Affected flag(s) TO Rev. 1.70 PDF PDF PDF [m].7~[m].4 PDF [m].7~[m].4 [m].3~[m].0 PDF HT82K68A December 26, 2005 ...

Page 30

... The low byte of ROM code (last page) addressed by the table pointer (TBLP) is moved to the data memory and the high byte transferred to TBLH directly. Operation [m] ROM code (low byte) TBLH ROM code (high byte) Affected flag(s) TO Rev. 1.70 PDF PDF PDF PDF PDF HT82K68A December 26, 2005 ...

Page 31

... Logical XOR immediate data to the accumulator Description Data in the accumulator and the specified data perform a bitwise logical Exclusive_OR op- eration. The result is stored in the accumulator. The 0 flag is affected. Operation ACC ACC XOR x Affected flag(s) TO Rev. 1.70 PDF PDF PDF HT82K68A December 26, 2005 ...

Page 32

... Package Information 20-pin SOP (300mil) Outline Dimensions Symbol Rev. 1.70 Dimensions in mil Min. Nom. 394 290 14 490 HT82K68A Max. 419 300 20 510 104 December 26, 2005 ...

Page 33

... SOP (300mil) Outline Dimensions Symbol Rev. 1.70 Dimensions in mil Min. Nom. 394 290 14 697 HT82K68A Max. 419 300 20 713 104 December 26, 2005 ...

Page 34

... SSOP (300mil) Outline Dimensions Symbol Rev. 1.70 Dimensions in mil Min. Nom. 395 291 8 613 HT82K68A Max. 420 299 12 637 December 26, 2005 ...

Page 35

... Key Slit Width T1 Space Between Flange T2 Reel Thickness SOP 28W (300mil) Symbol Description A Reel Outer Diameter B Reel Inner Diameter C Spindle Hole Diameter D Key Slit Width T1 Space Between Flange T2 Reel Thickness Rev. 1.70 Dimensions in mm 330 1.0 62 1.5 13.0+0.5 0.2 2.0 0.5 24.8+0.3 0.2 30.2 0.2 Dimensions in mm 330 1.0 62 1.5 13.0+0.5 0.2 2.0 0.5 24.8+0.3 0.2 30.2 0.2 35 December 26, 2005 HT82K68A ...

Page 36

... SSOP 48W Symbol Description A Reel Outer Diameter B Reel Inner Diameter C Spindle Hole Diameter D Key Slit Width T1 Space Between Flange T2 Reel Thickness Rev. 1.70 Dimensions in mm 330 1.0 100 0.1 13.0+0.5 0.2 2.0 0.5 32.2+0.3 0.2 38.2 0.2 36 December 26, 2005 HT82K68A ...

Page 37

... Carrier Tape Width P Cavity Pitch E Perforation Position F Cavity to Perforation (Width Direction) D Perforation Diameter D1 Cavity Hole Diameter P0 Perforation Pitch P1 Cavity to Perforation (Length Direction) A0 Cavity Length B0 Cavity Width K0 Cavity Depth t Carrier Tape Thickness C Cover Tape Width Rev. 1.70 Dimensions in mm 24.0+0.3 0.1 12.0 0.1 1.75 0.1 11.5 0.1 1.5+0.1 1.5+0.25 4.0 0.1 2.0 0.1 10.8 0.1 13.3 0.1 3.2 0.1 0.3 0.05 21.3 Dimensions in mm 24.0 0.3 12.0 0.1 1.75 0.1 11.5 0.1 1.5+0.1 1.5+0.25 4.0 0.1 2.0 0.1 10.85 0.1 18.34 0.1 2.97 0.1 0.35 0.01 21.3 37 December 26, 2005 HT82K68A ...

Page 38

... Carrier Tape Width P Cavity Pitch E Perforation Position F Cavity to Perforation (Width Direction) D Perforation Diameter D1 Cavity Hole Diameter P0 Perforation Pitch P1 Cavity to Perforation (Length Direction) A0 Cavity Length B0 Cavity Width K1 Cavity Depth K2 Cavity Depth t Carrier Tape Thickness C Cover Tape Width Rev. 1.70 Dimensions in mm 32.0 0.3 16.0 0.1 1.75 0.1 14.2 0.1 2.0 Min. 1.5+0.25 4.0 0.1 2.0 0.1 12.0 0.1 16.20 0.1 2.4 0.1 3.2 0.1 0.35 0.05 25.5 38 December 26, 2005 HT82K68A ...

Page 39

... Holtek s products are not authorized for use as critical components in life support devices or systems. Holtek reserves the right to alter its products without prior notification. For the most up-to-date information, please visit our web site at http://www.holtek.com.tw. Rev. 1.70 39 December 26, 2005 HT82K68A ...

Related keywords