Example 4 - Setting The Pc And Executing The Program - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
Send
Comments (Example 3)
27
Data. High byte of hex file for location 0405H.
FE
Data. Low byte of hex file for location 0404H.
08
WRITE_WORD. Low word of DATA to memory
location 0404 (contents of ADDR). Increment
ADDR by two.
16.10.6.4
Example 4 — Setting the PC and Executing the Program
This example sets the PC and begins executing the program loaded in example 3. The PC (at lo-
cation 5EH) must be set at 400H to tell the RISM where to begin execution of the program. The
WSR and PSW are automatically set to their default values (1000H and 200H, respectively), but
can be changed in this same manner. No OTPROM locations are changed, so V
+12.5 volts or +5 volts.
.
Send
Comments (Example 4)
00
SET_DLE_FLAG. Next data byte is < 1FH.
00
Data. High byte of PC address 005EH.
5E
Data. Low byte of PC address 005EH.
0A
DATA_TO_ADDR. Move address to ADDR.
00
SET_DLE_FLAG. Next data byte is < 1FH.
04
Data. High byte of program address 0400H.
00
SET_DLE_FLAG. Next data byte is < 1FH.
00
Data. Low byte of program address 0400H.
16-42
DATA
22
11
80
27
11
80
27
FE
11
80
27
FE
Memory Addresses
0405
0404
27
FE
PP
DATA
00
00
5E
00
5E
00
5E
00
5E
04
00
5E
04
00
5E
04
00
ADDR
04
04
04
04
04
04
04
06
can be either
ADDR
00
5E
00
5E
00
5E
00
5E
00
5E

Advertisement

Table of Contents
loading

Table of Contents