| Electronic Components Datasheet Search |
|
HT49C10 Datasheet(PDF) 20 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT49C10 Datasheet(HTML) 20 Page - Holtek Semiconductor Inc |
|
20 / 47 page ![]() HT49C10 20 September 28, 1999 Timer/event counter A timer/event counter (TMR) is implemented in the HT49C10. The timer/event counter contains an 8-bit programmable count-up counter, and the clock source may come from the system clock or instruction clock (system clock/4) or RTC time-out signal or external source. System clock source or instructionclockisselectedbymaskoption. The external clock input allows the user to count external events, measure time intervals or pulse widths, or generate an accurate time base. There are two registers related to the timer/event counter, i.e., TMR ([0DH]) and TMRC ([0EH]). And two physical registers are mapped to TMR location; writing TMR locates the starting value in the timer/event counter preload register, while reading it yields the contents of the timer/event counter. The TMRC is a timer/event counter con- trol register which defines some options. The TN0 and TN1 bits define the operation mode. The event count mode is used to count ex- ternal events, which means that the clock source is from an external (TMR) pin. The timer mode functions as a normal timer with the clock source coming from the internal selected clock source. Finally, the pulse width measure- ment mode can be used to count the high or low level duration of the external signal (TMR), and the counting is based on the internal selected clock source. In the event count or timer mode, the timer/event counter starts counting at the cur- rent contents in the timer/event counter and ends at FFH. Once an overflow occurs, the counter is reloaded from the timer/event coun- ter preload register, and generates an interrupt request flag (TF; bit 6 of INTC0). In the pulse width measurement mode with the values of the TON and TE bits equal to one, after the TMR has received a transient from low to high (or high to low if the TE bit is ²0²), it will start counting until the TMR re- turns to the original level and resets the TON. The measured result remains in the timer/event counter even if the activated transient occurs again. In other words, only one cycle measurement can be done. Until set- ting the TON, the cycle measurement will re-function as long as it receives further tran- sient pulse. In this operation mode, the timer/event counter begins counting according not to the logic level but to the transient edges. In the case of counter overflows, the counter is reloaded from the timer/event counter preload register and issues an interrupt request, as in the other two modes, i.e., event and timer modes. To enable the counting operation, the Timer ON bit (TON; bit 4 of TMRC) should be set to 1. In the pulse width measurement mode, the TON is automatically cleared after the measurement cycle is completed. But in the other two modes, TE Sy s t e m C l o c k TN 1 TN 0 TM R TN 1 TN 0 TO N P u l s e W i dt h M eas ur e m ent M ode C ont r o l T i m e r / E v ent C ount er P r el oad R e gi s t er T i m e r / E v ent C ount e r Da t a B u s R e l oad O v er f l ow T o In te r r u p t Ma s k Op t i o n Se l e c t M U X TN 2 T Q PF D O u t PA3 D a t a C T R L RT C O u t S y s t e m C l o c k /4 Timer/event counter |
|
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 |