
v
16.2 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
16.3 Serial clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
16.3.1 Clock source ....................................................................................................................................... 161
16.3.2 Shift edge............................................................................................................................................ 163
16.4 Number of bits to transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
16.5 Number of words to transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
16.6 Transfer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
16.6.1 4-bit and 8-bit transfer modes............................................................................................................. 164
16.6.2 4-bit and 8-bit receive modes ............................................................................................................. 166
16.6.3 8-bit transfer / receive mode ............................................................................................................... 167
17. 10-bit AD Converter (ADC)
17.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
17.2 Register configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Function
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
17.3.1 Software Start Mode ........................................................................................................................... 175
17.3.2 Repeat Mode ...................................................................................................................................... 175
Register Setting
................................................................................................................................ 176
17.4 STOP/SLOW Modes during AD Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
17.5 Analog Input Voltage and AD Conversion Result . . . . . . . . . . . . . . . . . . . . . . . 178
17.6 Precautions about AD Converter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
17.6.1 Analog input pin voltage range ........................................................................................................... 179
17.6.2 Analog input shared pins .................................................................................................................... 179
17.6.3 Noise Countermeasure....................................................................................................................... 179
18.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
18.2 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
18.3 Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
19.1 Flash Memory Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
19.1.1 Flash Memory Command Sequence Execution Control (FLSCR<FLSMD>) ..................................... 184
19.1.2 Flash Memory Bank Select Control (FLSCR<BANKSEL>) ................................................................ 184
19.2 Command Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
19.2.1 Byte Program...................................................................................................................................... 185
19.2.2 Sector Erase (4-kbyte Erase) ............................................................................................................. 185
19.2.3 Chip Erase (All Erase) ........................................................................................................................ 186
19.2.4 Product ID Entry ................................................................................................................................. 186
19.2.5 Product ID Exit.................................................................................................................................... 186
19.2.6 Read Protect....................................................................................................................................... 186
19.3 Toggle Bit (D6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
19.4 Access to the Flash Memory Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
19.4.1 Flash Memory Control in the Serial PROM Mode............................................................................... 188
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............................................................................................ 190
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)