Hi, I'm just about to start developing the software for a project using a DSP56f801. I was wondering if any had or knew where I could find a header file that defined all the peripheral registers as variables to use in simple C without needing to use the SDK. Thanks Zach |
|
Peripheral Header File DSP56F801
Started by ●January 27, 2004
Reply by ●January 27, 20042004-01-27
Hi, Here my include file (also for DSP56F807 after changing one line). Kind regards, Wim de Haan Exendis B.V. Ir. W.J. de Haan P.O.box 56, 6710 BB Ede Keesomstraat 4, 6716 AB Ede The Netherlands. Tel: +31-(0)318 - 676305 Fax: +31-(0)318 - 676319 mailto: URL: http://www.exendis.com <http://www.exendis.com/> -----Original Message----- From: zlewko [mailto:] Sent: dinsdag 27 januari 2004 3:42 To: Subject: [motoroladsp] Peripheral Header File DSP56F801 Hi, I'm just about to start developing the software for a project using a DSP56f801. I was wondering if any had or knew where I could find a header file that defined all the peripheral registers as variables to use in simple C without needing to use the SDK. Thanks Zach _____________________________________ 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 <http://www.yahoogroups.com/group/motoroladsp> More Groups: http://www.dsprelated.com/groups.php3 <http://www.dsprelated.com/groups.php3 _____ > . | |||
|
Reply by ●January 27, 20042004-01-27
I can send you the file I use for the 56F807. You can change base addresses and available registers. Allows you to use a statement to read a port like: input = ADCADR; or write to a port like SCI0SR = 0x53; All port names are direct duplicates of the user manual so confusion is limited. Here is a sample for accessing SCI port0 #define SCI0_BASE 0x1300 // Serial Communication Interface 0 // SCI 0 Registers #define SCI0_SCIBR *(volatile unsigned int *)(SCI0_BASE + 0) // SCI Baud Rate Register #define SCI0_SCICR *(volatile unsigned int *)(SCI0_BASE + 1) // SCI Control Register #define SCI0_SCISR *(volatile unsigned int *)(SCI0_BASE + 2) // SCI Status Register #define SCI0_SCIDR *(volatile unsigned int *)(SCI0_BASE + 3) // SCI Data Register -----Original Message----- From: zlewko [mailto:] Sent: Monday, January 26, 2004 9:42 PM To: Subject: [motoroladsp] Peripheral Header File DSP56F801 Hi, I'm just about to start developing the software for a project using a DSP56f801. I was wondering if any had or knew where I could find a header file that defined all the peripheral registers as variables to use in simple C without needing to use the SDK. Thanks Zach _____________________________________ 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 |