![](http://datasheet.mmic.net.cn/30000/M32182F3VFP_datasheet_2359471/M32182F3VFP_7.png)
(3)
6.4 Registers Associated with the Internal Flash Memory ----------------------------------------------------------- 6-5
6.4.1
Flash Mode Register ------------------------------------------------------------------------------------------ 6-5
6.4.2
Flash Status Registers ---------------------------------------------------------------------------------------- 6-6
6.4.3
Flash Status Register 2 (FSTAT2) ------------------------------------------------------------------------- 6-6
6.4.4
Flash Control Registers --------------------------------------------------------------------------------------- 6-8
6.4.5
Virtual Flash S Bank Registers ----------------------------------------------------------------------------- 6-12
6.5 Programming the Internal Flash Memory ---------------------------------------------------------------------------- 6-13
6.5.1
Outline of Internal Flash Memory Programming -------------------------------------------------------- 6-13
6.5.2
Controlling Operation Modes during Flash Programming -------------------------------------------- 6-18
6.5.3
Procedure for Programming/Erasing the Internal Flash Memory ---------------------------------- 6-21
6.5.4
Flash Programming Time (Reference) -------------------------------------------------------------------- 6-30
6.6 Virtual Flash Emulation Function -------------------------------------------------------------------------------------- 6-31
6.6.1
Virtual Flash Emulation Area -------------------------------------------------------------------------------- 6-32
6.6.2
Entering Virtual Flash Emulation Mode ------------------------------------------------------------------- 6-35
6.6.3
Application Example of Virtual Flash Emulation Mode ------------------------------------------------ 6-36
6.7 Connecting to A Serial Programmer ---------------------------------------------------------------------------------- 6-38
6.8 Internal Flash Memory Protect Function ----------------------------------------------------------------------------- 6-40
6.9 Precautions To Be Taken when Rewriting the Internal Flash Memory -------------------------------------- 6-41
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 at Entering RAM Backup Mode -------------------------------------------------------------------- 7-3
7.2.4
Reset Vector Relocation during Flash Programming -------------------------------------------------- 7-3
7.3 Internal State Immediately after Reset ------------------------------------------------------------------------------- 7-4
7.4 Things to Be Considered after 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-5
8.3.1
Port Data Registers -------------------------------------------------------------------------------------------- 8-7
8.3.2
Port Direction Registers -------------------------------------------------------------------------------------- 8-8
8.3.3
Port Operation Mode Registers ----------------------------------------------------------------------------- 8-9
8.3.4
Port Peripheral Output Select Registers ------------------------------------------------------------------ 8-20
8.3.5
Port Input Special Function Control Register ------------------------------------------------------------ 8-21
8.4 Port Input Level Switching Function ---------------------------------------------------------------------------------- 8-24
8.5 Port Peripheral Circuits -------------------------------------------------------------------------------------------------- 8-27
8.6 Precautions on Input/Output Ports ------------------------------------------------------------------------------------ 8-31