![TENX TECHNOLOGY TM57PE10 Скачать руководство пользователя страница 16](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886016.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
16
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
2.3 PROM Re-use ROM
The PROM of this device is 1K words. For some F/W program, the program size could be less than 512
words. To fully utilize the PROM, the device allows users to reuse the PROM. This feature is named as
Two Time Programmable (TTP) ROM. While the first half of PROM is occupied by a useless program
code and the second half of the PROM remains blank, users can re-write the PROM with the updated
program code into the second half of the PROM. In the Re-use mode, the Reset Vector and Interrupt
Vector are re-allocated at the beginning of the PROM’s second half by the Assembly Compiler. Users
simply choose the “REUSE” option in the ICE tool interface, and then the Compiler will move the object
code to proper location. That is, the user’s program still has reset vector at address 000h, but the
compiled object code has reset vector at 200h. In the SYSCFG, if nPROTECT=0 and nREUSE=1, the
Code protection area is first half of PROM. This allows the Writer tool to write then verify the Code
during the Re-use Code programming. After the Re-use Code being written into the PROM’s second
half, user should write “nREUSE” control bit to “0”. In the mean while, the Code protection area
becomes the whole PROM except the Reserved Area.
PROM, nREUSE=1
PROM, nREUSE=0
000
Reset Vector
000
001
Interrupt Vector
001
Code
Useless
Protect
Code
Area
User
Code
1FF
Code
1FF
Protect
200
200
Reset Vector
Area
201
201
Interrupt Vector
User
Code
3FC
SYSCFG
3FC
SYSCFG
3FD
Manufacturer
3FD
Manufacturer
3FE
Reserved
3FE
Reserved
3FF
Area
3FF
Area
2.4 Power-Down Mode
The Power-down mode is activated by SLEEP instruction. During the Power-down mode, the system
clock and peripherals stop to minimize power consumption, while the WDT/WKT Timer is working or not
depends on F/W setting. The Power down mode can be terminated by Reset, or enabled Interrupts
(External pins and WKT interrupt) or PA1-6 and PB1-6 pins low level wake up.