A-5
20. Programmable I/O Ports ................................................................................................. 247
20.1 PDi Register ........................................................................................................................................... 248
20.2 Pi Register, PC14 Register .................................................................................................................... 248
20.3 PURj Register ........................................................................................................................................ 248
20.4 PCR Register .........................................................................................................................................248
21. Flash Memory Version .................................................................................................... 260
21.1 Memory Map ..........................................................................................................................................261
21.1.1 Boot Mode...................................................................................................................................... 262
21.2 Functions to Prevent Flash Memory from Rewriting .............................................................................. 262
21.2.1 ROM Code Protect Function .......................................................................................................... 262
21.2.2 ID Code Check Function ................................................................................................................ 262
21.3 CPU Rewrite Mode ................................................................................................................................ 264
21.3.1 EW0 Mode ..................................................................................................................................... 265
21.3.2 EW1 Mode ..................................................................................................................................... 265
21.3.3 FMR0, FMR1 Registers ................................................................................................................. 266
21.3.4 Precautions on CPU Rewrite Mode ............................................................................................... 271
21.3.5 Software Commands ..................................................................................................................... 273
21.3.6 Data Protect Function .................................................................................................................... 278
21.3.7 Status Register (SRD Register) ..................................................................................................... 278
21.3.8 Full Status Check ........................................................................................................................... 280
21.4 Standard Serial I/O Mode ...................................................................................................................... 282
21.4.1 ID Code Check Function ................................................................................................................ 282
21.4.2 Example of Circuit Application in Standard Serial I/O Mode .......................................................... 286
21.5 Parallel I/O Mode ................................................................................................................................... 287
21.5.1 User ROM and Boot ROM Areas ................................................................................................... 287
21.5.2 ROM Code Protect Function .......................................................................................................... 287
21.6 CAN I/O Mode ........................................................................................................................................ 288
21.6.1 ID Code Check Function ................................................................................................................ 288
21.6.2 Example of Circuit Application in CAN I/O Mode ........................................................................... 291
22. Electrical Characteristics ................................................................................................. 292
22.1 Electrical Characteristics (Normal-ver.) .................................................................................................. 292
22.2 Electrical Characteristics (T/V-ver.) ........................................................................................................ 328
23. Usage Precaution............................................................................................................ 338
23.1 SFR ........................................................................................................................................................ 338
23.1 External Bus ........................................................................................................................................... 339
23.3 External Clock ........................................................................................................................................ 340
23.4 PLL Frequency Synthesizer ................................................................................................................... 341
23.5 Power Control ........................................................................................................................................ 342
23.6 Oscillation Stop, Re-oscillation Detection Function ............................................................................... 344
23.7 Protection ............................................................................................................................................... 345
23.8 Interrupt .................................................................................................................................................. 346
23.8.1 Reading Address 00000h ............................................................................................................... 346
23.8.2 Setting SP ...................................................................................................................................... 346
_______
23.8.3 NMI Interrupt .................................................................................................................................. 346
23.8.4 Changing Interrupt Generate Factor .............................................................................................. 347
_____
23.8.5 INT Interrupt ................................................................................................................................... 347
23.8.6 Rewrite Interrupt Control Register ................................................................................................. 348
23.8.7 Watchdog Timer Interrupt .............................................................................................................. 348