
vi
17.2 Register configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Function
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
17.3.1 Software Start Mode ........................................................................................................................... 215
17.3.2 Repeat Mode ...................................................................................................................................... 215
Register Setting
................................................................................................................................ 216
17.4 STOP/SLOW Modes during AD Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
17.5 Analog Input Voltage and AD Conversion Result . . . . . . . . . . . . . . . . . . . . . . . 218
17.6 Precautions about AD Converter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
17.6.1 Restrictions for AD Conversion interrupt (INTADC) usage ................................................................. 219
17.6.2 Analog input pin voltage range ........................................................................................................... 219
17.6.3 Analog input shared pins .................................................................................................................... 219
17.6.4 Noise Countermeasure....................................................................................................................... 219
18.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
18.2 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
18.3 Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
19.1 Flash Memory Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
19.1.1 Flash Memory Command Sequence Execution Control (FLSCR<FLSMD>) ..................................... 224
19.1.2 Flash Memory Bank Select Control (FLSCR<BANKSEL>) ................................................................ 224
19.2 Command Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
19.2.1 Byte Program...................................................................................................................................... 225
19.2.2 Sector Erase (4-kbyte Erase) ............................................................................................................. 225
19.2.3 Chip Erase (All Erase) ........................................................................................................................ 226
19.2.4 Product ID Entry ................................................................................................................................. 226
19.2.5 Product ID Exit.................................................................................................................................... 226
19.2.6 Read Protect....................................................................................................................................... 226
19.3 Toggle Bit (D6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
19.4 Access to the Flash Memory Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
19.4.1 Flash Memory Control in the Serial PROM Mode............................................................................... 228
19.4.1.1 How to write to the flash memory by executing the control program in the RAM area (in the RAM loader mode within the
serial PROM mode)
19.4.2 Flash Memory Control in the MCU mode............................................................................................ 230
19.4.2.1 How to write to the flash memory by executing a user write control program in the RAM area (in the MCU mode)
20.1 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
20.2 Memory Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
20.3 Serial PROM Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
20.3.1 Serial PROM Mode Control Pins ........................................................................................................ 234
20.3.2 Pin Function........................................................................................................................................ 234
20.3.3 Example Connection for On-Board Writing......................................................................................... 235
20.3.4 Activating the Serial PROM Mode ...................................................................................................... 236
20.4 Interface Specifications for UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
20.5 Operation Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
20.6 Operation Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
20.6.1 Flash Memory Erasing Mode (Operating command: F0H) ................................................................. 241
20.6.2 Flash Memory Writing Mode (Operation command: 30H) .................................................................. 243
20.6.3 RAM Loader Mode (Operation Command: 60H) ................................................................................ 246