Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

P89C51RC2BB Datasheet(PDF) 11 Page - NXP Semiconductors

Part # P89C51RC2BB
Description  80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM
Download  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  PHILIPS [NXP Semiconductors]
Direct Link  http://www.nxp.com
Logo PHILIPS - NXP Semiconductors

P89C51RC2BB Datasheet(HTML) 11 Page - NXP Semiconductors

Back Button P89C51RC2BB Datasheet HTML 7Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 8Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 9Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 10Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 11Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 12Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 13Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 14Page - NXP Semiconductors P89C51RC2BB Datasheet HTML 15Page - NXP Semiconductors Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 52 page
background image
Philips Semiconductors
Preliminary specification
89C51RB2/89C51RC2/
89C51RD2
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM
1999 Sep 23
11
TIMER 2 OPERATION
Timer 2
Timer 2 is a 16-bit Timer/Counter which can operate as either an
event timer or an event counter, as selected by C/T2* in the special
function register T2CON (see Figure 1). Timer 2 has three operating
modes: Capture, Auto-reload (up or down counting), and Baud Rate
Generator, which are selected by bits in the T2CON as shown in
Table 3.
Capture Mode
In the capture mode there are two options which are selected by bit
EXEN2 in T2CON. If EXEN2=0, then timer 2 is a 16-bit timer or
counter (as selected by C/T2* in T2CON) which, upon overflowing
sets bit TF2, the timer 2 overflow bit. This bit can be used to
generate an interrupt (by enabling the Timer 2 interrupt bit in the
IE register). If EXEN2= 1, Timer 2 operates as described above, but
with the added feature that a 1- to -0 transition at external input
T2EX causes the current value in the Timer 2 registers, TL2 and
TH2, to be captured into registers RCAP2L and RCAP2H,
respectively. In addition, the transition at T2EX causes bit EXF2 in
T2CON to be set, and EXF2 like TF2 can generate an interrupt
(which vectors to the same location as Timer 2 overflow interrupt.
The Timer 2 interrupt service routine can interrogate TF2 and EXF2
to determine which event caused the interrupt). The capture mode is
illustrated in Figure 2 (There is no reload value for TL2 and TH2 in
this mode. Even when a capture event occurs from T2EX, the
counter keeps on counting T2EX pin transitions or osc/6 pulses
(osc/12 in 12 clock mode).).
Auto-Reload Mode (Up or Down Counter)
In the 16-bit auto-reload mode, Timer 2 can be configured (as either
a timer or counter [C/T2* in T2CON]) then programmed to count up
or down. The counting direction is determined by bit DCEN (Down
Counter Enable) which is located in the T2MOD register (see
Figure 3). When reset is applied the DCEN=0 which means Timer 2
will default to counting up. If DCEN bit is set, Timer 2 can count up
or down depending on the value of the T2EX pin.
Figure 4 shows Timer 2 which will count up automatically since
DCEN=0. In this mode there are two options selected by bit EXEN2
in T2CON register. If EXEN2=0, then Timer 2 counts up to 0FFFFH
and sets the TF2 (Overflow Flag) bit upon overflow. This causes the
Timer 2 registers to be reloaded with the 16-bit value in RCAP2L
and RCAP2H. The values in RCAP2L and RCAP2H are preset by
software means.
If EXEN2=1, then a 16-bit reload can be triggered either by an
overflow or by a 1-to-0 transition at input T2EX. This transition also
sets the EXF2 bit. The Timer 2 interrupt, if enabled, can be
generated when either TF2 or EXF2 are 1.
In Figure 5 DCEN=1 which enables Timer 2 to count up or down.
This mode allows pin T2EX to control the direction of count. When a
logic 1 is applied at pin T2EX Timer 2 will count up. Timer 2 will
overflow at 0FFFFH and set the TF2 flag, which can then generate
an interrupt, if the interrupt is enabled. This timer overflow also
causes the 16-bit value in RCAP2L and RCAP2H to be reloaded
into the timer registers TL2 and TH2.
When a logic 0 is applied at pin T2EX this causes Timer 2 to count
down. The timer will underflow when TL2 and TH2 become equal to
the value stored in RCAP2L and RCAP2H. Timer 2 underflow sets
the TF2 flag and causes 0FFFFH to be reloaded into the timer
registers TL2 and TH2.
The external flag EXF2 toggles when Timer 2 underflows or overflows.
This EXF2 bit can be used as a 17th bit of resolution if needed. The
EXF2 flag does not generate an interrupt in this mode of operation.
(MSB)
(LSB)
Symbol
Position
Name and Significance
TF2
T2CON.7
Timer 2 overflow flag set by a Timer 2 overflow and must be cleared by software. TF2 will not be set
when either RCLK or TCLK = 1.
EXF2
T2CON.6
Timer 2 external flag set when either a capture or reload is caused by a negative transition on T2EX and
EXEN2 = 1. When Timer 2 interrupt is enabled, EXF2 = 1 will cause the CPU to vector to the Timer 2
interrupt routine. EXF2 must be cleared by software. EXF2 does not cause an interrupt in up/down
counter mode (DCEN = 1).
RCLK
T2CON.5
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 overflow to be used for the receive clock.
TCLK
T2CON.4
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.
EXEN2
T2CON.3
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.
TR2
T2CON.2
Start/stop control for Timer 2. A logic 1 starts the timer.
C/T2
T2CON.1
Timer or counter select. (Timer 2)
0 = Internal timer (OSC/6 in 6 clock mode or OSC/12 in 12 clock mode)
1 = External event counter (falling edge triggered).
CP/RL2
T2CON.0
Capture/Reload flag. When set, captures will occur on negative transitions at T2EX if EXEN2 = 1. When
cleared, auto-reloads will occur either with Timer 2 overflows or negative transitions at T2EX when
EXEN2 = 1. When either RCLK = 1 or TCLK = 1, this bit is ignored and the timer is forced to auto-reload
on Timer 2 overflow.
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/T2
CP/RL2
SU01251
Figure 1. Timer/Counter 2 (T2CON) Control Register


