English
Language : 

TMP89FH42 Datasheet, PDF (12/408 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
21.3.4 Product ID entry .................................................................................................................................. 313
21.3.5 Product ID exit .................................................................................................................................... 314
21.3.6 Security program ................................................................................................................................ 314
21.4 Toggle Bit (D6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21.5 Access to the Flash Memory Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21.5.1 Flash memory control in serial PROM mode ...................................................................................... 315
21.5.1.1 How to transfer and write a control program to the RAM area in RAM loader mode of the serial PROM mode
21.5.2 Flash memory control in MCU mode .................................................................................................. 318
21.5.2.1 How to write to the flash memory by transferring a control program to the RAM area
21.5.2.2 How to write to the flash memory by using a support program (API) of BOOTROM
21.6 Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
314
315
323
22. Serial PROM Mode
22.1 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.2 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.3 Serial PROM Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.3.1 Serial PROM mode control pins ......................................................................................................... 326
22.4 Example Connection for On-board Writing . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.5 Activating the Serial PROM Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.6 Interface Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.6.1 SIO communication ............................................................................................................................ 330
22.6.2 UART communication ......................................................................................................................... 330
22.7 Memory Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.8 Operation Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.8.1 Flash memory erase command (0xF0) ............................................................................................... 335
22.8.1.1 Specifying the erase area
22.8.2 Flash memory write command (operation command: 0x30)............................................................... 338
22.8.3 Flash memory read command (operation command: 0x40) ............................................................... 340
22.8.4 RAM loader command (operation command: 0x60) ........................................................................... 342
22.8.5 Flash memory SUM output command (operation command: 0x90) ................................................... 344
22.8.6 Product ID code output command (operation command: 0xC0)......................................................... 345
22.8.7 Flash memory status output command (0xC3) ................................................................................... 347
22.8.7.1 Flash memory status code
22.8.8 Mask ROM emulation setting command (0xD0) ................................................................................. 350
22.8.9 Flash memory security setting command (0xFA)................................................................................ 351
22.9 Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.10 Checksum (SUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.10.1 Calculation method ........................................................................................................................... 353
22.10.2 Calculation data ................................................................................................................................ 353
22.11 Intel Hex Format (Binary) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.12 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.12.1 Passwords ........................................................................................................................................ 355
22.12.1.1 How a password can be specified
22.12.1.2 Password structure
22.12.1.3 Password setting, cancellation and authentication
22.12.1.4 Password values and setting range
22.12.2 Security program .............................................................................................................................. 359
22.12.2.1 How the security program functions
22.12.2.2 Enabling or disabling the security program
22.12.3 Option codes..................................................................................................................................... 360
22.12.4 Recommended settings .................................................................................................................... 362
22.13 Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.14 AC Characteristics (UART) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.14.1 Reset timing ...................................................................................................................................... 365
22.14.2 Flash memory erase command (0xF0) ............................................................................................. 365
22.14.3 Flash memory write command (0x30)............................................................................................... 366
22.14.4 Flash memory read command (0x40) ............................................................................................... 366
22.14.5 RAM loader command (0x60) ........................................................................................................... 367
22.14.6 Flash memory SUM output command (0x90) ................................................................................... 367
325
325
326
328
329
330
332
332
352
353
354
355
363
364
viii