HT82K94A HOLTEK [Holtek Semiconductor Inc], HT82K94A Datasheet

no-image

HT82K94A

Manufacturer Part Number
HT82K94A
Description
USB Multimedia Keyboard Encoder 8-Bit MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
Technical Document
·
·
·
Features
·
·
·
·
·
·
·
·
·
·
·
·
·
·
General Description
This device is an 8-bit high performance RISC architec-
ture microcontroller designed for USB product applica-
tions. It is particularly suitable for use in products such
as keyboards and keyboard with calculator. A HALT fea-
Rev. 1.00
Tools Information
FAQs
Application Note
Operating voltage:
f
40 bidirectional I/O lines (max.)
8-bit programmable timer/event counter with over-
flow interrupt (shared with PD4, vector 08H)
16-bit programmable timer/event counter and over-
flow interrupts (shared with PA7, vector 0CH)
Crystal oscillator (6MHz or 12MHz)
Watchdog Timer
PS2 and USB modes supported
USB1.1 low speed function
4 endpoints supported (endpoint 0 included)
6144´16 program memory ROM
224´8 data memory RAM
One external interrupt input (shared with PA4 vector
04H)
One internal USB interrupt (vector 04H)
All I/O ports support wake-up options
SYS
=6M/12MHz: 2.2V~5.5V
USB Multimedia Keyboard Encoder 8-Bit MCU
1
·
·
·
·
·
·
·
·
·
·
·
·
ture is included to reduce power consumption. The
mask version HT82K94A is fully pin and functionally
compatible with the OTP version HT82K94E device.
HT82K94A under development, available in 2Q, 2006.
HALT function and wake-up feature reduce power
consumption
8-level subroutine nesting
Up to 0.33ms instruction cycle with 12MHz system
clock at V
Bit manipulation instruction
16-bit table read instruction
63 powerful instructions
All instructions in one or two machine cycles
Optional 3-battery mode 2.4V LVR/2.6V LVD (±0.1V)
by option, Low battery detector with internal bit
Optional 2-battery mode 2.2V LVR/2.4V LVD (±0.1V)
by option, Low battery detector with internal bit
Operating voltage from 4.0V to 5.5V (For Connect
USB/PS2 Mode)
Operating voltage from 2.2V to 3.3V (For Pure Cal.
Mode)
40-pin DIP, 48-pin SSOP package
HT82K94E/HT82K94A
DD
=5V
November 22, 2005

Related parts for HT82K94A

HT82K94A Summary of contents

Page 1

... Operating voltage from 2.2V to 3.3V (For Pure Cal. Mode) · 40-pin DIP, 48-pin SSOP package ture is included to reduce power consumption. The mask version HT82K94A is fully pin and functionally compatible with the OTP version HT82K94E device. HT82K94A under development, available in 2Q, 2006. 1 November 22, 2005 ...

Page 2

... Block Diagram Rev. 1.00 HT82K94E/HT82K94A 2 November 22, 2005 ...

Page 3

... Wake-up PD5~PD7 Pull-high PE0~PE7 I/O Wake-up Rev. 1.00 HT82K94E/HT82K94A Description Bidirectional 8-bit input/output port. Each bit can be configured as a wake-up input by ROM code option. The input or output mode is con- trolled by PAC (PA control register). Pull-high resistor options: PA0~PA7 CMOS/NMOS/PMOS options: PA0~PA7 Wake-up options: PA0~PA7 PA4 and PA7 are pin-shared with EXT and TMR1 input, respectively ...

Page 4

... I/O Port Sink Current for PA1~PA7, PB, I OL2 PC I/O Port Sink Current for PA0 OL3 Rev. 1.00 HT82K94E/HT82K94A Description Negative power supply, ground Schmitt trigger reset input. Active low Positive power supply 3.3V regulator output USBD+ or PS2 CLK I/O line USB or PS2 function is controlled by software control register ...

Page 5

... Watchdog Time-out Period (WDT OSC) 5V Without WDT prescaler WDT1 Watchdog Time-out Period t WDT2 (System Clock) t External Reset Low Pulse Width RES t System Start-up Timer Period SST t Interrupt Pulse Width INT Rev. 1.00 HT82K94E/HT82K94A Test Conditions Min. V Conditions =3. =3. 2-battery option 2 ...

Page 6

... Program Counter+2 *11 * #11 # Program Counter S12~S0: Stack register bits @7~@0: PCL bits 6 HT82K94E/HT82K94A * ...

Page 7

... Note: *12~*0: Table location bits @7~@0: Table pointer bits Rev. 1.00 HT82K94E/HT82K94A Location 00CH This location is reserved for the Timer/Event Counter 1 interrupt service program timer interrupt results from a Timer/Event Counter 1 overflow, and the inter- rupt is enabled and the stack is not full, the program begins execution at location 00CH ...

Page 8

