Functioning Pb3(Txd1) And Pb7(Rxd1) As The Uart - Lapis ML610Q111 User Manual

Table of Contents

Advertisement

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
Bit
Bit name
Setting value
Register name
Bit
Bit name
Setting value
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
Bit
Bit name
Setting value
Register name
Bit
Bit name
Setting value
Register name
Bit
Bit name
Setting value
The PB3D, PB7D bits (bit3 and bit7 of PBD register) data can either be "0" or "1" (not need to be set).
Register name
Bit
Bit name
Setting value
* : Bit not related to the UART function
** : Don't care
FEUL610Q111
7
6
PB7MD1
PB6MD1
PB5MD1
0
*
7
6
PB7MD0
PB6MD0
PB5MD0
0
*
7
6
PB7C1
PB6C1
PB5C1
$
*
7
6
PB7C0
PB6C0
PB5C0
$
*
7
6
PB7DIR
PB6DIR
PB5DIR
1
*
7
6
PB7D
PB6D
PB5D
**
*
$: Optional
PBMOD1 register (Address: 0F25DH)
5
4
3
PB4MD1
PB3MD1
*
*
1
PBMOD0 register (Address: 0F25CH)
5
4
3
PB4MD0
PB3MD0
*
*
0
PBCON1 register (Address: 0F25BH)
5
4
3
PB4C1
PB3C1
*
*
1
PBCON0 register (Address: 0F25AH)
5
4
3
PB4C0
PB3C0
*
*
1
PBDIR register (Address: 0F259H)
5
4
3
PB4DIR
PB3DIR
*
*
0
PBD register (Address: 0F258H)
5
4
3
PB4D
PB3D
*
*
**
ML610Q111/ML610Q112 User's Manual
Chapter 12 UART
2
1
PB2MD1
PB1MD1
*
*
2
1
PB2MD0
PB1MD0
*
*
2
1
PB2C1
PB1C1
*
*
2
1
PB2C0
PB1C0
*
*
2
1
PB2DIR
PB1DIR
*
*
2
1
PB2D
PB1D
*
*
0
PB0MD1
*
0
PB0MD0
*
0
PB0C1
*
0
PB0C0
*
0
PB0DIR
*
0
PB0D
*
12-26

Advertisement

Table of Contents
loading

Related Products for Lapis ML610Q111

This manual is also suitable for:

Ml610q112

Table of Contents