NJU3504
• PORTD(PD0 − PD3)
PORTD is a 4-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 PORTD register(PHY20). When the port is set as the input, the external signal is gotten directly
through the input terminal by reading data from PHY20.
[READING PORTD INPUT DATA (PHY20)]
(MSB) 3
2
1
0 (LSB)
PHY20 PD3 PD2 PD1 PD0
PORTD Input Data
[WRITING PORTD OUTPUT DATA (PHY20)]
(MSB) 3
2
1
0 (LSB)
PHY20 PD3 PD2 PD1 PD0
PORTD Output Data
• PORTE(PE0 − PE3)
PORTE is a 4-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
PORTE register(PHY21). When the port is set as the input, the external signal is gotten directly through
the input terminal by reading data from PHY21.
[READING PORTE INPUT DATA (PHY21)]
(MSB) 3
2
1
0 (LSB)
PHY21 PE3 PE2 PE1 PE0
PORTE Input Data
[WRITING PORTE OUTPUT DATA (PHY21)]
(MSB) 3
2
1
0 (LSB)
PHY21 PE3 PE2 PE1 PE0
PORTE Output Data
- 17 -