| Electronic Components Datasheet Search |
|
HT46R016 Datasheet(PDF) 41 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R016 Datasheet(HTML) 41 Page - Holtek Semiconductor Inc |
|
41 / 91 page ![]() Rev. 1.00 40 ���� 1�� �01� Rev. 1.00 41 ���� 1�� �01� HT46R016/HT46R017 Enhanced A/D 8-Bit OTP MCU Timer/Event Counter The provision of timers form an important part of any microcontroller, giving the designer a means of carrying out time related functions. The devices contain from one to two count-up timers of 8-bit capacity. As the timers have three different operating modes, they can be configured to operate as a general timer, an external event counter or as a pulse width capture device. The provision of an internal prescaler to the clock circuitry on giving added range to the timers. There are two types of registers related to the Timer/Event Counters. The first is the register that contains the actual value of the timer and into which an initial value can be preloaded. Reading from this register retrieves the contents of the Timer/Event Counter. The second type of associated register is the Timer Control Register which defines the timer options and determines how the timer is to be used. The device can have the timer clock configured to come from the internal clock source. In addition, the timer clock source can also be configured to come from an external timer pin. Configuring the Timer/Event Counter Input Clock Source The Timer/Event Counter clock source can originate from an internal clock or an external pin. The internal clock source is used when the timer is in the timer mode or in the pulse width capture mode. For Timer/Event Counter 0, this internal clock source is first divided by a prescaler, the division ratio of which is conditioned by the Timer Control Register bits T0PSC0~T0PSC2. For Timer/Event Counter 0, the internal clock source is derived from fSYS while the internal clock source is derived from the instruction clock cycle, fSYS/4, for Timer/Event Counter 1. An external clock source is used when the timer is in the event counting mode, the clock source being provided on an external timer pin TCn. Depending upon the condition of the TnEG bit, each high to low, or low to high transition on the external timer pin will increment the counter by one. f TP f SYS T0 PS [ 2: 0] 7 St age Co un te r To T im er 0 i nt er na l cl oc k 8- 1 MU X 7 PW M Co nt ro l Ti me -B as e Co nt ro l f TP /1 28 PW M Ti me -B as e ev en t in te rru p t P er io d (f T0 CK =f TP ~ f TP /1 28 ) (2 ~ 2 ) * f TP ! Clock Structure 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 T1 ON Pr el oad R eg is te r Up C oun te r Da ta B us PF D1 2 ¸ TC 1 T1 E G 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 |
|
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 |