Rev.2.00 Oct 16, 2006 page 79 of 354
REJ09B0340-0200
M30245 Group
2. SIM interface
Continued to the next page
Setting UART transmit/receive control register 1 (i=0 to 3)
Setting UARTi transmit/receive mode register (i=0 to 3)
UARTi transmit/receive mode register
UiMR [Address 03A8
16
, 368
16
, 0338
16
, 328
16
]
Setting UARTi transmit/receive control register 0 (i=0 to 3)
UARTi transmit/receive control register 0
UiC0 [Address 03AC
16
, 36C
16
, 033C
16
, 32C
16
]
UARTi transmit interrupt cause select bit
1 : Transmission completed (TXEPT = 1)
Error signal output enable bit (in UART mode)
1 : Output enabled
b7 b0
1
0
1
1
Must be fixed to “0” in UART mode
UARTi transmit/receive control register 1
UiC1 [Address 03AD
16
, 36D
16
, 033D
16
, 32D
16
]
0 1 0 0 1 1 0 1
Internal/external clock select bit
1 : External clock (Note 2)
Serial I/O mode select bit (Note 1)
b2 b1 b0
1 0 1 : Transfer data 8 bits long
Stop bit length select bit
0 : One stop bit
Parity enable bit
1 : Parity enabled
T
X
D, R
X
D I/O polarity reverse bit
Usually set to “0”
Odd/even parity select bit(Valid when bit 6 = “1”)
Must be "0" (odd parity) in inverse format
Note 1: Set the RxDi pin's port direction register to “0” when receiving.
2: Set the corresponding port direction register to “0”.
b7 b0
Valid when bit 4 = “0”
BRG count source select bit
b1 b0
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
Transmit register empty flag
0 : Data present in transmit register (during transmission)
1 : No data present in transmit register (transmission completed)
Must be fixed to “0” in UART mode
Transfer format select bit
Must be “1” (MSB first) in inverse format
CTS/RTS disable bit
1 : CTS/RTS function disabled
1 0 1 1
Data output select bit
1 : TxDi/SDAi and SCLi pin is N-channel open drain output
Data logic select bit
Must be “1” (reverse) in inverse format
b7 b0
Figure 2.4.17. Set-up procedure of reception in UART mode (used for SIM interface) (1)
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...