| Electronic Components Datasheet Search |
|
P89C738 Datasheet(PDF) 21 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
P89C738 Datasheet(HTML) 21 Page - NXP Semiconductors |
|
21 / 64 page ![]() 1998 Apr 07 21 Philips Semiconductors Product specification 8-bit Flash microcontrollers P89C738; P89C739 10.2 Timer 2 Timer 2 is functionally similar to the Timer 2 of the 8052AH. Timer 2 is a 16-bit timer/counter which is formed by two SFRs, TL2 and TH2. Another pair of SFRs, RCAP2L and RCAP2H, form a 16-bit capture register or a 16-bit reload register. Like Timer 0 and Timer 1, Timer 2 can operate either as timer or as event counter. This is selected by bit C/T2 in SFR T2CON. The timer has three operating modes: ‘capture’, ‘autoload’ and ‘baud rate generator’, which are selected by bits in SFR T2CON (see Tables 14 and 15). 10.2.1 TIMER/COUNTER 2CONTROL REGISTER (T2CON) Table 14 Timer/Counter 2 Control Register (SFR address C8H) Table 15 Description of T2CON bits Table 16 Timer 2 operating modes X = don’t care. 76543210 TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2 CP/RL2 BIT SYMBOL DESCRIPTION 7 TF2 Timer 2 overflow flag. Set by a Timer 2 overflow and must be cleared by software. TF2 will not be set when either RCLK = 1 or TCLK = 1. When Timer 2 interrupt is enabled, TF2 = 1 will cause the CPU to vector to Timer 2 interrupt routine. 6 EXF2 Timer 2 external flag. Set when either a capture or reload is caused by a negative transition on T2EX and when EXEN2 = 1. When Timer T2 interrupt is enabled, EXF2 = 1 will cause the CPU to vector to Timer 2 interrupt routine. 5 RCLK Receive clock flag. When set, causes the Serial Port to use Timer 2 overflow pulses for its receive clock in Modes 1 and 3. RCLK = 0 causes Timer 1 overflows to be used for the receive clock. 4 TCLK Transmit clock flag. When set, causes the Serial Port to use Timer 2 overflow pulses for its transmit clock in Modes 1 and 3. TCLK = 0 causes Timer 1 overflows to be used for the transmit clock. 3 EXEN2 Timer 2 external enable flag. When set, allows a capture or reload to occur as a result of a negative transition on T2EX, if Timer 2 is not being used to clock the Serial Port. EXEN2 = 0, causes Timer 2 to ignore events at T2EX. 2 TR2 Timer 2 start/stop control. TR2 = 1 starts Timer 2; TR2 = 0 stops Timer 2. 1C/T2 Timer 2 timer or counter select. C/T2 = 0 selects the internal timer with a clock frequency of 1 ⁄12fclk. C/T2 = 1 selects the external event counter; falling edge triggered. 0 CP/RL2 Capture/reload flag. When set, capture will occur on negative transitions at T2EX if EXEN2 = 1. When cleared, reloads will occur upon either Timer 2 overflows or negative transitions at T2EX if EXEN2 = 1. When either RCLK = 1 or TCLK = 1, this bit is ignored and the timer is forced to reload upon overflow. RCLK TCLK CP/RL2 TR2 MODE 0001 16-bit automatic reload 0011 16-bit capture 1 1 X 1 baud rate generator X X X 0 off |
|
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 |