English
Language : 

M16C62_M Datasheet, PDF (407/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
UART
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Setting UARTi transmit/receive mode register (i=0 to 2)
b7
00
001
b0
01
UART0 transmit/receive mode register
U0MR [Address 03A016]
UART1 transmit/receive mode register
U1MR [Address 03A816]
Serial I/O mode select bit
b2 b1 b0
1 0 1 : Transfer data 8 bits long
Internal/external clock select bit
0 : Internal clock
Stop bit length select bit
0 : One stop bit
Valid when bit 6 = “1”
Parity enable bit
0 : Parity diabled
Sleep select bit
0 : Sleep mode deselected
b7
00
b0 UART2 transmit/receive mode register
0 0 1 0 1 U2MR [Address 037816]
Serial I/O mode select bit
b2 b1 b0
1 0 1 : Transfer data 8 bits long
Must always be “0” in UART mode
Stop bit length select bit
0 : One stop bit
Valid when bit 6 = “1”
Parity enable bit
0 : Parity diabled
TXD,RXD I/O polarity reverse bit
Usually set to “0”
Setting UARTi transmit/receive control register 0 (i=0 to 2)
b7
b0 UART0 transmit/receive control register 0
0000
1
U0C0 [Address 03A416]
UART1 transmit/receive control register 0
U1C0 [Address 03AC16]
b7
b0 UART2 transmit/receive control register 0
00
0
1
U2C0 [Address 037C16]
BRG count source select bit
b1 b0
0 0 : f1 is selected
0 1 : f8 is selected
1 0 : f32 is selected
1 1 : Must not be set
CTS/RTS function select bit
(Valid when bit 4 = “0”)
1 : RTS function is selected
Transmit register empty flag
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit register
(transmission completed)
CTS/RTS disable bit
0 : CTS/RTS function enabled
Data output select bit
0 : TxDi pin is CMOS output
1 : TxDi pin is N-channel open-drain output
Must always be “0” in UART mode
Must always be “0” in UART mode
BRG count source select bit
b1 b0
0 0 : f1 is selected
0 1 : f8 is selected
1 0 : f32 is selected
1 1 : Must not be set
CTS/RTS function select bit
(Valid when bit 4 = “0”)
1 : RTS function is selected
Transmit register empty flag
Tra0ns: mDiattraegpirsetseernetminpttyrafnlasgmit register
0 : D(adtuaripnrgestreanntsimn itsrsainosnm) it register
1(d: uNroingdatrtaanpsrmesisesnitoinn) transmit register
1 : N(otradnastampisrseisoennctoinmtpralentsemd)it register
(transmission completed)
CTS/RTS disable bit
M0u:sCt bTeSf/iRxeTdStfoun“0c”tioinnUeAnRabTlemdode
Must always be “0” in UART mode
Transfer format select bit
0 : LSB first
Setting UART transmit/receive control register 2 and UART2 transmit/receive control register 1
b7
00
00
b0
UART transmit/receive control register 2
UCON [Address 03B016]
Must always be “0” in UART mode
Must always be “0” in UART mode
Invalid in UART mode
Must always be “0” in UART mode
b7
000
b0 UART2 transmit/receive control register 1
U2C1 [Address 037D16]
Must always be “0” in UART mode
Data logic select bit
0 : No reverse
Error signal output enable bit
0 : Output disabled
Reserved bit
Must always be set to “0”
Continued to the next page
Figure 2.5.12. Set-up procedure of reception in UART mode (1)
2-90