MPC89L515A Megawin Technology, MPC89L515A Datasheet - Page 18

no-image

MPC89L515A

Manufacturer Part Number
MPC89L515A
Description
8-bit micro-controller
Manufacturer
Megawin Technology
Datasheet
www.DataSheet4U.com
Auto-Reload Up-Only Mode (ARUO)
In ARUO mode, Timer2 can be configured to count up with a software-defined value to be
reloaded. When reset is applied to the DCEN =0 and CP/RL2=0, Timer2 is at ARUO
mode. An overflow on Timer2 or 1-to-0 transition on T2EX pin will load RCAP2H and
RCAP2L contents onto Timer2, also set TF2 and EXF2, respectively.
Auto-Reload Up-Down Mode (ARUD)
In ARUD mode, Timer2 can be configured to count up or down. When DCEN =1 and CP/RL2=0,
Timer2 is at ARUD mode. The counting direction is determined by T2EX pin. If T2EX=1, counting
up; otherwise, counting down. An overflow on Timer2 will set TF2 and toggle EXF2. EXF2 cannot
generate interrupt request in this mode. If the counting direction is DOWN, the overflow loads
0xFFFF onto Timer2, and if counting direction is UP, the overflow loads RCAP2H, RCAP2L contents
onto Timer2.
OSC/12
18
T2EX pin
T2 pin
C//T2
OSC/12
TR2
T2 pin
C//T2
0
1
0
1
TR2
1
0
EXEN2
0
1
MPC89x515A Data Sheet
RCAP2L [7:0]
TL2 [7:0]
FFH
RCAP2L [7:0]
RCAP2H [7:0]
TL2 [7:0]
TH2[7:0]
FFH
RCAP2H [7:0]
TH2[7:0]
T2EX pin
EXF2
TF2
EXF2
MEGAWIN
TF2
Interrupt
Interrupt

Related parts for MPC89L515A