viii
21.3.4
Product ID entry
.................................................................................................................................. 314
21.3.5
Product ID exit
.................................................................................................................................... 314
21.3.6
Security program
................................................................................................................................ 314
21.4
Toggle Bit (D6)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
21.5
Access to the Flash Memory Area
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
22.
Serial PROM Mode
22.1
Outline
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
22.2
Security
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
22.3
Serial PROM Mode Setting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
22.3.1
Serial PROM mode control pins
......................................................................................................... 326
22.4
Example Connection for On-board Writing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
22.5
Activating the Serial PROM Mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
22.6
Interface Specifications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
22.6.1
SIO communication
............................................................................................................................ 330
22.6.2
UART communication
......................................................................................................................... 330
22.7
Memory Mapping
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
22.8
Operation Commands
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
22.10
Checksum (SUM)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
22.10.1
Calculation method
........................................................................................................................... 353
22.10.2
Calculation data
................................................................................................................................ 353
22.11
Intel Hex Format (Binary)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
22.12
Security
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
22.14
AC Characteristics (UART)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
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
Содержание TLCS-870/C1 Series
Страница 1: ...8 Bit Microcontroller TLCS 870 C1 Series TMP89FM42 查询TMP89FM42供应商 捷多邦 专业PCB打样工厂 24小时加急出货 ...
Страница 3: ...Revision History Date Revision 2007 10 25 1 First Release 2007 11 3 2 Contents Revised ...
Страница 4: ......
Страница 14: ......
Страница 18: ...1 3 Block Diagram TMP89FM42 1 3 Block Diagram Figure 1 2 Block Diagram ...
Страница 22: ...1 4 Pin Names and Functions TMP89FM42 ...
Страница 60: ...2 CPU Core 2 5 Revision History TMP89FM42 ...
Страница 76: ...3 Interrupt Control Circuit 3 8 Revision History TMP89FM42 ...
Страница 86: ...4 External Interrupt control circuit 4 3 Function TMP89FM42 ...
Страница 102: ...7 Voltage Detection Circuit 7 5 Revision History TMP89FM42 ...
Страница 126: ...8 I O Ports 8 3 I O Port Registers TMP89FM42 Note 2 i 0 to 1 ...
Страница 136: ...8 I O Ports 8 5 Revision History TMP89FM42 ...
Страница 142: ...9 Special Function Registers 9 3 SFR3 0x0E40 to 0x0EFF TMP89FM42 ...
Страница 146: ...10 Low Power Consumption Function for Peripherals TMP89FM42 ...
Страница 149: ...TMP89FM42 11 3 Revision History Rev Description RA001 Deleted SLEEP2 description ...
Страница 150: ...11 Divider Output DVO 11 3 Revision History TMP89FM42 ...
Страница 220: ...15 Real Time Clock RTC 15 4 Real Time Clock Operation TMP89FM42 ...
Страница 250: ...16 Asynchronous Serial Interface UART 16 15 Revision History TMP89FM42 ...
Страница 302: ...18 Serial Bus Interface SBI 18 7 Revision History TMP89FM42 ...
Страница 336: ...21 Flash Memory 21 4 Toggle Bit D6 TMP89FM42 Note 1 Make sure that you set the C register to 0x00 LD FLSCR2 0xD5 ...
Страница 338: ...21 Flash Memory 21 4 Toggle Bit D6 TMP89FM42 ...
Страница 384: ...22 Serial PROM Mode 22 15 Revision History TMP89FM42 ...
Страница 388: ...24 Input Output Circuit 24 1 Control Pins TMP89FM42 ...
Страница 404: ...25 Electrical Characteristics 25 11 Revision History TMP89FM42 ...
Страница 406: ...26 Package Dimensions TMP89FM42 ...
Страница 408: ......