
653
19.3.2
Port B Data Register (PBDR)
PBDR is a 16-bit read/write register that stores data for port B. The bits PB9DR–PB0DR
correspond to the PB9/
IRQ7
/A21/
ADTRG
–PB0/A16 pins. When the pins are used as ordinary
outputs, they will output whatever value is written in the PBDR; when PBDR is read, the register
value will be read 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. Table 19.7 shows
the read/write operations of the port B data register.
PBDR is initialized by an external power-on reset. However, PBDR is not initialized for a manual
reset, reset by WDT, standby mode, or sleep mode.
Bit:
15
14
13
12
11
10
9
8
—
—
—
—
—
—
PB9DR
PB8DR
Initial value:
0
0
0
0
0
0
0
0
R/W:
R
R
R
R
R
R
R/W
R/W
Bit:
7
6
5
4
3
2
1
0
PB7DR
PB6DR
PB5DR
PB4DR
PB3DR
PB2DR
PB1DR
PB0DR
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
Table 19.7
Read/Write Operation of the Port B Data Register (PBDR)
PBIOR
Pin Status
Read
Write
0
Ordinary input
Pin status
Can write to PBDR, but it has no effect on pin status
Other function
Pin status
Can write to PBDR, but it has no effect on pin status
1
Ordinary output
PBDR value
Value written is output by pin
Other function
PBDR value
Can write to PBDR, but it has no effect on pin status
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...