iv
6.7.2
6.7.3
6.7.4
6.7.5
6.7.6
6.7.7
6.7.8
6.7.9
Flash Memory PROM Mode (H8/3644F, H8/3643F, and H8/3642AF)........................... 151
6.8.1
PROM Mode Setting............................................................................................ 151
6.8.2
Socket Adapter and Memory Map ....................................................................... 151
6.8.3
Operation in PROM Mode ................................................................................... 154
Flash Memory Programming and Erasing Precautions..................................................... 163
Program-Verify Mode.......................................................................................... 131
Programming Flowchart and Sample Program.................................................... 132
Erase Mode........................................................................................................... 135
Erase-Verify Mode............................................................................................... 135
Erase Flowcharts and Sample Programs.............................................................. 136
Prewrite-Verify Mode.......................................................................................... 149
Protect Modes....................................................................................................... 149
Interrupt Handling during Flash Memory Programming/Erasing........................ 150
6.8
6.9
Section 7
7.1
RAM
................................................................................................................... 169
Overview............................................................................................................................ 169
7.1.1
Block Diagram...................................................................................................... 169
Section 8
8.1
8.2
I/O Ports
............................................................................................................ 171
Overview............................................................................................................................ 171
Port 1.................................................................................................................................. 173
8.2.1
Overview.............................................................................................................. 173
8.2.2
Register Configuration and Description............................................................... 173
8.2.3
Pin Functions........................................................................................................ 177
8.2.4
Pin States.............................................................................................................. 178
8.2.5
MOS Input Pull-Up.............................................................................................. 178
Port 2.................................................................................................................................. 179
8.3.1
Overview.............................................................................................................. 179
8.3.2
Register Configuration and Description............................................................... 179
8.3.3
Pin Functions........................................................................................................ 181
8.3.4
Pin States.............................................................................................................. 181
Port 3.................................................................................................................................. 182
8.4.1
Overview.............................................................................................................. 182
8.4.2
Register Configuration and Description............................................................... 182
8.4.3
Pin Functions........................................................................................................ 186
8.4.4
Pin States.............................................................................................................. 187
8.4.5
MOS Input Pull-Up.............................................................................................. 187
Port 5.................................................................................................................................. 188
8.5.1
Overview.............................................................................................................. 188
8.5.2
Register Configuration and Description............................................................... 188
8.5.3
Pin Functions........................................................................................................ 190
8.5.4
Pin States.............................................................................................................. 191
8.5.5
MOS Input Pull-Up.............................................................................................. 191
8.3
8.4
8.5