![Intel 8XC196NT User Manual Download Page 400](http://html1.mh-extra.com/html/intel/8xc196nt/8xc196nt_user-manual_2072210400.webp)
15-37
PROGRAMMING THE NONVOLATILE MEMORY
15.10.6 RISM Command Examples
This section provides examples of ways in which you might use the RISM commands.
15.10.6.1
Example 1 — Programming the PPW
You should specify the programming pulse width before you do any programming or write to any
memory locations. This example loads the SP_PPW register (221CH/221DH) with 8010H, the
minimum value for 16-MHz operation. (See “Programming Pulse Width” on page 15-8 to deter-
mine the correct PPW for other frequencies.)
Before this programming step takes place, the SP_PPW register contains its default value,
80FFH. The PPW is equal to 2.30 ms, so this program step will take 11.52 ms per word to com-
plete (5 pulses of 2.30 ms each). After the PPW value is changed, subsequent programming op-
erations will take only 500 µs per word (5 pulses of 100 µs each).
0BH
INDIRECT
Puts the word from the memory address pointed to by the ADDR register into the
ADDR register.
Memory Addr.
ADDR
2217
2216
Before
command 22
16
80
09
After command
80
09
80
09
12H
GO
PUSHes the user PC, PSW, and WSR onto the stack and starts your program
from the location contained in the user PC. The RISM PC, PSW, and WSR will
also be in the stack, so allow enough room on the stack for all six words. Your
program must not directly alter memory locations 56H–5CH; the RISM uses these
locations if your program reads from or writes to any memory.
You can interrogate memory locations while your program is running. The RISM
interrupts your program to process the command, then returns execution to your
program.
13H
HALT
Stops executing your program, POPs the user PC, PSW, and WSR from the
stack, and PUSHes the RISM PC, PSW, and WSR back onto the stack. The RISM
PC contains the location of the Monitor_Pause routine, so the RISM returns to
Monitor_Pause.
14H
REPORT
Loads a value into the DATA register. This value indicates the status of your
program:
Value
Status
00
halted
01
running
02
trapped
Table 15-14. RISM Command Descriptions (Continued)
Value
Command
Description
Summary of Contents for 8XC196NT
Page 1: ...8XC196NT Microcontroller User s Manual...
Page 2: ...8XC196NT Microcontroller User s Manual June 1995 Order Number 272317 003...
Page 22: ...1 Guide to This Manual...
Page 23: ......
Page 35: ......
Page 36: ...2 Architectural Overview...
Page 37: ......
Page 49: ......
Page 50: ...3 Programming Considerations...
Page 51: ......
Page 66: ...4 Memory Partitions...
Page 67: ......
Page 104: ...5 Standard and PTS Interrupts...
Page 105: ......
Page 147: ......
Page 148: ...6 I O Ports...
Page 149: ......
Page 176: ...7 Serial I O SIO Port...
Page 177: ......
Page 194: ...8 Synchronous Serial I O SSIO Port...
Page 195: ......
Page 211: ......
Page 212: ...9 Slave Port...
Page 213: ......
Page 231: ......
Page 232: ...10 Event Processor Array EPA...
Page 233: ......
Page 270: ...11 Analog to digital Converter...
Page 271: ......
Page 291: ......
Page 292: ...12 Minimum Hardware Considerations...
Page 293: ......
Page 306: ...13 Special Operating Modes...
Page 307: ......
Page 317: ......
Page 318: ...14 Interfacing with External Memory...
Page 319: ......
Page 362: ...15 Programming the Nonvolatile Memory...
Page 363: ......
Page 408: ...A Instruction Set Reference...
Page 409: ......
Page 476: ...B Signal Descriptions...
Page 477: ......
Page 493: ......
Page 494: ...C Registers...
Page 495: ......
Page 565: ......
Page 566: ...Glossary...
Page 567: ......
Page 580: ...Index...
Page 581: ......
Page 597: ......