![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_8.png)
Contents-3
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
CHAPTER 6 INTERNAL MEMORY
6.1 Outline of Internal Memory ................................................................................................................. 6-2
6.2 Internal RAM ...................................................................................................................................... 6-2
6.3 Internal RAM Protect Function ........................................................................................................... 6-2
6.4 Internal Flash Memory ........................................................................................................................ 6-11
6.5 Registers Associated with Internal Flash Memory .............................................................................. 6-14
6.5.1 Flash Mode Register .................................................................................................................. 6-15
6.5.2 Flash Status Register ................................................................................................................. 6-16
6.5.3 Flash Control Registers .............................................................................................................. 6-17
6.5.4 Virtual Flash L Bank Registers ................................................................................................... 6-24
6.6 Programming Internal Flash Memory ................................................................................................. 6-25
6.6.1 Outline of Internal Flash Memory Programming ......................................................................... 6-25
6.6.2 Controlling Operation Modes during Flash Programming .......................................................... 6-31
6.6.3 Procedure for Programming/Erasing Internal Flash Memory ..................................................... 6-35
6.6.4 Flash Programming Time (Reference) ....................................................................................... 6-43
6.7 Virtual Flash Emulation Function ........................................................................................................ 6-44
6.7.1 Virtual Flash Emulation Area ...................................................................................................... 6-46
6.7.2 Entering Virtual Flash Emulation Mode ...................................................................................... 6-49
6.8 Connecting to Serial Programmer (CSIO Mode) ................................................................................ 6-50
6.9 Connecting to Serial Programmer (UART Mode) ............................................................................... 6-52
6.10 Internal Flash Memory Protect Function .......................................................................................... 6-54
6.11 Notes on Internal RAM ..................................................................................................................... 6-55
6.12 Notes on Internal Flash Memory ...................................................................................................... 6-55
CHAPTER 7 RESET
7.1 Outline of Reset ................................................................................................................................. 7-2
7.2 Reset Operation ................................................................................................................................. 7-2
7.2.1 Reset at Power-on ..................................................................................................................... 7-3
7.2.2 Reset during Operation .............................................................................................................. 7-3
7.2.3 Reset Vector Relocation during Flash Programming ................................................................. 7-3
7.3 Internal State upon Exiting Reset ....................................................................................................... 7-4
7.4 Things to Be Considered upon Exiting Reset ..................................................................................... 7-4
CHAPTER 8 INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8.1 Outline of Input/Output Ports .............................................................................................................. 8-2
8.2 Selecting Pin Functions ...................................................................................................................... 8-3
8.3 Input/Output Port Related Registers .................................................................................................. 8-9
8.3.1 Port Data Registers .................................................................................................................... 8-12
8.3.2 Port Direction Registers ............................................................................................................. 8-13
8.3.3 Port Operation Mode and Port Peripheral Function Select Registers ........................................ 8-14
8.3.4 Port Input Special Function Control Register ............................................................................. 8-29
8.4 Port Input Level Switching Function ................................................................................................... 8-32
8.5 Port Output Drive Capability Setting Function .................................................................................... 8-34
8.6 Noise Canceller Control Function ....................................................................................................... 8-37
8.7 Port Peripheral Circuits ...................................................................................................................... 8-39
8.8 Notes on Input/Output Ports ............................................................................................................... 8-44