... MP1;03H), accumulator (ACC;05H), table pointer (TBLP;07H, TBHP;1FH), table higher-order Rev. 1.00 HT82K94E/HT82K94A Bank 0 RAM Mapping (STATUS;0AH), interrupt control register (INTC;0BH), Watchdog Timer option setting register (WDTS;09H), I/O registers (PA ...

Page 9

... TO set by a WDT time-out. 6~7 Unused bit, read as 0 Rev. 1.00 HT82K94E/HT82K94A Accumulator The accumulator is closely related to ALU operations also mapped to location 05H of the data memory and can carry out immediate data operations. The data movement between two data memory locations must pass through the accumulator ...

Page 10

... USC) of the HT82K94E/HT82K94A is set and a USB interrupt is also triggered. Also when the HT82K94E/HT82K94A receives a Re- sume signal from the Host PC, the resume line (bit3 of the USC) of HT82K94E/HT82K94A is set and a USB in- terrupt is triggered. Whenever a USB reset signal is detected, the USB in- terrupt is triggered. ...

Page 11

... CALL operates in the interrupt subroutine. Oscillator Configuration There is an oscillator circuits in the microcontroller. System Oscillator Rev. 1.00 HT82K94E/HT82K94A This oscillator is designed for system clocks. The HALT mode stops the system oscillator and ignores an exter- nal signal to conserve power. A crystal across OSC1 and OSC2 is needed to provide the feedback and phase shift required for the oscillator ...

Page 12

... TO flags, the program can distinguish between different chip resets . TO PDF 0 0 RES reset during power- RES reset during normal operation 0 1 RES wake-up HALT 1 u WDT time-out during normal operation 1 1 WDT wake-up HALT Note: u stands for unchanged 12 HT82K94E/HT82K94A RESET Conditions November 22, 2005 ...

Page 13

... PAC 1111 1111 1111 1111 PB 1111 1111 1111 1111 PBC 1111 1111 1111 1111 Rev. 1.00 HT82K94E/HT82K94A Reset Configuration The functional unit chip reset status are shown below. Program Counter 000H Interrupt Disable Prescaler Clear Clear. After master reset, WDT ...

Page 14

... To enable/disable timer 0 counting (0=disabled; 1=enabled) To define the operating mode 01=Event count mode (external clock) 6 TM0 10=Timer mode (internal clock) 7 TM1 11=Pulse width measurement mode 00=Unused Rev. 1.00 HT82K94E/HT82K94A RES Reset WDT RES Reset (Normal Time-Out (HALT) Operation) (HALT)* 1111 1111 1111 1111 ...

Page 15

... Timer/Event Counter 0 preload register and reading TMR0 gets the contents of the Timer/Event Counter 0. The TMR0C is a timer/event counter control register, which defines some options. Rev. 1.00 HT82K94E/HT82K94A Function TMR1C (11H) Register Timer/Event Counter 0 Timer/Event Counter 1 There are 3 registers related to Timer/Event Counter 1; ...

Page 16

... The overflow of the Timer/Event Counter 0/1 is one of the wake-up sources. No matter what the oper- ation mode is, writing ET0I/ET1I can disable the corresponding interrupt services. Rev. 1.00 HT82K94E/HT82K94A In the case of Timer/Event Counter 0/1 OFF condition, /4 writing data to the Timer/Event Counter 0/1 preload regis- SYS ter will also reload that data to the Timer/Event Counter 0/1 ...

Page 17

... Since low voltage has to be maintained for over 1ms in its original state, therefore there s a 1ms delay before entering the reset mode Rev. 1.00 HT82K94E/HT82K94A The LVR includes the following specifications: For a valid LVR signal, a low voltage i.e. a voltage in the range between 0.9V~V than 1ms ...

Page 18

... If SPS2=0, and SUSB=1, the HT82K94E/HT82K94A is configured as a USB interface. Both the USBD- and USBD+ is driven by the SIE of the HT82K94E/ HT82K94A. User can only write or read the USB data through the corresponding FIFO. Both SPS2 and SUSB default Function ...

Page 19

... This bit is used to indicate that the current signal the USB is receiving from the Host is IN token. This bit is used to indicate that the SIE is transmitting NAK signal to the Host in re- NAK R sponse to the PC Host IN or OUT token. Rev. 1.00 HT82K94E/HT82K94A Bit 3 Bit 2 Pipe 3 Pipe 2 Pipe 3 Pipe 2 Pipe 3 Pipe 2 ...

Page 20

... After reading the current data, next data will show after 2 s, used to check the endpoint FIFO status and response to MISC register, if read/write action is still going on. Registers R/W FIFO0 R/W FIFO1 R/W FIFO2 R/W FIFO3 R/W Rev. 1.00 HT82K94E/HT82K94A Description SIES Function Function MISC (46H) Register Bank Address 1 48H 1 49H 1 4AH ...

Page 21

