172
CHAPTER 10 I/O PORTS
10.2.1
Port Data Register
Note that Read/Write for I/O ports differ from Read/Write for memory in the following
points:
• Input mode
Read: The level at the corresponding pin is read.
Write: Data is written to an output latch.
• Output mode
Read: The data register latch value is read.
Write: Data is written to an output latch and output to the corresponding pin.
■
Port Data Register
Figure 10.2-2 shows the port data registers.
Figure 10.2-2 Port Data Registers
PDR0
7
bit
6
5
4
3
2
1
0
15
14
13
12
11
10
9
8
15
14
13
12
11
10
9
8
15
14
13
12
11
10
9
8
15
14
13
12
11
10
9
8
15
14
13
12
11
10
9
8
15
14
13
12
11
10
9
8
Initial value
Access
Address: 000000
H
P07
P06
P05
P04
P03
P02
P01
P00
XXXXXXXX
B
R/W
PDR1
Address: 000001
H
P17
P16
P15
P14
P13
P12
P11
P10
XXXXXXXX
B
R/W
PDR2
7
6
5
4
3
2
1
0
Address: 000002
H
P27
P26
P25
P24
P23
P22
P21
P20
XXXXXXXX
B
R/W
PDR3
Address: 000003
H
P37
P36
P35
P34
P33
P32
P31
P30
XXXXXXXX
B
R/W
PDR4
7
6
5
4
3
2
1
0
Address: 000004
H
P47
P46
P45
P44
P43
P42
P41
P40
XXXXXXXX
B
R/W
PDR5
Address: 000005
H
P57
P56
P55
P54
P53
P52
P51
P50
XXXXXXXX
B
R/W
PDR6
7
6
5
4
3
2
1
0
Address: 000006
H
P67
P66
P65
P64
P65
P62
P61
P60
XXXXXXXX
B
R/W
PDR7
Address: 000007
H
P77
P76
P75
P74
P73
P72
P71
P70
XXXXXXXX
B
R/W
PDR8
7
6
5
4
3
2
1
0
Address: 000008
H
P87
P86
P85
P84
P83
P82
P81
P80
XXXXXXXX
B
R/W
PDR9
Address: 000009
H
P97
P96
P95
P94
P93
P92
P91
P90
XXXXXXXX
B
R/W
PDRA
7
6
5
4
3
2
1
0
Address: 00000A
H
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
XXXXXXXX
B
R/W
PDRB
Address: 00000B
H
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
XXXXXXXX
B
R/W
Содержание MB90390 Series
Страница 2: ......
Страница 4: ......
Страница 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Страница 18: ...xiv ...
Страница 132: ...104 CHAPTER 5 CLOCKS ...
Страница 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Страница 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Страница 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Страница 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Страница 274: ...246 CHAPTER 15 WATCH TIMER ...
Страница 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Страница 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Страница 364: ...336 CHAPTER 19 UART0 UART1 ...
Страница 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Страница 432: ...404 CHAPTER 20 UART2 UART3 ...
Страница 482: ...454 CHAPTER 22 SERIAL I O ...
Страница 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Страница 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Страница 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Страница 722: ...694 APPENDIX ...
Страница 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 740: ......