Using the filter block

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am reading a 10 bit unsigned number from the ADC, and I want to feed this to the filter, which uses 24 bit 2's compliment data.

   

On the output of the filter, I pick up 24 bit 2's compliment data and I'd like to convert that back to 10 bit unsigned data.

   

Is there a code example for this?

   

 

   

Exploring further:  If I ignore the ADC, and just feed 0x000001 to the filter, shouldn't I expect 0x000001 out at some point? My filter is a lowpass, so DC should be within the passband.

   

There's a great deal not included in the documentation for the filter block.

   

Since it operates on a 24 bit value, do I need to "dc shift" the input value up by 0x7FFFFF?

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

There is Filter_ADC_VDAC example project in Code Example section of Creator.Please check,it may help.

View solution in original post

0 Likes
1 Reply
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

There is Filter_ADC_VDAC example project in Code Example section of Creator.Please check,it may help.

0 Likes