NJU3504
• PORTF(PF0 − PF2)
PORTF is a 3-bit input-output PORT. The input or the output is selected for each bit by the mask option.
When the port is set as the output, the signal is output through the output terminal by writing data to the
PORTF register(PHY22). When the port is set as the input, the external signal is gotten directly through
the input terminal by reading data from PHY22.
[READING PORTF INPUT DATA (PHY22)]
(MSB) 3
PHY22
“0”
2
1
0 (LSB)
PF2 PF1 PF0
PORTF Input Data
[WRITING PORTF OUTPUT DATA (PHY22)]
(MSB) 3
PHY22
−
2
1
0 (LSB)
PF2 PF1 PF0
PORTF Output Data
• PORTG(PG0, PG1)
PORTG is a 2-bit input-output PORT. The input or output is selected for each bit by the mask option.
When the port is set as the output, the signal is output through the output terminal by writing data to the
PORTG register(PHY23). When the port is set as the input, the external signal is gotten directly through
the input terminal by reading data from PHY23.
[READING PORTG INPUT DATA (PHY23)]
(MSB) 3
2
1
0
PHY23
“0”
“0” PG1 PG0
(LSB)
PORTG Input Data
[WRITING PORTG OUTPUT DATA (PHY23)]
(MSB) 3
PHY23
−
2
1
0 (LSB)
−
PG1 PG0
Note)
PORTG Output Data
PORTG is not prepared on the NJU3504L(SDIP package).
- 18 -