ML610Q111/ML610Q112 User’s Manual
Chapter 12 UART
FEUL610Q111
12-26
12.4.7
Functioning PB3(TXD1) and PB7(RXD1) as the UART
Set the PB3MD1 bit(bit3 of PBMOD1 register) to “1” and set the PB7MD1(bit7 of PBMOD1 register) to “0”, and set the
PB3MD0, PB7MD0 bits(bit3 and bit7 of PBMOD0 register) to “0”, for specifying the UART as the tertiary function of
PB3 and the primary function of PB7.
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 PB3C1 bit (bit3 of PBCON1 register) to "1", the PB3C0 bit (bit3 of PBCON0 register) to "1", and the PB3DIR bit
(bit3 of PBDIR register) to "0" for specifying the state mode of the PB3 pin to CMOS output.
Set the PB7DIR bit (bit7 of PBDIR register) to “1” for specifying the PB7 as an input pin.
The set value ($) is arbitrary for the PB7C1 and PB7C0 bits. Select an arbitrary input mode depending on the state of the
external circuit to which the PB7 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 PB3D, PB7D bits (bit3 and bit7 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
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 ...