HT82K96E_07 HOLTEK [Holtek Semiconductor Inc], HT82K96E_07 Datasheet

no-image

HT82K96E_07

Manufacturer Part Number
HT82K96E_07
Description
USB Multimedia Keyboard Encoder 8-Bit OTP MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
Technical Document
Features
General Description
This device is an 8-bit high performance RISC-like
microcontroller designed for USB product applications.
It is particularly suitable for use in products such as
Rev. 2.00
Tools Information
FAQs
Application Note
Operating voltage:
f
Low voltage reset function
32 bidirectional I/O lines (max.)
8-bit programmable timer/event counter with over-
flow interrupt
16-bit programmable timer/event counter and over-
flow interrupts
Crystal oscillator (6MHz or 12MHz)
Watchdog Timer
6 channels 8-bit A/D converter
PS2 and USB modes supported
USB 2.0 low speed function
SYS
=6M/12MHz: 4.4V~5.5V
USB Multimedia Keyboard Encoder 8-Bit OTP MCU
1
mice, keyboards and joystick. A HALT feature is in-
cluded to reduce power consumption.
4 endpoints supported (endpoint 0 included)
4096 15 program memory ROM
160 8 data memory RAM
HALT function and wake-up feature reduce power
consumption
8-level subroutine nesting
Up to 0.33 s instruction cycle with 12MHz system
clock at V
Bit manipulation instruction
15-bit table read instruction
63 powerful instructions
All instructions in one or two machine cycles
28-pin SOP, 48-pin SSOP package
DD
=5V
HT82K96E
October 11, 2007

Related parts for HT82K96E_07

HT82K96E_07 Summary of contents

Page 1

USB Multimedia Keyboard Encoder 8-Bit OTP MCU Technical Document Tools Information FAQs Application Note Features Operating voltage: f =6M/12MHz: 4.4V~5.5V SYS Low voltage reset function 32 bidirectional I/O lines (max.) 8-bit programmable timer/event counter with over- flow interrupt 16-bit programmable ...

Page 2

Block Diagram Rev. 2.00 2 HT82K96E October 11, 2007 ...

Page 3

Pin Assignment Pin Description ROM Code Pin Name I/O Option Pull-low PA0~PA5 Pull-high PA6/TMR0 I/O Wake-up PA7/TMR1 CMOS/NMOS/PMOS PB0/AN0 PB1/AN1 PB2/AN2 PB3/AN3 Pull-high I/O PB4/AN4 Analog input PB5/AN5 PB6/VRL PB7/VRH PD0~PD7 I/O Pull-high Rev. 2.00 Description Bidirectional 8-bit input/output port. ...

Page 4

ROM Code Pin Name I/O Option VSS PC0~PC7 I/O Pull-high RES I VDD V33O O USBD+/CLK I/O USBD-/DATA I/O OSC1 I OSC2 O Absolute Maximum Ratings Supply Voltage ...........................V 0. Input Voltage..............................V 0. Note: ...

Page 5

Symbol Parameter I I/O Port Sink Current for PC0 OL4 I I/O Port Source Current for PC0 OH1 I/O Port Source Current for PA, PB, I OH2 PC1~PC7 Pull-high Resistance for PA, PB, PC Pull-low ...

Page 6

Functional Description Execution Flow The system clock for the microcontroller is derived from either a crystal oscillator. The system clock is internally divided into four non-overlapping clocks. One instruction cycle consists of four system clock cycles. Instruction ...

Page 7

Program Memory - ROM The program memory is used to store the program in- structions which are to be executed. It also contains data, table, and interrupt entries, and is organized into 4096 15 bits, addressed by the program counter ...

Page 8

At a subroutine call or interrupt acknowledge signal, the contents of the program counter are pushed onto the stack. At the end of a subroutine or an interrupt routine, signaled by a return instruction (RET or RETI), the pro- gram ...

Page 9

Data Memory - RAM for Bank 1 The special function registers used in USB interface are located in RAM bank 1. In order to access Bank1 regis- ter, only the Indirect addressing pointer MP1 can be used and the Bank ...

Page 10

The TO flag can be affected only by system power-up, a WDT time-out or executing the CLR WDT or HALT instruction. The PDF flag can be affected only by ex- ecuting the HALT or CLR WDT instruction or dur- ing ...

Page 11

