Datasheet

RL78/L12 CHAPTER 14 LCD CONTROLLER/DRIVER
R01UH0330EJ0200 Rev.2.00 622
Dec 13, 2013
(a) Operation of ports that alternately function as SEGxx pins
The functions of ports that also serve as segment output pins (SEGxx) can be selected by using the port mode
control register (PMCxx), port mode register (PMxx), and LCD port function registers 0 to 4 (PFSEG0 to
PFSEG4).
P10 to P12, P15 to P17, P30 to P32, P42, P43, P50 to P54, P60, P61, P70 to P74, P140, P141
(ports that do not serve as analog input pins (ANIxx))
Table 14-8. Settings of SEGxx/Port Pin Function
PFSEGxx Bit of
PFSEG0 to PFSEG4 Registers
PMxx Bit of
PMxx Register
Pin Function Initial Status
1 1 Digital input ineffective mode
0 0 Digital output mode
0 1 Digital input mode
1 0 Segment output mode
The following shows the SEGxx/port pin function status transitions.
Figure 14-12. SEGxx/Port Pin Function Status Transitions
Reset status
Reset release
PFSEGxx = 0
PMmn = 0
PMmn = 0
PMmn = 1
Digital input
ineffective mode
Digital input
mode
Digital output
mode
Segment
output mode
Caution Be sure to set the segment output mode before segment output starts (while SCOC bit of
LCD mode register 1 (LCDM1) is 0).