| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT9480 bảng dữ liệu(PDF) 14 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT9480 bảng dữ liệu(HTML) 14 Page - Holtek Semiconductor Inc |
|
14 / 47 page ![]() HT9480 Rev. 1.20 14 July 31, 2002 If crystal mask option is selected, the MCU clock can be fed by X1, X2 decoder input clock (See Application Cir- cuit 2). The functional units chip reset status is shown in the fol- lowing table. PC 0000H Interrupt Disabled Prescaler Cleared WDT Cleared. After master reset, WDT starts counting. Programmable timer Counter Off Timer/event Counter Off Programmable Tone Generator Off Pager Decoder Off Input/output Ports input mode SP Points to the top of the stack Programmable timer counter and timer/event coun- ter The programmable timer counter (TMR0) and timer/event counter (TMR1) are constructed using the same structure. Both counters contain an 8bit program- mable count-up counter, whose clocks may come from an external source or from the system clock divided by 4. If the internal instruction clock is selected, only one ref- erence time-base is provided. The external clock input allows the user to count external events, measure time intervals or pulse widths, or generate an accurate time base. The clock of the programmable timer counter should come from the external clock of the 75Hz for Real Time Clock (RTC) if a 76.8kHz crystal is used. There are two sets of registers related to the program- mable timer counter and to the timer/event counter namely, TMR0 (0DH) and TMRC0 (0EH) and TMR1 (10H) and TMRC1 (11H). There are also two physical registers mapped to the TMR0 and TMR1 locations: Writing to TMR0 and TMR1 puts the starting value in the programmable timer counter and in the timer/event counter preload registers, while reading them gets the contents of the two counters. TMRC0 and TMRC1 are control registers used to define some timer options. The TM0 and TM1 bits define the operation mode. The event count mode is used to count external events, which means that the clock source may come from ei- ther a 256Hz generator (for TMR0) or an external pin (for TMR1). The timer mode functions as a normal timer, with the clock source coming from the instruction clock or from the outputs of the TMR1 prescaler (TMR0 can- not be used in this mode). The pulse width measure- ment mode can be used to count the high or low level duration of the external signal TMR1, TMR0 is also dis- abled in this mode. The counting is based on the system clock. In the event count or timer mode, once the programma- ble timer counter or timer/event counter starts counting, it will count from the current contents in the counter to FFH. Once an overflow occurs, the counter is reloaded from its counter preload register and generates an inter- rupt request flag (T0F; bit 5 of INTC and T1F; bit 6 of INTC for programmable timer counter and timer/event counter, respectively). W D T H A L T W D T T i m e - o u t R e s e t R E S C o l d R e s e t W a r m R e s e t Reset configuration Labels (TMRC0 and TMRC1) Bits Function ¾ 0~2 Unused bit, read as ²0² TE 3 To define the TMR0 and TMR1 active edge of programmable timer counter and timer/event counter (0=active on low to high; 1=active on high to low) TON 4 To enable/disable timer counting (0=disabled; 1=enabled) ¾ 5 Unused bits, read as ²0² TM0 TM1 6 7 To define the operation mode 01=Event count mode (external clock) 10=Timer mode (internal clock) 11=Pulse width measurement mode 00=Unused TMRC register |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |