mg84fl54 Megawin Technology, mg84fl54 Datasheet - Page 46

no-image

mg84fl54

Manufacturer Part Number
mg84fl54
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
Fig 12-9 Auto-Address Recognition
Note:
12.7. Baud Rate Setting
Bits T1X12 and URM0X6 in AUXR2 register and BRADJ in AUXR register provide a new option for the baud
rate setting, as listed below.
12.7.1. Baud Rate in Mode 0
Note:
12.7.2. Baud Rate in Mode 2
Note:
12.7.3. Baud Rate in Mode 1 & 3
Using Timer 1 as the Baud Rate Generator
Note:
46
Mode 1, 3 Baud Rate =
Mode 2, 3
Mode 0 Baud Rate =
Mode 2 Baud Rate =
(1) After address matching(addr_match=1), Clear SM2 to receive data bytes
(2) After all data bytes have been received, Set SM2 to wait for next address.
If URM0X6=0, the baud rate formula is as same as standard 8051.
If BRADJ=0, the baud rate formula is as same as standard 8051.
(1) If BRADJ=0, T1X12=0, the baud rate formula is as same as standard 8051.
(2) For SYSCLK=12MHz, if BRADJ=1, T1X12=1, SMOD=1 and TH1=243, then we can get:
Receive Address D0~D7
Programmed Address
Start
or =
D0
SYSCLK Frequency
2
2
2
SMOD
SMOD
SCON
SMOD
n
n
n
D1
X (SYSCLK Frequency)
X
n
X
SM0/FE
Comparator
SYSCLK Frequency
SYSCLK Frequency
12 x (256 – TH1)
1 x (256 – TH1)
D2
MG84FL54B Data Sheet
SM1
; n=12, if URM0X6=0
; n=2, if URM0X6=1
D3
addr_match
SM2
9-bit data
D4
REN
; n=64, if BRADJ=0
; n=32, if BRADJ=1
; n=32, if BRADJ=0
; n=16, if BRADJ=1
; n=32, if BRADJ=0
; n=16, if BRADJ=1
D5
TB8
RB8
D6
TI
D7
, T1X12=0
, T1X12=1
RI
D8
Stop
MEGAWIN

Related parts for mg84fl54