| Electronic Components Datasheet Search |
|
UPD78C18 Datasheet(PDF) 31 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD78C18 Datasheet(HTML) 31 Page - NEC |
|
31 / 110 page ![]() 31 µPD78C17,78C18 2.6 TIMER This is an interval timer which has two 8-bit timers (TIMER0, TIMER1). These are programmable indepen- dently. By cascading these can also be used as 16-bit interval timer, and can be used for counting TI input. The timer is composed of TIMER0 and TIMER1, as shown in 2-15, including 8-bit TIMER REG (TM0, TM1), 8- bit COMPARATOR, 8-bit UPCOUNTER, and TIMER F/F. Input selection, timer operation and TO output are controlled by the timer mode register (TMM). In TIMER0, φ12 (1 µs: 12-MHz operation) and φ384 (32 µs: 12-MHz operation) internal clock and TI input are input. In TIMER1, not only these inputs but also TIMER0 match signal are input. Because TIMER0 operates in the same way as TIMER1, TIMER0 operation is described below. At first, a count value is set in TIMER REG0, and TIMER0 input and TIMER0 start data (bit 4 in the timer mode register = “0”) are set in the timer mode register to start TIMER0. The UPCOUNTER is incremented one input at a time. The COMPARATOR always compares contents of the incremented UPCOUNTER with those of TIMER REG0, and if these match, the match signal (internal interrupt: INTT0) is generated. This match clears contents of UPCOUNTER and increment starts again from 00H. Therefore, the interval is set by count time, which is a count value set by TIMER REG0. This allows the timer to operate as an interval timer which gener- ates interrupts repeatedly. By setting (1) bit 1 (MKT0) of the interrupt mask register (MKL), internal interrupt (INTT0) is disabled. The TO output has timers COMPARATOR match signal and TIMER F/F complemented by φ3 (250 ns: 12-MHz operation) internal clocks, and can obtain a square wave which has a half period of the count time or φ3. By setting the timer/event counter mode register (ETMM), this output can be used for the timer event counter reference time. By setting the serial mode register (SMH), the timer can be used as the serial clock (SCK) in serial interface. |
|
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 |