RL78/G1P
CHAPTER 4 PORT FUNCTIONS
R01UH0895EJ0100 Rev.1.00
72
Nov 29, 2019
For example, figures 4-5 and 4-6 show block diagrams of port 2 for 32-pin products.
Figure 4-5. Block Diagram of P20, P21, P24 to P27
P20/ANI0/AV
REFP
,
P21/ANI1/AV
REFM
,
P24/ANI4 to P27/ANI7
RD
WR
PORT
WR
PM
Output latch
(P20, P21, P24 to P27)
PM20, PM21,
PM24 to PM27
PM2
A/D converter
P2
WR
ADPC
ADPC0, ADPC1,
ADPC4 to ADPC7
ADPC
0: Analog input
1: Digital I/O
Internal bus
Selector
ADPC: A/D port configuration register
P2:
Port register 2
PM2:
Port mode register 2
RD: Read
signal
WR
: Write
signal
Figure 4-6. Block Diagram of P22 and P23
RD
WR
PORT
WR
PM
PM2
A/D converter
P2
WR
ADPC
ADPC2, ADPC3
ADPC
0: Analog input
1: Digital I/O
Output latch
(P22, P23)
PM22, PM23
D/A converter
P22/ANI2/ANO0,
P23/ANI3/ANO1
Internal bus
Selector
P2:
Port register 2
PM2:
Port mode register 2
RD: Read
signal
WR
: Write
signal
Summary of Contents for RL78/G1P
Page 770: ...RL78 G1P R01UH0895EJ0100 ...