HT45R34 Holtek Semiconductor, HT45R34 Datasheet
![no-image](/images/no-image-200.jpg)
HT45R34
Related parts for HT45R34
HT45R34 Summary of contents
Page 1
... Multi-pin capacitor/resistor sensor input 1024 14 program memory 88 8 data memory RAM General Description The HT45R34 is an 8-bit high performance, RISC archi- tecture microcontroller device specifically designed for cost-effective multiple I/O control product applications. The advantages of low power consumption, I/O flexibil- ity, timer functions, oscillator options, Power Down and Rev ...
Page 2
... Block Diagram www.DataSheet4U.com Pin Assignment Rev. 1.20 HT45R34 2 October 15, 2007 ...
Page 3
... Operating Temperature........................... Test Conditions Parameter V Conditions DD f =4MHz SYS f =8MHz SYS 3V No load load load, system HALT 5V 3 HT45R34 Description Total............................................................ 200mA Ta=25 C Min. Typ. Max. Unit 2.2 5.5 3.3 5 =4MHz SYS 3 5 =8MHz 4 8 SYS 5 10 ...
Page 4
... No load, system HALT 5V LVR enabled 3V V =0. =0. Test Conditions Parameter V Conditions DD 2.2V~5.5V 3.3V~5.5V 2.2V~5.5V 3.3V~5. Without WDT prescaler 5V Without WDT prescaler Wake-up from HALT 4 HT45R34 Min. Typ. Max. Unit 2.7 3.0 3 ...
Page 5
... Execution Flow Mode * Program Counter S9~S0: Stack register bits @7~@0: PCL bits 5 HT45R34 Program Counter * ...
Page 6
... Table Location P9~P8: Current program counter bits 6 HT45R34 Location 010H This location is reserved for the external RC oscilla- tion converter interrupt service program interrupt results from an external RC oscillation converter, and if the interrupt is enabled and the stack is not full, the program begins execution at this location. ...
Page 7
... Rev. 1.20 HT45R34 RAM Mapping Bit 7 of the memory pointers are not implemented. How- ever, it must be noted that when the memory pointers in this device is read, a value of 1 will be read. ...
Page 8
... OV is cleared. PDF is cleared by system power-up or executing the CLR WDT instruction. PDF is set by executing the HALT instruction cleared by system power-up or executing the CLR WDT or HALT instruction set by a WDT time-out. Unused bit, read as 0 Status (0AH) Register 8 HT45R34 October 15, 2007 ...
Page 9
... External interrupt 0 request flag (1= active; 0= inactive) External interrupt 1 request flag (1= active; 0= inactive) Internal Timer/Event Counter request flag (1= active; 0= inactive) Unused bit, read as 0 INTC0 (0BH) Register Function Unused bit, read as 0 INTC1 (1EH) Register 9 HT45R34 Interrupt Source Priority Vector 1 04H 2 08H 3 ...
Page 10
... WDT instruction will clear the WDT. In the case that CLR WDT1 and CLR WDT2 are chosen, i.e. CLRWDT times equal two, these two instructions must be executed to clear the WDT; otherwise, the WDT may reset the chip as a result of a time-out. 10 HT45R34 WS0 Division Ratio 0 1:1 1 ...
Page 11
... TO PDF RESET Conditions 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 means unchanged 11 HT45R34 October 15, 2007 ...
Page 12
... HT45R34 Reset Configuration Reset Circuit Most applications can use the Basic Reset Cir- cuit as shown, however for applications with ex- tensive noise recommended to use the Hi-noise Reset Circuit. RES Reset ...
Page 13
... Unused bit, read define the operating mode, TM1, TM0= 01=Event count mode (external clock) TM0 10=Timer mode (internal clock) TM1 11=Pulse width measurement mode 00=Unused TMRC (0EH) Register 13 HT45R34 RES Reset WDT Time-out (HALT) (HALT)* 00-0 1000 00-0 1000 uu-u uuuu 1111 1111 1111 1111 ...
Page 14
... TMRAL/TMRBL into the low byte buffer to avoid false timing problem. Reading TMRAL/TMRBL returns the contents of the low byte buffer. Therefore, the low byte 14 HT45R34 October 15, 2007 ...
Page 15
... In the RC oscillation converter mode, this bit is used to define the timer/event counter interrupt, which comes from Timer A overflow or Timer B overflow. (0= Timer A overflow; 1= Timer B overflow) Define RC oscillation converter mode. (0= Disable RC oscillation converter mode; 1= Enable RC oscillation converter mode) Unused bit, read as 0 4-bit read/write registers for user defined. RCOCR (25H) Register 15 HT45R34 October 15, 2007 ...
Page 16
... Clear External RC Oscillation Converter interrupt request flag ; Give timer A initial value ; Timer A count 1000 time and then overflow ; Give timer B initial value ; Timer A clock source=f /4 and timer on SYS ; Polling External RC Oscillation Converter interrupt request flag ; Clear External RC Oscillation Converter interrupt request flag ; Program continue 16 HT45R34 October 15, 2007 ...
Page 17
... All analog switch off 01101b= All analog switch off 01110b= All analog switch off 01111b= All analog switch off 1xxxxb= All analog switch off and RC OSC always off. Unused bit, read as 0 ASCR (1AH) Register Analog Switch 17 HT45R34 October 15, 2007 ...
Page 18
... If the low voltage state LVR does not exceed t , the LVR will ignore it and will not LVR perform a reset function. The LVR uses an OR function with the external RES signal to perform a chip reset. Input/Output Ports 18 HT45R34 October 15, 2007 ...
Page 19
... None wake-up or wake-up None pull-high or pull-high WDTOSC SYS Enable or disable instructions Enable or disable X tal mode or RC mode Disable, rising edge, falling edge or double edge Disable, rising edge, falling edge or double edge 19 HT45R34 , therefore a t delay enters LVR LVR Description October 15, 2007 ...
Page 20
... Application Circuits Application Circuit www.DataSheet4U.com Application Circuit 1 Rev. 1.20 20 October 15, 2007 HT45R34 ...
Page 21
... For applications where noise may interfere with the reset circuit and for details on the oscillator external com- ponents, refer to Application Note HA0075E for more information. 4. The *R resistance and *C capacitance should be consideration for the frequency of RC OSC 1~R sensor 6. C 1~C sensor Rev. 1.20 12 are the resistance sensors. sensor 12 are the capacitance sensors. sensor 21 HT45R34 October 15, 2007 ...
Page 22
... These instructions are the key to decision making and branching within the pro- gram perhaps determined by the condition of certain in- put switches or by the condition of internal data bits. 22 October 15, 2007 HT45R34 ...
Page 23
... Bits immediate data m: Data Memory address A: Accumulator i: 0~7 number of bits addr: Program memory address Description Cycles HT45R34 Flag Affected AC, OV Note AC, OV Note AC, OV Note ...
Page 24
... CLR WDT2 instructions are consecutively executed. Otherwise the TO and PDF flags remain unchanged. Rev. 1.20 Description Cycles HT45R34 Flag Affected 1 Z Note Note Z 1 None Note None 1 C Note C 1 None Note None 1 C Note C 1 None ...
Page 25
... Data in the Accumulator and the specified immediate data perform a bitwise logical AND operation. The result is stored in the Accumulator. ACC ACC AND x Z Logical AND ACC to Data Memory Data in the specified Data Memory and the Accumulator perform a bitwise logical AND op- eration. The result is stored in the Data Memory. [m] ACC AND [ HT45R34 October 15, 2007 ...
Page 26
... The TO, PDF flags and the WDT are all cleared. Note that this instruction works in conjunc- tion with CLR WDT1 and must be executed alternately with CLR WDT1 to have effect. Re- petitively executing this instruction without alternately executing CLR WDT1 will have no effect. WDT cleared TO 0 PDF 0 TO, PDF 26 HT45R34 October 15, 2007 ...
Page 27
... This instruction stops the program execution and turns off the system clock. The contents of the Data Memory and registers are retained. The WDT and prescaler are cleared. The power down flag PDF is set and the WDT time-out flag TO is cleared PDF 1 TO, PDF 27 HT45R34 October 15, 2007 ...
Page 28
... None No operation No operation is performed. Execution continues with the next instruction. No operation None Logical OR Data Memory to ACC Data in the Accumulator and the specified Data Memory perform a bitwise logical OR oper- ation. The result is stored in the Accumulator. ACC ACC OR [ HT45R34 October 15, 2007 ...
Page 29
... Rotate Data Memory left with result in ACC The contents of the specified Data Memory are rotated left by 1 bit with bit 7 rotated into bit 0. The rotated result is stored in the Accumulator and the contents of the Data Memory re- main unchanged. ACC.(i+1) [m]. 0~6) ACC.0 [m].7 None 29 HT45R34 October 15, 2007 ...
Page 30
... Data in the specified Data Memory and the carry flag are rotated right by 1 bit. Bit 0 re- places the Carry bit and the original carry flag is rotated into bit 7. The rotated result is stored in the Accumulator and the contents of the Data Memory remain unchanged. ACC.i [m].(i+1 0~6) ACC [m]. HT45R34 October 15, 2007 ...
Page 31
... ACC [m] 1 Skip if ACC = 0 None Set Data Memory Each bit of the specified Data Memory is set to 1. [m] FFH None Set bit of Data Memory Bit i of the specified Data Memory is set to 1. [m].i 1 None 31 HT45R34 October 15, 2007 ...
Page 32
... The immediate data specified by the code is subtracted from the contents of the Accumu- lator. The result is stored in the Accumulator. Note that if the result of subtraction is nega- tive, the C flag will be cleared to 0, otherwise if the result is positive or zero, the C flag will be set to 1. ACC ACC x OV HT45R34 October 15, 2007 ...
Page 33
... Read table (last page) to TBLH and Data Memory The low byte of the program code (last page) addressed by the table pointer (TBLP) is moved to the specified Data Memory and the high byte moved to TBLH. [m] program code (low byte) TBLH program code (high byte) None 33 HT45R34 October 15, 2007 ...
Page 34
... Data in the specified Data Memory and the Accumulator perform a bitwise logical XOR op- eration. The result is stored in the Data Memory. [m] ACC XOR [m] Z Logical XOR immediate data to ACC Data in the Accumulator and the specified immediate data perform a bitwise logical XOR operation. The result is stored in the Accumulator. ACC ACC XOR HT45R34 October 15, 2007 ...
Page 35
... Package Information 20-pin DIP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 1.20 Dimensions in mil Min. Nom. 1020 240 125 125 16 50 100 295 335 0 35 HT45R34 Max. 1045 260 135 145 20 70 315 375 15 October 15, 2007 ...
Page 36
... SOP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 1.20 Dimensions in mil Min. Nom. 394 290 14 490 HT45R34 Max. 419 300 20 510 104 October 15, 2007 ...
Page 37
... SKDIP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 1.20 Dimensions in mil Min. Nom. 1235 255 125 125 16 50 100 295 345 0 37 HT45R34 Max. 1265 265 135 145 20 70 315 360 15 October 15, 2007 ...
Page 38
... SOP (300mil) Outline Dimensions www.DataSheet4U.com Symbol Rev. 1.20 Dimensions in mil Min. Nom. 394 290 14 590 HT45R34 Max. 419 300 20 614 104 October 15, 2007 ...
Page 39
... Product Tape and Reel Specifications Reel Dimensions www.DataSheet4U.com SOP 20W, SOP 24W Symbol 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.20 Description 39 HT45R34 Dimensions in mm 330 1 62 1.5 13+0.5 0.2 2 0.5 24.8+0.3 0.2 30.2 0.2 October 15, 2007 ...
Page 40
... 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.20 Description Description 40 HT45R34 Dimensions in mm 24+0.3 0.1 12 0.1 1.75 0.1 11.5 0.1 1.5+0.1 1.5+0.25 4 0.1 2 0.1 10.8 0.1 13.3 0.1 3.2 0.1 0.3 0.05 21.3 Dimensions 0.3 12 0.1 1.75 0.1 11.5 0.1 1.55+0.1 1.5+0.25 4 0.1 2 0.1 10.9 0.1 15.9 0.1 3 ...
Page 41
... 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.20 41 October 15, 2007 HT45R34 ...