| Electronic Components Datasheet Search |
|
HT46R0664 Datasheet(PDF) 46 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R0664 Datasheet(HTML) 46 Page - Holtek Semiconductor Inc |
|
46 / 92 page ![]() Rev. 1.00 46 ����st 1�� �011 Rev. 1.00 47 ����st 1�� �011 HT46R0664 Enhanced A/D+LCD Type 8-Bit OTP MCU T0 ON Pr el oad R eg is te r Up C oun te r Da ta B us PF D0 2 ¸ TC 0 T0 EG M ode C on tr ol Ti me r 0 In te r nal C lo c k (f T0 CK ) Ov er fl ow to In te rr up t T0 M1 , T0 M0 T0 OV 8-bit Timer/Event Counter 0 Structure f SY S /4 LX T Os ci ll at or M U X T1 S T1 ON Pr el oad R eg is te r Up C oun te r D at a Bu s PF D 1 2 ¸ TC 1 T1 EG M ode C on tr ol Ov er fl ow to In te rr up t T1 M1 , T 1M 0 T1 OV 8-bit Timer/Event Counter 1 Structure PFD0 PFD1 PFDCS MUX 0 1 PFD output Timer Registers – TMR0, TMR1 The timer registers are special function registers located in the Special Purpose Data Memory and is the place where the actual timer value is stored. These registers are known as TMR0 and TMR1. The value in the timer registers increases by one each time an internal clock pulse is received or an external transition occurs on the external timer pin. The timer will count from the initial value loaded by the preload register to the full count of FFH at which point the timer overflows and an internal interrupt signal is generated. Then the timer value will be reset with the initial preload register value and continue counting. Note that to achieve a maximum full range count of FFH, all the preload registers must first be cleared to zero. It should be noted that after power-on, the preload registers will be in an unknown condition. Note that if the Timer/Event Counter is in an OFF condition and data is written to its preload register, this data will be immediately written into the actual counter. However, if the counter is enabled and counting, any new data written into the preload data register during this period will remain in the preload register and will only be written into the actual counter the next time an overflow occurs. Timer Control Registers – TMR0C, TMR1C The flexible features of the Holtek microcontroller Timer/Event Counters enable them to operate in three different modes, the options of which are determined by the contents of their respective control register. The Timer Control Register is known as TMRnC. It is the Timer Control Register together with its corresponding timer registers that control the full operation of the Timer/Event Counter. Before the timer can be used, it is essential that the Timer Control Register is fully programmed with the right data to ensure its correct operation, a process that is normally carried out during program initialisation. To choose which of the three modes the timer is to operate in, either in the timer mode, the event counting mode or the pulse width capture mode, bits 7 and 6 of the Timer Control Register, which are known as the bit pair TnM1/TnM0, must be set to the required logic levels. The timer-on bit, which is bit 4 of the Timer Control Register and known as TnON, provides the basic on/off |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |