mg84fl54 Megawin Technology, mg84fl54 Datasheet - Page 34

no-image

mg84fl54

Manufacturer Part Number
mg84fl54
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
C/-T: Timer or Counter selector.
Clear for Timer operation (input from internal system clock). Set for Counter operation (input from T0 or T1 input
pin).
M1~M0: Operating mode selector.
TCON (Address=89H, Timer/Counter Mode Control Register)
TF1: Timer 1 overflow Flag.
Set by hardware on Timer/Counter overflow. Cleared by hardware when processor vectors to interrupt routine.
TR1: Timer 1 Run control bit.
Set/cleared by firmware to turn Timer/Counter 1 on/off.
TF0: Timer 0 overflow Flag.
Set by hardware on Timer/Counter 0 overflow. Cleared by hardware when processor vectors to interrupt routine.
TR0: Timer 0 Run control bit.
Set/cleared by firmware to turn Timer/Counter 0 on/off.
AUXR2 (Address=A6H, Auxiliary Register 2)
T0X12: Timer 0 clock source select while C/T=0.
Set to select SYSCLK as the clock source, and clear to select SYSCLK/12.
T1X12: Timer 1 clock source select while C/T=0.
Set to select SYSCLK as the clock source, and clear to select SYSCLK/12.
T0CKOE: Timer 0 clock output enable bit.
Set to enable Timer 0 clock output on P3.4.
34
T0X12
TF1
7
7
M1 M0
0
0
1
1
1
T1X12
0
1
0
1
1
TR1
6
6
URM0x6
Operating Mode
8-bit Timer/Counter. THx with TLx as 5-bit prescaler.
16-bit Timer/Counter. THx and TLx are cascaded; there is no prescaler.
8-bit auto-reload Timer/Counter. THx holds a value which is to be reloaded into TLx
each time it overflows.
(Timer 0) TL0 is an 8-bit Timer/Counter controlled by the standard Timer 0 control
bits. TH0 is an 8-bit timer only controlled by Timer 1 control bits.
(Timer 1) Timer/Counter stopped.
TF0
5
5
MG84FL54B Data Sheet
TR0
4
4
-
IE1
3
3
-
IT1
2
2
-
IE0
1
1
-
T0CKOE
IT0
0
0
MEGAWIN

Related parts for mg84fl54