| Electronic Components Datasheet Search |
|
HT45R38 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45R38 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 49 page ![]() HT45R38 Rev. 1.00 17 December 13, 2006 If the timer/event counter is not running, writing data to the timer/event counter preload register also reloads that data into the timer/event counter. But if the timer/event counter is already running, data written to the timer/event counter is kept only in the timer/event counter preload register. The timer/event counter will continue running until an overflow occurs and only then will the data be loaded into the timer/event counter. When the timer/event counter is read, the clock is blocked to avoid errors, and as this may results in a counting error, it should be taken into account by the programmer. Bit0~bit2 of the TMR0C register can be used to define the timer/event counter clock division ratio. The defini- tions are as shown. Bit No. Label Function 0~2 T0PSC0~T0PSC2 To define the prescaler stages, T0PSC2, T0PSC1, T0PSC0= 000: fINT=fSYS 001: fINT=fSYS/2 010: fINT=fSYS/4 011: fINT=fSYS/8 100: fINT=fSYS/16 101: fINT=fSYS/32 110: fINT=fSYS/64 111: fINT=fSYS/128 3 T0E To define the TMR0 active edge of the timer/event counter In event counter mode (T0M1, T0M0)= (0, 1) 0: count on rising edge; 1: count on falling edge In pulse width measurement mode (T0M1, T0M0)= (1, 1) 0: start counting on the falling edge, stop on the rising edge; 1: start counting on the rising edge, stop on the falling edge 4 T0ON To enable or disable timer counting (0=disabled; 1=enabled) 5 ¾ Unused bit, read as ²0² 6 7 T0M0 T0M1 To define the operating mode, T0M1, T0M0= 01=Event count mode (external clock) 10=Timer mode (internal clock) 11=Pulse width measurement mode 00=Unused TMR0C (0EH) Register Bit No. Label Function 0~2, 5 ¾ Unused bit, read as ²0² 3 T1E To define the TMR0 active edge of the timer/event counter In event counter mode (T1M1, T1M0)= (0, 1) 0: count on rising edge; 1: count on falling edge In pulse width measurement mode (T1M1, T1M0)= (1, 1) 0: start counting on the falling edge, stop on the rising edge; 1: start counting on the rising edge, stop on the falling edge 4 T1ON To enable or disable timer counting (0=disabled; 1=enabled) 6 7 T1M0 T1M1 To define the operating mode, T0M1, T0M0= 01=Event count mode (external clock) 10=Timer mode (internal clock) 11=Pulse width measurement mode 00=Unused TMR1C (11H) Register |
|
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 |