Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 08:41:15 08:41


Login with username, password and session length


Pages: [1]
Print
Author Topic: [SOLVED] About .s File -C30/XC16  (Read 259 times)
0 Members and 1 Guest are viewing this topic.
biomed12
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 37
-Receive: 3


« on: October 17, 2016, 02:46:07 14:46 »

Hello Dear Members,

I am observing dsPIC digital filter examples to implement a digital band pass filter. I saw some .s files that are produced by dsPIC Digital Filter Design software.

Firstly, I attached some codes. I could not understand the syntax. What is the mission of .hword function?
Secondly, Is there anyone who can share with me the dsPIC Digital Filter Design Software or recommend me a similar software which produce .s files for my design.

Thanks.

EDIT: After a few weeks later, I designed a FIR filter succesfully using dsPIC and it works perfectly in the simulation. I will try the hardware implementation and i will share complete projects in the Electronics->Projects section.
« Last Edit: November 01, 2016, 03:54:02 15:54 by biomed12 » Logged
baybay
Newbie
*
Offline Offline

Posts: 23

Thank You
-Given: 6
-Receive: 37


« Reply #1 on: October 17, 2016, 03:30:11 15:30 »

.hword defines 16-bit number (little-endian)

please refer to page 69

http://ww1.microchip.com/downloads/en/DeviceDoc/50002106C.pdf


Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #2 on: October 17, 2016, 04:10:34 16:10 »

the .hword are your filter taps.  If you don't know what filter taps are you need to read about DSP for a bit.  The filter taps are you coefficients of you FIR or IIR filter design.

The coefficients get reserved in xdata space (DSP functions need to be utilizing combinations of xdata and ydata space to get the speed out of the special DSP assembly functions.)

you could also reserve your coefficient space in C like with the keyword CONST (but you still have to use the compiler specific keywords to get the variable reserved in the right xdata space)

you don't actually need the filter designer.  There are plenty of free ways to do it:

http://t-filter.engineerjs.com/

but you do need to understand DSP and dspic assembly so you can build it correctly.

Start with simple stuff like echo filters and reverb filters so you can figure it out more easily.
Logged
biomed12
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 37
-Receive: 3


« Reply #3 on: October 17, 2016, 06:12:26 18:12 »

the .hword are your filter taps.  If you don't know what filter taps are you need to read about DSP for a bit.  The filter taps are you coefficients of you FIR or IIR filter design.

The coefficients get reserved in xdata space (DSP functions need to be utilizing combinations of xdata and ydata space to get the speed out of the special DSP assembly functions.)

you could also reserve your coefficient space in C like with the keyword CONST (but you still have to use the compiler specific keywords to get the variable reserved in the right xdata space)

you don't actually need the filter designer.  There are plenty of free ways to do it:

http://t-filter.engineerjs.com/

but you do need to understand DSP and dspic assembly so you can build it correctly.

Start with simple stuff like echo filters and reverb filters so you can figure it out more easily.

Dear Gallymimu,

Could you recommend a good ebook to me to understand DSPs? I have read some book's part but, I think i have not understood the concept of DSP. Maybe books I have read are old.

Thanks.
« Last Edit: October 18, 2016, 04:29:08 04:29 by biomed12 » Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #4 on: October 18, 2016, 07:49:50 07:49 »

Dear Gallymimu,

Could you recommend a good ebook to me to understand DSPs? I have read some book's part but, I think i have not understood the concept of DSP. Maybe books I have read are old.

Thanks.

before I try to answer that.  Do you already have background in classical control systems (analog filter, analog controls, s-domain, poles and zeroes?)

Those items are prerequisites to DSP and digital control systems.

you can try this:  http://www.analog.com/en/education/education-library/scientist_engineers_guide.html

it covers a lot of the basics and some details.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC