Found on this page is source code I've written
for the C2407. Most of this code isn't portable without changes.
However, it should port between the DSP families without too much difficulty.
I am providing this code free of charge in hopes of helping
out others in their own projects. All code has been written by me,
Andrew Que. I provide the code "as is" for whatever you want to do
with it. I require noting to download and use this code but I'd sure
appreciate it if you were to send me an e-mail even if it's just to say
you saw the page. (See contact for more
information)
Base units: These units are quite useful and included in all
(almost all?) the code on this page.
|
General.H
|
Macros for all the various variable types, bits and such. |
|
DSP.H
|
Macros and constants for integrated peripheral of the C2407 |
System units:
|
Error.C
|
Error handling unit. This is the skeleton for my error handling
unit. Two basic types of errors, fatal and user. Fatal errors
shutdown the system and user errors just get a common error code. |
|
Error.H
|
Header for the above |
|
Int.C
|
Interrupt handling unit. This makes writing and installing interrupt
vectors much easier. The function 'SetInterruptVector' is all that
is needed to get an ISR installed. One still needs to setup the interrupt
source however! |
|
Int.H
|
Header for the above. |
|
Timer.C
|
Software timers. I've ported this code to sooo many projects
'cuz it's so useful. It installs a 100 µs timer interrupt which
is used for as software timers as one could want. |
|
Timer.H
|
Header for the above. |
Useful functions:
|
Sqrt.C
|
A fast integer square root function. Tests show this function
is about 8 times faster than the floating point square root function. |
Utilities:
|
OutInfo.Zip
|
Displays information about Code Composer generated .OUT files.
Nice for finding program and data sizes. Contains binary and Pascal
source code. MD5: C331E7F9 A3954A12 04E6DEFC 31C5808E |
NOTE: Any time I include executable binaries, I always post
the MD5 signature of the binary as an integrity check.
|