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