Digital Filter confusion

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Francis
Posts: 135
Joined: 08 Feb 2007 22:26

Digital Filter confusion

#1 Post by Francis » 12 Sep 2008 16:19

I have been trying the excellent Filter Design Tool in conjunction with the online Book.

After setting the parameters and viewing the generated code, I cut 'n'pasted into a new project.
And tried to build.
Why so many errors? Is it written for an older compiler?

e.g.
input_ as array[BUFFER_SIZE] ' Input buffer
output_ as array[BUFFER_SIZE] ' Output buffer

and

while SPI2STAT.1 = 1 ' wait for SPI module to finish, if doing something
nop
wend

Error: SPI2STAT was not declared.

How many changes will I have to make?
I'm sure it's terrific. I can't wait to sort the errors...
Or is there something fundamental that I should be doing to make this work but have failed to read or understand?
TIA.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”