
User’s Manual U15862EJ3V0UD
12
CHAPTER 4 PORT FUNCTIONS..........................................................................................................137
4.1
Features .................................................................................................................................... 137
4.1.1
V850ES/KF1................................................................................................................................ 137
4.1.2
V850ES/KG1 ............................................................................................................................... 137
4.1.3
V850ES/KJ1 ................................................................................................................................ 137
4.2
Basic Port Configuration......................................................................................................... 138
4.2.1
V850ES/KF1................................................................................................................................ 138
4.2.2
V850ES/KG1 ............................................................................................................................... 139
4.2.3
V850ES/KJ1 ................................................................................................................................ 140
4.3
Port Configuration.................................................................................................................... 141
4.3.1
Port 0........................................................................................................................................... 142
4.3.2
Port 1........................................................................................................................................... 149
4.3.3
Port 3........................................................................................................................................... 153
4.3.4
Port 4........................................................................................................................................... 165
4.3.5
Port 5........................................................................................................................................... 172
4.3.6
Port 6........................................................................................................................................... 182
4.3.7
Port 7........................................................................................................................................... 194
4.3.8
Port 8........................................................................................................................................... 198
4.3.9
Port 9........................................................................................................................................... 204
4.3.10
Port CD........................................................................................................................................ 223
4.3.11
Port CM........................................................................................................................................ 227
4.3.12
Port CS........................................................................................................................................ 234
4.3.13
Port CT ........................................................................................................................................ 240
4.3.14
Port DH........................................................................................................................................ 246
4.3.15
Port DL ........................................................................................................................................ 251
4.4
Port Function Operation.......................................................................................................... 262
4.4.1
Write operation to I/O port ........................................................................................................... 262
4.4.2
Read operation from I/O port....................................................................................................... 262
4.4.3
Arithmetic operation with I/O ports............................................................................................... 262
CHAPTER 5 BUS CONTROL FUNCTION...........................................................................................263
5.1
Features .................................................................................................................................... 263
5.2
Bus Control Pins...................................................................................................................... 263
5.2.1
Pin status when internal ROM, internal RAM, or on-chip peripheral I/O is accessed................... 265
5.2.2
Pin status in each operation mode............................................................................................... 265
5.3
Memory Block Function .......................................................................................................... 266
5.3.1
Chip select control function.......................................................................................................... 269
5.4
External Bus Interface Mode Control Function..................................................................... 269
5.5
Bus Access............................................................................................................................... 270
5.5.1
Number of clocks for access........................................................................................................ 270
5.5.2
Bus size setting function.............................................................................................................. 270
5.5.3
Access by bus size...................................................................................................................... 271
5.6
Wait Function............................................................................................................................ 277
5.6.1
Programmable wait function ........................................................................................................ 277
5.6.2
External wait function................................................................................................................... 278
5.6.3
Relationship between programmable wait and external wait....................................................... 279
5.6.4
Programmable address wait function........................................................................................... 280
5.7
Idle State Insertion Function................................................................................................... 281