Similar Part No. - P89C51RC2BB

ManufacturerPart #DatasheetDescription
logo
NXP Semiconductors
P89C51RC2BBD/01 PHILIPS-P89C51RC2BBD/01 Datasheet
404Kb / 68P
   80C51 8-bit Flash microcontroller family
2002 Jul 18
More results

Similar Description - P89C51RC2BB

ManufacturerPart #DatasheetDescription
logo
NXP Semiconductors
P89C668 PHILIPS-P89C668 Datasheet
299Kb / 54P
   80C51 8-bit Flash microcontroller family 64KB ISP FLASH with 8KB RAM
2001 Jul 27
logo
List of Unclassifed Man...
VRS1000 ETC1-VRS1000 Datasheet
741Kb / 47P
   64kB Embedded ISP/IAP FLASH 1kB RAM, 40 MHz, 8-Bit MCU
logo
SyncMOS Technologies,In...
SM5964 SYNCMOS-SM5964_06 Datasheet
886Kb / 26P
   8-Bits Micro-controller 64KB ISP flash & 1KB RAM embedded
SM5964A SYNCMOS-SM5964A Datasheet
885Kb / 30P
   8-Bit Micro-controller With 64KB ISP Flash & TWSI & PWM & 1KB RAM embedded
logo
NXP Semiconductors
P89C51RB2HXX PHILIPS-P89C51RB2HXX Datasheet
314Kb / 56P
   80C51 8-bit Flash microcontroller family
2002 May 24
P89C51RD2 PHILIPS-P89C51RD2 Datasheet
404Kb / 68P
   80C51 8-bit Flash microcontroller family
2002 Jul 18
P89C60X2 PHILIPS-P89C60X2 Datasheet
342Kb / 56P
   80C51 8-bit Flash microcontroller family
2003 Sep 11
P89C660 PHILIPS-P89C660 Datasheet
491Kb / 89P
   80C51 8-bit Flash microcontroller family
2002 Oct 28
P89C51X2 PHILIPS-P89C51X2 Datasheet
319Kb / 48P
   80C51 8-bit Flash microcontroller family
2002 Jun 05
logo
SyncMOS Technologies,In...
SM8958A SYNCMOS-SM8958A Datasheet
509Kb / 25P
   8 - Bit Micro-controller with 32KB flash & 1KB RAM embedded
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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