| Datenblatt-Suchmaschine für elektronische Bauteile |
|
HT47C20 Datenblatt(PDF) 21 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT47C20 Datenblatt(HTML) 21 Page - Holtek Semiconductor Inc |
|
21 / 56 page ![]() HT47C20 21 January 18, 2000 Timer/event counter One 16-bit timer/event counter with PFD output or two channels of RC type A/D converter is im- plemented in the HT47C20. The ADC/TM bit (bit 1 of ADCR register) decides whether timer A and timer B is composed of one 16-bit timer/event counter or timer Aand timer B com- posedoftwochannelsRCtypeA/Dconverter. The TMRAL, TMRAH, TMRBL, TMRBH com- pose one 16-bit timer/event counter, when ADC/TM bit is ²0². The TMRBL and TMRBH are timer/event counter preload registers for lower-order byte and higher-order byte respec- tively. Using the internal clock, there are three refer- ence time-base. The timer/event counter clock source may come from the system clock or sys- tem clock/4 or RTC time-out signal or external source. The external clock input allows the user to count external events, count external RC type A/D clock, measure time intervals or pulse widths, or generate an accurate time base. There are six registers related to the timer/event counter operating mode. TMRAH ([20H]), TMRAL ([21H]), TMRC ([22H]), TMRBH ([23H]), TMRBL ([24H]) and ADCR ([25H]). Writing TMRBL only writes the data into a low byte buffer, and writing TMRBH will write the data and the contents of the low byte buffer into the time/event counter preload register (16-bit) si- multaneously. The timer/event counter preload register is changed by writing TMRBH opera- tions and writing TMRBL will keep the timer/event counter preload register unchanged. Reading TMRAH will also latch the TMRAL into the low byte buffer to avoid the false timing problem. Reading TMRAL returns the contents of the low byte buffer. In other words, the low byte of the timer/event counter can not be read directly. It must read the TMRAH first to make the low byte contents of the timer/event counter be latched into the buffer. The TMRC is the timer/event counter control register, which defines the timer/event counter options. The timer/event counter control register de- fines the operating mode, counting enable or disable and active edge. Writing to timer B makes the starting value be placed in the timer/event counter preload regis- ter, while reading timer A yields the contents of the timer/event counter. Timer B is timer/event counter preload register. The TN0, TN1 and TN2 bits define the opera- tion mode. The event count mode is used to count external events, which means that the clock source comes from an external (TMR) pin. The A/D clock mode is used to count external A/D clock, the RC oscillation mode is decided by ADCR register. The timer mode functions as a normal timer with the clock source coming from the internal selected clock source. Finally, the pulse width measurement mode can be used to count the high or low level duration of the ex- ternal signal (TMR). The counting is based on the instruction clock. In the event count, A/D clock or internal timer mode, once the timer/event counter starts counting, it will count from the current con- TE Sy s t e m C l o c k TM R 0 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 16- bi t T i m e r A 16- bi t T i m e r B Da t a B u s R e l oad ov er f l ow M U X TN 2 TQ PF D 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 A/ D C l o c k TN 1 TN 0 TN 2 R Timer/event counter |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |