mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 66

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
13.4 Programmable Clock-Out from UART2 Baud Rate Timer
Using the UART2 Baud Rate Timer, a 50% duty cycle clock can be programmed to come out from pin S2CKO
(P3.5). The clock-out frequency depends on the system clock frequency (Fosc) and the reload value filled in the
S2BRT register, as shown in the following formula:
The UART2 Baud Rate Timer is programmed for the clock-out mode as follows:
• Set S2CKOE bit in AUXR2 register.
• Determine the 8-bit reload value from the formula and enter it in S2BRT register.
• Start the timer by setting the run control bit S2TR in AUXR2 register.
Figure 13-2. Programmable Clock-Out from UART2 Baud Rate Timer
MEGAWIN
Fosc
Clock-Out Frequency =
Where,
12
"0"
"1"
S2X12
n=24 if S2X12=0,
n=2 if S2X12=1.
MPC82G516A Data Sheet
S2TR
n x (256-S2BRT)
Fosc
Counter
(8 Bits)
S2BRT
(8 Bits)
Overflow
D
CK
Q
Q
Clock-Out
(P3.5)
66

Related parts for mpc82g516a