![Intel 8XC196NT Скачать руководство пользователя страница 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
Содержание 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: ......