mpc89x515a Megawin Technology, mpc89x515a Datasheet - Page 18

no-image

mpc89x515a

Manufacturer Part Number
mpc89x515a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
Timer2 is also can be configured as a periodical signal generator.
The MPC89x515A is able to generate a programmable clock output on P1.0. When T2OE bit is
set and C//T2 bit is cleared, Timer2 overflow pulse will generate a 50% duty clock and output
that to P1.0. The frequency of clock-out is calculated according to the following formula.
In the clock-out mode, Timer2 rollovers will not generate an interrupt.
Capture Mode (CP)
In the Capture mode, Timer2 is incremented by either OSC/12 or external pin (T2)
1-to-0 transition. TR2 controls the event to timer2 and a 1-to-0 transition on T2EX pin
will trigger RCAP2H and RCAP2L registers to capture the Timer2 contents onto them
if EXEN2 is set. An overflow in Timer2 sets TF2 flag and a 1-to-0 transition in T2EX
pin sets EXF2 flag if EXEN2=1. TF2 and EXF2 is ORed to request the interrupt
service.
18
T2EX pin
OSC/12
T2 pin
C//T2
TR2
0
1
4 x (65536 – RCAP2H, RCAP2L)
EXEN2
Oscillator frequency
0
1
MPC89x515A Data Sheet
RCAP2L [7:0]
TL2 [7:0]
RCAP2H [7:0]
TH2[7:0]
EXF2
TF2
MEGAWIN
Interrupt

Related parts for mpc89x515a