You can make a pointer to the on-chip peripherals as follows:
// (in your Global data area):
// Pointer to the ArchIO structure (on-chip peripherals)
arch_sIO *p_ArchIO;
// (somewhere in your startup code, maybe in the main() function):
// Point to the ArchIO structure (on-chip peripherals)
p_ArchIO = ( arch_sIO * )&ArchIO;
Now, when you stop the program (for example, at a breakpoint), you can
open the Global Variables window and look at the values in the ArchIO
structure. The ArchIO structure contains structures for all the on-chip
peripherals as shown below:
typedef volatile struct{
arch_sSIM Sim;
UWord16 Reserved1[240];
arch_sTimer TimerA;
arch_sTimer TimerB;
arch_sTimer TimerC;
arch_sTimer TimerD;
arch_sCAN CAN;
arch_sPWM PwmA;
arch_sPWM PwmB;
arch_sDecoder Decoder0;
arch_sDecoder Decoder1;
arch_sIntCntrl IntController;
arch_sADC AdcA;
arch_sADC AdcB;
arch_sSCI Sci0;
arch_sSCI Sci1;
arch_sSPI Spi;
arch_sCOP Cop;
arch_sFlash ProgramFlash;
arch_sFlash DataFlash;
arch_sFlash BootFlash;
arch_sPLL Pll;
arch_sPort PortA;
arch_sPort PortB;
arch_sPort Reserved;
arch_sPort PortD;
arch_sPort PortE;
} arch_sIO;
The arch_sIO structure is defined in the Motorola SDK file "arch.h",
in
the following directory (for the '807 chip):
...\src\dsp56807evm\nos\include
The location of the ArchIO structure is defined in the "linker.cmd"
file
as follows (for the '807 chip):
.xPeripherals (RW) : ORIGIN = 0x1000, LENGTH = 0x0800
FArchIO = ADDR(.xPeripherals);
This address is defined to be the DSP on-chip peripherals at the end of
the "arch.h" file:
/* The locations of the following structures are defined in linker.cmd
*/
EXPORT arch_sIO ArchIO;
EXPORT arch_sCore ArchCore;
I hope this helps.
Regards,
Art Johnson
Senior Systems Analyst
PMC Prime Mover Controls Inc.
3600 Gilmore Way
Burnaby, B.C., Canada
V5G 4R8
Phone: 604 433-4644
FAX: 604 433-5570
Email:
http://www.pmc-controls.com
-----Original Message-----
From: Nitin Madhukar Yewale [mailto:]
Sent: Wednesday, August 28, 2002 6:43 AM
To:
Subject: [motoroladsp] Query related to DSP56800 Simulator
Importance: High
Hi,
I am using Codewarrior for Motorola DSP56800. I want check on
chip
peripherals like COP, Timer using simulator. Is it possible to check
those
on-chip peripherals using Simulator?
Thanks and Regards,
Nitin
_____________________________________
Note: If you do a simple "reply" with your email client, only the
author
of this message will receive your answer. You need to do a "reply
all"
if you want your answer to be distributed to the entire group.
_____________________________________
About this discussion group:
To Join:
To Post:
To Leave:
Archives: http://www.yahoogroups.com/group/motoroladsp
More Groups: http://www.dsprelated.com/groups.php3
">http://docs.yahoo.com/info/terms/
|