English
Language : 

SH7059 Datasheet, PDF (727/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
23. I/O Ports (I/O)
23.10.2 Port J Data Register (PJDR)
Bit: 15
14
13
12
11
10
9
8
PJ15 PJ14 PJ13 PJ12 PJ11 PJ10 PJ9
PJ8
DR
DR
DR
DR
DR
DR
DR
DR
Initial value: 0
0
0
0
0
0
0
0
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
Bit: 7
6
5
4
3
2
1
0
PJ7
PJ6
PJ5
PJ4
PJ3
PJ2
PJ1
PJ0
DR
DR
DR
DR
DR
DR
DR
DR
Initial value: 0
0
0
0
0
0
0
0
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
The port J data register (PJDR) is a 16-bit readable/writable register that stores port J data. Bits PJ15DR to PJ0DR
correspond to pins PJ15/TI9F to PJ0/TIO2A.
When a pin functions as a general output, if a value is written to PJDR, that value is output directly from the pin, and if
PJDR is read, the register value is returned directly regardless of the pin state.
When a pin functions as a general input, if PJDR is read, the pin state, not the register value, is returned directly. If a value
is written to PJDR, although that value is written into PJDR, it does not affect the pin state. Table 23.18 summarizes port J
data register read/write operations.
PJDR is initialized to H'0000 by a power-on reset (excluding a WDT power-on reset), in hardware standby mode, and in
software standby mode. It is not initialized in sleep mode.
Table 23.18 Port J Data Register (PJDR) Read/Write Operations
Bits 15 to 0:
PJIOR
0
1
Pin Function
Read
General input
Pin state
Other than general input Pin state
General output
PJDR value
Other than general
output
PJDR value
Write
Value is written to PJDR, but does not affect pin state
Value is written to PJDR, but does not affect pin state
Write value is output from pin
Value is written to PJDR, but does not affect pin state
Rev.3.00 Mar. 12, 2008 Page 637 of 948
REJ09B0177-0300