EasyManuals Logo

Dwin T5L ASIC Series User Manual

Dwin T5L ASIC Series
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #27 background imageLoading...
Page #27 background image
T5L_ASIC Development Guide
- 27
-
www.dwin-global.com
D
WI
N
T
echnology
Pro
f
essional
,
Credi
t
able
,
Success
f
ul
3.7 UART
3.7.1 UART2
UART2 related SFR are shown in the following table.
SFR name
Address
Instructions
MUX_SEL
0xC9
.6 1 = UART2 interface leads to P 0.4 and P 0.5;
0 = UART02 interface does not lead out, it works as an IO port .
SCONO
0x98
UART2 control interface, the same as standard 8051, can be addressable by bit.
.7=SM0
.6=SM1
.5=SM2(multiprocessor communication bit)
.4=REN0
.3=TB80
.2=RB80
.1=TI0
.0=RI0.
SBUF0
0x99
UART2 transceiver data interface
ADCON
0xD8
Baud rate generator selection, 0x00 = T1 timer (standard 8051), 0x80 = SRELOH: L.
PCON
0x87
.7 SMOD baud rate frequency doubling selection.
0 = no frequency doubling
1 = frequency doubling.
SRELOH
0xBA
When ADCON = 0x80, SRELOH:L is used to set the baud rate without occupying T1.
SMOD=0 SREOH:L=1024-CPU main frequency/(64*baud rate)
SMOD=1 SREOH:L=1024-CPU main frequency/(32*baud rate)
CPU main frequency = crystal frequency * 56/3, 11.0592 MHz crystal corresponds to 206.4384 MHz
main frequency.
SRELOL
0xAA
The relevant settings for UART2 interruption are as follows:
Interrupt
type
Program entry
address
Trigger marker
Interrupt enabling
control
Remarks
UART2
interrupt
0x0023
RIO(SCON0.0)
TIO(SCON0.1)
IEN0.4
After interruption, software needs to clear the
interruption trigger mark.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Dwin T5L ASIC Series and is the answer not in the manual?

Dwin T5L ASIC Series Specifications

General IconGeneral
BrandDwin
ModelT5L ASIC Series
CategoryControl Unit
LanguageEnglish