... PS2CKO W Data for driving the USBD+/CLK pin (Default Rev. 1.00 HT82K94E/HT82K94A MISC Setting Flow and Status 00H 01H delay 2 s, check 41H read* from FIFO0 register and check not ready (01H) 03H 02H 0AH 0BH delay 2 s, check 4BH write* to FIFO1 register and ...

Page 22

... Otherwise, the SIE cannot detect the USB signal. User can control EXT_INTENbit to enable or disable the external interrupt PA4/EXT. PS2_flag bit is only a bit for firm- ware to stone the PS2 mode data. This bit only clear to zero by hardware after power-on reset. Rev. 1.00 HT82K94E/HT82K94A Function USR (1DH) Register 22 ...

Page 23

... PB0~PB7 wake-up enabled or disabled (by nibble) 14 PC0~PC7 wake-up enabled or disabled (by nibble) 15 PD0~PD7 wake-up enabled or disabled (by nibble) 16 TBHP enable or disable (default disable) 17 LVR/LVD kind: 2-battery or 3-battery Rev. 1.00 HT82K94E/HT82K94A Function SCC (1EH) Register Read/Write Option R/W Store current table read bit12~bit8 data Option 23 Functions November 22, 2005 ...

Page 24

... The resistance and capacitance for reset circuit should be designed in such a way as to ensure that the VDD is stable and remains within a valid operating voltage range before bringing RES to high. X1 can use 6MHz or 12MHz close OSC1 & OSC2 as possible. Components with * are used for EMC issue. Components with ** are used for resonator only. Rev. 1.00 HT82K94E/HT82K94A 24 November 22, 2005 ...

Page 25

... 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.00 HT82K94E/HT82K94A Description 25 Instruction Flag Cycle Affected 1 Z,C,AC,OV (1) 1 Z,C,AC,OV 1 Z,C,AC,OV ...

Page 26

... 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. (5) : ROM code TBHP option is enabled (6) : ROM code TBHP option is disabled Rev. 1.00 HT82K94E/HT82K94A Description 26 Instruction Flag Cycle Affected 2 ...

Page 27

... 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.00 PDF PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 28

... 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.00 PDF PDF PDF addr PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 29

... 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.00 PDF PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 30

... 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.00 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 HT82K94E/HT82K94A November 22, 2005 ...

Page 31

... 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.00 Program Counter+1 PDF PDF PDF addr PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 32

... 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.00 PDF PDF Program Counter+1 PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 33

... The contents of the data memory remain unchanged. Operation ACC.(i+1) ACC.0 [m].7 Affected flag(s) TO Rev. 1.00 Stack PDF Stack PDF Stack PDF PDF [m].i; [m].i:bit i of the data memory (i=0~6) PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 34

... 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.00 PDF [m].i; [m].i:bit i of the data memory (i=0~6) PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 35

... Otherwise proceed with the next instruction (1 cycle). Operation Skip if ([m] 1)=0, ACC Affected flag(s) TO Rev. 1.00 PDF PDF PDF ([m] 1) PDF ([m] 1) PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 36

... Other- wise proceed with the next instruction (1 cycle). Operation Skip if [m].i 0 Affected flag(s) TO Rev. 1.00 PDF PDF ([m]+1) PDF ([m]+1) PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 37

... 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.00 PDF PDF PDF [m].7~[m].4 PDF [m].7~[m].4 [m].3~[m].0 PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 38

... The low byte of ROM code (current page) addressed by the table pointer (TBLP) is moved to the specified 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.00 PDF PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 39

... 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.00 PDF PDF PDF PDF HT82K94E/HT82K94A November 22, 2005 ...

Page 40

... Package Information 40-pin DIP (600mil) Outline Dimensions Symbol Rev. 1.00 Dimensions in mil Min. Nom. 2045 535 145 125 16 50 100 595 635 0 40 HT82K94E/HT82K94A Max. 2065 555 155 145 20 70 615 670 15 November 22, 2005 ...

Page 41

... SSOP (300mil) Outline Dimensions Symbol Rev. 1.00 Dimensions in mil Min. Nom. 395 291 8 613 HT82K94E/HT82K94A Max. 420 299 12 637 November 22, 2005 ...

Page 42

... Product Tape and Reel Specifications Reel Dimensions 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.00 HT82K94E/HT82K94A Dimensions in mm 330 1 100 0.1 13+0.5 0.2 2 0.5 32.2+0.3 0.2 38.2 0.2 42 November 22, 2005 ...

Page 43

... 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.00 HT82K94E/HT82K94A Dimensions 0.3 16 0.1 1.75 0.1 14.2 0.1 2 Min. 1.5+0.25 4 0.1 2 0.1 12 0.1 16.2 0.1 2.4 0.1 3.2 0.1 0.35 0.05 25.5 43 November 22, 2005 ...

Page 44

... 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.00 HT82K94E/HT82K94A 44 November 22, 2005 ...

Related keywords