mg87fe Megawin Technology, mg87fe Datasheet - Page 20

no-image

mg87fe

Manufacturer Part Number
mg87fe
Description
8 Bits Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mg87fe2051AS20
Manufacturer:
MEGAWIN
Quantity:
20 000
Part Number:
mg87fe52AE
Manufacturer:
XILINX
Quantity:
1 200
Part Number:
mg87fe52AF
Manufacturer:
MEGAWIN
Quantity:
20 000
Part Number:
mg87fe52AF44
Manufacturer:
MEGAWIN原装
Quantity:
20 000
8.3 Timer2
Timer2 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. Timer2 has four operation modes:
Capture Mode(CP), Auto-Reload Up/Down Mode(ARUD), Auto-Reload Up-Only Mode(ARUO)
and Baud-Rate Generator Mode(BRG).
Table 8-1. Timer-2 Mode Table
Timer2 is also can be configured as a periodical signal generator.
The MG87FE/L52 is able to generate a programmable clock output from P1.0. When T2OE bits
is set and C//T2 bits is cleared, Timer2 overflow pulse will generate a 50% duty clock and output
to P1.0. The frequency of clock-out is calculated according to the following formula.
In the clock-out mode, Timer2 overflowed will not generate an interrupt.
Capture Mode (CP)
In the Capture mode, Timer2 is incremented by either CLKin(System Clock) 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 set TF2 flag and a 1-to-0 transition in T2EX pin sets EXF2 flag if EXEN2=1.
TF2 and EXF2 is logic OR to request the interrupt service.
(RCLK, TCLK)
Logical OR
1
0
0
0
x
Megawin Technology Co., Ltd.
CP/RL2
1
0
0
x
x
TR2
1
1
1
1
0
Preliminary
DCEN
0
0
0
1
x
OFF
Baud-Rate Generation
Capture
Auto-Reload Up-only
Auto-Reload Up/Down
ver 1.3
Date: 2009-JAN-20
Mode
MG87FE/L52
20

Related parts for mg87fe