English
Language : 

SH7032 Datasheet, PDF (476/687 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 16 I/O Ports (I/O)
16.3.2 Port B Data Register (PBDR)
PBDR is a 16-bit read/write register that stores data for port B. Bits PB15DR–PB0DR correspond
to the PB15/TP15/IRQ7–PB0/TP0/TIOCA2 pins. When the pins are used as ordinary outputs, they
will output whatever value is written in PBDR; when PBDR is read, the register value will be
output regardless of the pin status. When the pins are used as ordinary inputs, the pin status rather
than the register value is read directly when PBDR is read. When a value is written to PBDR, that
value can be written into PBDR, but it will not affect the pin status. When the pin function is set to
timing pattern output and the TPC output is enabled by the TPC next data enable register (NDER),
no value can be written to PBDR. Table 16.4 shows port B data register read/write operations.
PBDR is initialized by a power-on reset. However, PBDR is not initialized by a manual reset, or in
standby mode or sleep mode.
Bit
Initial value
Read/Write
15
14
13
12
11
10
9
PB15DR PB14DR PB13DR PB12DR PB11DR PB10DR PB9DR
0
0
0
0
0
0
0
R/W R/W R/W R/W R/W R/W R/W
8
PB8DR
0
R/W
Bit
Initial value
Read/Write
7
PB7DR
0
R/W
6
PB6DR
0
R/W
5
PB5DR
0
R/W
4
PB4DR
0
R/W
3
PB3DR
0
R/W
2
PB2DR
0
R/W
1
PB1DR
0
R/W
0
PB0DR
0
R/W
Table 16.4 Port B Data Register (PBDR) Read/Write Operations
PBIOR
0
Pin Status
Input
Read
Pin status
TPn
Other function
Pin status
Pin status
1
Output
PBDR value
TPn
PBDR value
Other function PBDR value
TPn: Timing pattern output
Write
Can write to PBDR, but it has no effect on pin
status
Disabled
Can write to PBDR, but it has no effect on pin
status
Value written is output by pin
Disabled
Can write to PBDR, but it has no effect on pin
status
Rev. 7.00 Jan 31, 2006 page 450 of 658
REJ09B0272-0700