ML610Q111/ML610Q112 User’s Manual
Chapter 12 UART
FEUL610Q111
12-21
12.4.2
Functioning PB4(TXD0) and PB5(RXD0) as the UART
Set the PB4MD1(bit4 of PBMOD1 register) to “1” and set the PB5MD1 bit (bit5 of PBMOD1 register) to “0”, and set the
PB5MD0-PB4MD0 bits(bit5-4 of PBMOD0 register) to “0”, for specifying the UART as the primary function of PB5 and
the tertiary function of PB4.
Register name
PBMOD1 register (Address: 0F25DH)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7MD1
PB6MD1
PB5MD1 PB4MD1
PB3MD1
PB2MD1
PB1MD1 PB0MD1
Setting value
*
*
0
1
*
*
*
*
Register name
PBMOD0 register (Address: 0F25CH)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7MD0
PB6MD0
PB5MD0 PB4MD0
PB3MD0
PB2MD0
PB1MD0 PB0MD0
Setting value
*
*
0
0
*
*
*
*
Set the PB4C1 bit (bit4 of PBCON1 register) to "1", the PB4C0 bit (bit4 of PBCON0 register) to "1", and the PB4DIR bit
(bit4 of PBDIR register) to "0" for specifying the state mode of the PB4 pin to CMOS output.
Set the PB5DIR bit (bit5 of PBDIR register) to “1” for specifying the PB5 as an input pin.
The set value ($) is arbitrary for the PB5C1 and PB5C0 bits. Select an arbitrary input mode depending on the state of the
external circuit to which the PB5 pin is connected.
Register name
PBCON1 register (Address: 0F25BH)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7C1
PB6C1
PB5C1
PB4C1
PB3C1
PB2C1
PB1C1
PB0C1
Setting value
*
*
$
1
*
*
*
*
Register name
PBCON0 register (Address: 0F25AH)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7C0
PB6C0
PB5C0
PB4C0
PB3C0
PB2C0
PB1C0
PB0C0
Setting value
*
*
$
1
*
*
*
*
Register name
PBDIR register (Address: 0F259H)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7DIR
PB6DIR
PB5DIR
PB4DIR
PB3DIR
PB2DIR
PB1DIR
PB0DIR
Setting value
*
*
1
0
*
*
*
*
The PB5D, PB4D bit ( bit5-4 of PBD register) data can either be "0" or "1" (not need to be set).
Register name
PBD register (Address: 0F258H)
Bit
7
6
5
4
3
2
1
0
Bit name
PB7D
PB6D
PB5D
PB4D
PB3D
PB2D
PB1D
PB0D
Setting value
*
*
**
**
*
*
*
*
* : Bit not related to the UART function
** : Don’t care $: Optional
Note
:
−
The receive pin (RXD) is selected by U0RSEL bit (bit4 of UA0MOD0 register). The initial value "0" selects the PB0 and
the value "1" selects the PB5.
−
Even if the PB5 pin is selected as RXD0 by the PB5MD1, PB5MD0, PB5C1, PB5C0, and PB5IDR bits, the PB0 pin will be
selected as RXD0 when the U0RSEL bit of the UA0MOD0 register is "0".
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...