mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 44

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
11.1.5 Programmable Clock-Out from Timer 0
Using Timer 0, a 50% duty cycle clock can be programmed to come out from pin T0CKO (P3.4).
The clock-out frequency depends on the system clock frequency (Fosc) and the reload value filled in the TH0
register, as shown in the following formula:
Timer 0 is programmed for the clock-out mode as follows:
• Set T0CKOE bit in AUXR2 register.
• Clear C/-T bit of Timer 0 in TMOD register.
• Clear GATE bit of Timer 0 in TMOD register.
• Determine the 8-bit reload value from the formula and enter it in TH0 register.
• Enter an 8-bit initial value in TL0 register. It should be the same as the reload value.
• Start the timer by setting the run control bit TR0 in TCON register.
Figure 11-5. Programmable Clock-Out from Timer 0
MEGAWIN
* Fosc is the system clock.
GATE=0
/INT1 pin
Fosc
TR0
12
"0"
"1"
Clock-Out Frequency =
Where,
T0X12
n=24 if T0X12=0,
n=2 if T0X12=1.
"0"
C/-T=0
MPC82G516A Data Sheet
n x (256-TH0)
Fosc
(8 Bits)
(8 Bits)
TL0
TH0
Load
Overflow
D
CK
Q
Q
Clock-Out
(P3.4)
44

Related parts for mpc82g516a