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

Table of Contents

Advertisement

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.
15.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.
PROGRAMMING THE NONVOLATILE MEMORY
DATA
22
11
11
80
11
80
Memory Addresses
0405
27
DATA
00
00
00
5E
ADDR
80
27
04
04
27
FE
04
04
27
FE
04
0404
FE
04
06
can be either
PP
ADDR
00
00
5E
00
5E
00
5E
00
5E
00
5E
5E
04
00
5E
5E
04
00
5E
04
00
00
5E
15-41
04

Advertisement

Table of Contents
loading

Table of Contents