During the execution of an interrupt subroutine, other in- terrupt acknowledge signals are held until the RETI in- struction is executed or the EMI bit and the related interrupt control bit are set to 1 (if the stack is not ...

Page 12

Once the internal WDT oscillator (RC oscillator with a period of 31 s/5V normally) is selected first divided by 256 (8-stage) to get the nominal time-out period of 8ms/5V. This time-out period may vary with tempera- tures, VDD ...

Page 13

The WDT time-out during HALT is different from other chip reset conditions, since it can perform a warm re - set that resets only the Program Counter and SP, leav- ing the other circuits in their original state. Some regis- ...

Page 14

The states of the registers is summarized in the table. WDT Reset Time-out Register (Power On) (Normal Operation) TMR0 xxxx xxxx uuuu uuuu TMR0C 00-0 1000 00-0 1000 TMR1H xxxx xxxx uuuu uuuu TMR1L xxxx xxxx uuuu uuuu TMR1C 00-0 ...

Page 15

Timer/Event Counter Two timer/event counters (TMR0, TMR1) are imple- mented in the microcontroller. The Timer/Event Counter 0 contains an 8-bit programmable count-up counter and the clock may comes from an external source or from f /4. SYS Bit No. Label ...

Page 16

Using the internal clock source, there is only 1 reference time-base for Timer/Event Counter 0. The internal clock source is coming from f /4. SYS The external clock input allows the user to count exter- nal events, measure time intervals ...

Page 17

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

Page 18

Low Voltage Reset - LVR The microcontroller provides low voltage reset circuit in order to monitor the supply voltage of the device. If the supply voltage of the device is within the range 0.9V~V such as changing a battery, the ...

Page 19

Suspend Wake-Up Remote Wake-Up If there is no signal on USB bus is over 3ms, the HT82K96E will go into suspend mode . The Suspend line (bit 0 of USC) will be set to 1 and a USB interrupt is ...

Page 20

The following is A/D converter timing diagrams USB Interface and A/D Converter There are 7 registers, including AWR (address + remote wake up; 42H in bank 1), STALL (43H in bank 1), PIPE (44H in bank 1), MISC (46H in ...

Page 21

SIES. Register (for version C or later version) is used to indicate the present signal state which the SIE receives and also defines whether the SIE has to change the device address automatically. Bit7 Bit6 Func. R/W Reg_Adr Note: Bit7 ...

Page 22

MCU can communicate with endpoint FIFO by setting the corresponding registers, of which address is listed in the fol- lowing table. After reading current data, next data will show on after 2 s. using to check endpoint FIFO status and ...

Page 23

The USR (USB endpoint interrupt status register) register is used to indicate which endpoint is accessed and to select serial bus (PS2 or USB) and A/D converter operation modes. The endpoint request flags (EP0IF, EP1IF, EP2IF and EP3IF) are used ...

Page 24

The A/D converter implemented in the MCU is a 6-channel 8-bit A/D converter. The reference voltage (high reference voltage and low reference voltage) can be selected as coming from external pins (PB6/VRL and PB7/VRH) or internal power supplies of MCU ...

Page 25

Application Circuits Crystal or Ceramic Resonator for Multiple I/O Applications Note: 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 ...

Page 26

Instruction Set Introduction microcontroller ...

Page 27

Bit Operations The ability to provide single bit operations on Data Mem- ory is an extremely flexible feature of all Holtek microcontrollers. This feature is especially useful for output port bit programming where individual bits or port pins can be ...

Page 28

Mnemonic Rotate RRA [m] Rotate Data Memory right with result in ACC RR [m] Rotate Data Memory right RRCA [m] Rotate Data Memory right through Carry with result in ACC RRC [m] Rotate Data Memory right through Carry RLA [m] ...

Page 29

Instruction Definition ADC A,[m] Add Data Memory to ACC with Carry Description The contents of the specified Data Memory, Accumulator and the carry flag are added. The result is stored in the Accumulator. Operation ACC ACC + [ ...

Page 30

CALL addr Subroutine call Description Unconditionally calls a subroutine at the specified address. The Program Counter then in- crements obtain the address of the next instruction which is then pushed onto the stack. The specified address is ...

Page 31

CPL [m] Complement Data Memory 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. Operation [m] [m] Affected flag(s) Z CPLA [m] ...

Page 32

INC [m] Increment Data Memory Description Data in the specified Data Memory is incremented by 1. Operation [m] [ Affected flag(s) Z INCA [m] Increment Data Memory with result in ACC Description Data in the specified Data Memory ...

Page 33

OR A,x Logical OR immediate data to ACC Description Data in the Accumulator and the specified immediate data perform a bitwise logical OR op- eration. The result is stored in the Accumulator. Operation ACC ACC OR x Affected flag(s) Z ...

Page 34

RLC [m] Rotate Data Memory left through Carry Description The contents of the specified Data Memory and the carry flag are rotated left by 1 bit. Bit 7 replaces the Carry bit and the original carry flag is rotated into ...

Page 35

SBC A,[m] Subtract Data Memory from ACC with Carry Description The contents of the specified Data Memory and the complement of the carry flag are sub- tracted from the Accumulator. The result is stored in the Accumulator. Note that if ...

Page 36

SIZ [m] Skip if increment Data Memory is 0 Description The contents of the specified Data Memory are first incremented the result is 0, the following instruction is skipped. As this requires the insertion of a dummy ...

Page 37

SWAP [m] Swap nibbles of Data Memory Description The low-order and high-order nibbles of the specified Data Memory are interchanged. Operation [m].3~[m].0 Affected flag(s) None SWAPA [m] Swap nibbles of Data Memory with result in ACC Description The low-order and ...

Page 38

XOR A,[m] Logical XOR Data Memory to ACC Description Data in the Accumulator and the specified Data Memory perform a bitwise logical XOR op- eration. The result is stored in the Accumulator. Operation ACC ACC XOR [m] Affected flag(s) Z ...

Page 39

Package Information 28-pin SOP (300mil) Outline Dimensions Symbol Rev. 2.00 Dimensions in mil Min. Nom. 394 290 14 697 HT82K96E Max. 419 300 20 ...

Page 40

SSOP (300mil) Outline Dimensions Symbol Rev. 2.00 Dimensions in mil Min. Nom. 395 291 8 613 HT82K96E Max. 420 299 12 637 99 ...

Page 41

Product Tape and Reel Specifications Reel Dimensions 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 SSOP 48W Symbol Description A ...

Page 42

Carrier Tape Dimensions SOP 28W (300mil) Symbol Description W 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) ...

Page 43

SSOP 48W Symbol Description W 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 ...

Page 44

Holtek Semiconductor Inc. (Headquarters) No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan Tel: 886-3-563-1999 Fax: 886-3-563-1189 http://www.holtek.com.tw Holtek Semiconductor Inc. (Taipei Sales Office) 4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan Tel: 886-2-2655-7070 Fax: 886-2-2655-7373 Fax: 886-2-2655-7383 ...

Related keywords