Reply by MW Ron September 3, 20022002-09-03
Nitin Madhukar Yewale wrote:

> 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?
Art Johnson wrote:

> You can make a pointer to the on-chip peripherals as follows:


Yes, you can setup pointers that point to the peripherals using the
simulator, but the simulator is not capable of simulating peripheral
activity. Therefore, you shouldn't expect to be able to see similar
behavior on the timer peripheral registers that you would with true
hardware, our simulator simply doesn't have that functionality yet at this
point. It's really only capable of DSP5658xx core simulation at this point
and not able to simulate peripheral activity.

I apologize for the delay in replying,

Ron

--
Do what you do best and let Metrowerks do the rest !!
http://www.metrowerks.com/MW/Services/SSG/default.htm

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - - http://www.metrowerks.com



Reply by Art Johnson August 28, 20022002-08-28
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/


Reply by Nitin Madhukar Yewale August 28, 20022002-08-28
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



**************************Disclaimer********************************************\
****

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

********************************************************************************\
*******