Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

P89CV51RB2 Datasheet(PDF) 33 Page - NXP Semiconductors

Part # P89CV51RB2
Description  8-bit 80C51 5 V low power 64 kB flash microcontroller with 1 kB RAM, SPI, 6-clock CPU with 6/12-clock peripherals
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NXP [NXP Semiconductors]
Direct Link  http://www.nxp.com
Logo NXP - NXP Semiconductors

P89CV51RB2 Datasheet(HTML) 33 Page - NXP Semiconductors

Back Button P89CV51RB2_09 Datasheet HTML 29Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 30Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 31Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 32Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 33Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 34Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 35Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 36Page - NXP Semiconductors P89CV51RB2_09 Datasheet HTML 37Page - NXP Semiconductors Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 76 page
background image
P89CV51RB2_RC2_RD2_3
© NXP B.V. 2009. All rights reserved.
Product data sheet
Rev. 03 — 25 August 2009
33 of 76
NXP Semiconductors
P89CV51RB2/RC2/RD2
80C51 with 1 kB RAM, SPI
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.
Auto reload frequency when Timer 2 is counting up can be determined from Equation 1:
(1)
Where SupplyFrequency is either fosc (C/T2 = 0) or frequency of signal on T2 pin
(C/T2 = 1).
If EXEN2 = 1, 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 is 1.
The microcontroller’s hardware will need three consecutive machine cycles in order to
recognize falling edge on T2EX and set EXF2 = 1: in the first machine cycle pin T2EX has
to be sampled as 1; in the second machine cycle it has to be sampled as 0, and in the
third machine cycle EXF2 will be set to 1.
In Figure 13, DCEN = 1 and Timer 2 is enabled 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.
SupplyFrequency
65536
RCAP2H RCAP2L
,
()
–
----------------------------------------------------------------------------
Fig 13. Timer 2 in Auto reload mode (DCEN = 1)
002aaa525
TL2
(8-bits)
TH2
(8-bits)
TF2
EXF2
underflow
timer 2
interrupt
RCAP2L RCAP2H
FFH
FFH
overflow
(down-counting reload value)
(up-counting reload value)
count direction
1 = up
0 = down
T2EX pin
toggle
OSC
÷6
T2 pin
C/T2 = 0
C/T2 = 1
control
TR2



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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76


Datasheet Download

Go To PDF Page


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


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