![Intel 8XC196NT Скачать руководство пользователя страница 397](http://html1.mh-extra.com/html/intel/8xc196nt/8xc196nt_user-manual_2072210397.webp)
8XC196NT USER’S MANUAL
15-34
15.10.3 Executing Programs from Internal RAM
For those wanting to execute user programs from internal RAM while in serial port programming
mode, the RISM allows you to initialize the user program counter (PC), window selection register
(WSR), and processor status word (PSW). Table 15-13 lists the registers, the default assumed by
the RISM, and the test ROM address to which you may write new values.
Before attempting to execute a program from internal RAM or OTPROM, write the beginning
address of the program to the PC at the test ROM address shown in Table 15-13. You need not
change the WSR and PSW unless other flags need to be set for the program you are executing.
After writing the PC value, issue the GO command, which automatically initializes the PC and
begins code execution. When the RISM interrupts or halts the program, it writes the user PC,
WSR (which includes INT_MASK1), and PSW (which includes INT_MASK) to the test ROM
locations.
Internal RAM locations 4EH–63H are used as registers for serial port programming mode. Pro-
grams executing from internal RAM should not alter these locations.
15.10.4 Reduced Instruction Set Monitor (RISM)
When you enter serial port programming mode, the device begins executing its RISM program.
The RISM is executed in 16-bit mode, so addresses are limited to 64 Kbytes and the PC is limited
to 16 bits. You communicate with the device by sending RISM commands from any smart termi-
nal across the TXD and RXD pins at a fixed baud rate.
Upon entering serial port programming mode, the device enters a waiting loop, called
Monitor_Pause, in which it waits for RISM commands to arrive across the serial port. The com-
mands are each one byte in length and have values between 00H and 1FH. A value between 00H
and 1FH is considered a command unless it follows a data latch enable (SET_DLE_FLAG) com-
mand. The SET_DLE_FLAG command sets the DLE flag in the MODE register (57H). The DLE
flag alerts the RISM to store the next byte in the DATA register, a 32-bit first-in-last-out (FILO)
register located at 58H.
Table 15-13. User Program Register Values and Test ROM Locations
User Program Register
RISM Default
Test ROM Address
PC 2080H
5EH
WSR
1000H
60H
PSW
0200H
62H
Содержание 8XC196NT
Страница 1: ...8XC196NT Microcontroller User s Manual...
Страница 2: ...8XC196NT Microcontroller User s Manual June 1995 Order Number 272317 003...
Страница 22: ...1 Guide to This Manual...
Страница 23: ......
Страница 35: ......
Страница 36: ...2 Architectural Overview...
Страница 37: ......
Страница 49: ......
Страница 50: ...3 Programming Considerations...
Страница 51: ......
Страница 66: ...4 Memory Partitions...
Страница 67: ......
Страница 104: ...5 Standard and PTS Interrupts...
Страница 105: ......
Страница 147: ......
Страница 148: ...6 I O Ports...
Страница 149: ......
Страница 176: ...7 Serial I O SIO Port...
Страница 177: ......
Страница 194: ...8 Synchronous Serial I O SSIO Port...
Страница 195: ......
Страница 211: ......
Страница 212: ...9 Slave Port...
Страница 213: ......
Страница 231: ......
Страница 232: ...10 Event Processor Array EPA...
Страница 233: ......
Страница 270: ...11 Analog to digital Converter...
Страница 271: ......
Страница 291: ......
Страница 292: ...12 Minimum Hardware Considerations...
Страница 293: ......
Страница 306: ...13 Special Operating Modes...
Страница 307: ......
Страница 317: ......
Страница 318: ...14 Interfacing with External Memory...
Страница 319: ......
Страница 362: ...15 Programming the Nonvolatile Memory...
Страница 363: ......
Страница 408: ...A Instruction Set Reference...
Страница 409: ......
Страница 476: ...B Signal Descriptions...
Страница 477: ......
Страница 493: ......
Страница 494: ...C Registers...
Страница 495: ......
Страница 565: ......
Страница 566: ...Glossary...
Страница 567: ......
Страница 580: ...Index...
Страница 581: ......
Страница 597: ......