External Memory Usage
5.4
EMULATING PIC18F8XXX PROGRAM MEMORY MODES
Emulating a device that uses external memory requires the following steps:
5.4.1
Setting Configuration Bits
To set the values of configuration bits for your selected device, open the Configuration
Bits window by selecting Configure>Configuration Bits . In the Category column, find
Processor mode and select the mode.
Note:
5.4.2
Configuration bits may also be set in code using __config . Refer to the
device data sheet and header file ( .inc or .h ) for more information.
Setting External Memory
To set up MPLAB IDE and MPLAB ICE 4000 to use external memory, select
Configure>External Memory . Then check “Use External Memory” and enter a range.
5.4.3
Setting Memory Options
To set up memory options, open the Settings dialog ( Debugger>Settings ) and select
the Memory tab ( Section 8.17 “Settings Dialog, Memory Tab” ).
The Processor mode currently selected in the configuration bits will be reflected under
“Mode”. If the mode selected supports external memory, functions on this tab will be
active.
When emulating a Program Memory mode that makes use of external memory, two
choices are available:
? External Program Memory Supplied by Emulator – Use emulator memory for
both on-chip and off-chip (external) memory during development. This has the
advantage of speeding up program load time after a build. It has the disadvantage
of not actually using the target external memory.
? External Program Memory On Target Board – Use the emulator as a device
would be used, with the emulator memory representing only on-chip memory. This
has the advantage of testing the application as it will actually be run, with external
memory. It has the disadvantage of longer upload/download times, as commands,
writes and reads to external memory will take time.
In order for the MPLAB ICE 4000 to load your code into external program mem-
ory, the target system must provide SRAM or DRAM. If the target system uses
non-volatile memory, such as Flash, the emulator will not be able to load code into
external memory. For non-volatile memory, you must provide an alternate method
of loading program memory. However, the emulator can upload non-volatile
memory and run from non-volatile memory.
5.4.3.1
EXTERNAL PROGRAM MEMORY SUPPLIED BY EMULATOR
To use only emulator memory, select “Supplied by Emulator” under “External (Off-Chip)
Program Memory”. The amount of emulator-supplied memory will display in “Emulator
Supplied” under “ICE Memory Mapping”. “Target Supplied” should say “Not Used”.
If you still need to access a range of target memory to control external circuits, set up
a “Memory Mapped Peripheral Range”. Check the box “Enable Banked Access Mode”
and enter a target memory start and end address. This may either be a range within
the emulator range, or a range above this but below the program counter maximum
(see Section 5.3.1 “Program Counter” .)
? 2004 Microchip Technology Inc.
DS51490A-page 29
相关PDF资料
PMF18WE0 PROCESSOR MODULE FOR ICE4000
PMT823004F GP THREE ELEMENTS S.A. 230V T/H
PPM3-MK2 PROGRAMMER PRODUCTION ISP
PPM3A1-UPG5M UPGRADE PPM3 RAC DEVELOPMENT
PQ-MDS-PCIEXP PCI EXPANDER ADAPTOR
PQF-44 PLUG QFP 44PIN (SOLDER DOWN)
PRG18BB471MS1RB THERMISTOR
PS1600 POWER SUPPLY HOTSWAP 90-245V
相关代理商/技术参数
PMF18WE0 功能描述:插座和适配器 Processor MOD RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WE0 制造商:Microchip Technology Inc 功能描述:Tools Emulator For Use With:P
PMF18WE1 功能描述:插座和适配器 PIC18F8680 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WF0 功能描述:插座和适配器 Processor Module RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WH0 功能描述:插座和适配器 PIC18F ICE4000 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WJ0 功能描述:插座和适配器 Processor MOD RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WJ1 功能描述:插座和适配器 Processor Module RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WK0 功能描述:插座和适配器 PIC18F RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x