Executing Programs From Internal Ram; Reduced Instruction Set Monitor (Rism) - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

Table 16-13. Serial Port Programming Default Values and Locations
Parameter
Mode
09H; mode 1, receiver enabled
Baud rate
8067H; 9600 baud at 16 MHz
Pulse width
80FFH; 2.30ms per pulse at 16 MHz

16.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 16-14 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 16-14. 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.
Table 16-14. User Program Register Values and Test ROM Locations
User Program Register

16.10.4 Reduced Instruction Set Monitor (RISM)

When you enter serial port programming mode, the device begins executing its RISM program.
You communicate with the device by sending RISM commands from any smart terminal across
the TXD and RXD pins at a fixed baud rate.
PROGRAMMING THE NONVOLATILE MEMORY
RISM Default
RISM Default
PC
WSR
PSW
Test ROM Address
(CA, JQ, JR,
JT, JV, KQ, KR)
2213H
2214H
2216–2217H
Test ROM Address
2080H
5EH
1000H
60H
0200H
62H
Test ROM
Address
SFR
(KS, KT)
2215H
SP_CON
2216H
SP_BAUD
221C–221DH
SP_PPW
16-35

Advertisement

Table of Contents
loading

Table of Contents