Download MPSIM User's Guide

Transcript
MPSIM USER’S GUIDE
Special Function Registers
Many special-function registers in the PIC17CXX family (specifically the
“peripheral registers”) are located in register banks other than bank zero. To
access these registers in your program, you must first select the desired bank
and then specify the address within that bank (0x10 - 0x17). Because of this,
the “porta” register (address 0x10 in bank 0), for example, and the “ddrc”
(address 0x10 in bank 1) registers would both be defined in your source code
as addresses 0x10.
In order to distinguish between labels that have the same address, MPSIM
has pre-defined the following labels with file register addresses and has
added them to its internal symbol table:
DDRC
TMR1
PW1DCL
PORTC
TMR2
PW2DCL
DDRD
TMR3L
PW1DCH
PORTD
TMR3H
PW2DCH
DDRE
PR1
CA2L
PORTE
PR2
CA2H
PIR
PR3L
TCON1
PIE
PR3H
TCON2
If you want to view the contents of any of these registers during your
simulation session, you can add them to the viewscreen by using the “AD”
command.
DS30027I - page 182
 1995 Microchip Technology Inc.