Datasheet

Section 9 I/O Ports
Rev. 1.50 Sep. 18, 2007 Page 175 of 584
REJ09B0240-0150
9.11.3 Port Mode Register G (PMRG)
PMRG switches functions of pins in port G.
Bit Bit Name
Initial
Value R/W Description
7 PMRG7 0 R/W This bit selects the function of pin PG7/AN15/TRDOI_1.
0: General I/O port
1: AN15/TRDOI_1 input pin
6 PMRG6 0 R/W This bit selects the function of pin PG6/AN14/TRDOI_0.
0: General I/O port
1: AN14/TRDOI_0 input pin
5 PMRG5 0 R/W This bit selects the function of pin PG5/AN13/TRCOI.
0: General I/O port
1: AN14/TRCOI input pin
4 1 Reserved
This bit is always read as 1.
3
2
PMRG3
PMRG2
0
0
R/W
R/W
These bits select the trigger source of the A/D converter.
00: A/D converter is activated by the ADTRG signal
01: A/D converter is activated by timer RD_0
10: A/D converter is activated by timer RD_1
11: Reserved
1 PMRG1 0 R/W Selects the edge of the ADTRG signal.
0: Falling edge
1: Rising edge
0 PMRG0 0 R/W This bit selects the function of pin PH0/SCK3_3/ADTRG.
0: General I/O port
1: ADTRG input pin