Getting Filter output without a VDAC | Cypress Semiconductor
Getting Filter output without a VDAC
Hi to all,
How to get the output of a filter without using a VDAC?
I've started from the code example Filter_ADAC_VDAC_poll on a CY8CKIT-050 kit, removed the VDAC and the OpAmp, using the Potentiometer as ADC input, and added UART to see the results with the help of the RS232 on a PC.
Till the output of the ADC everything is fine.
The issue is with the results at the output of the Filter. I know that they are 2's complement, but I don't know how i can get "normal values" out of them. I just want to be able to get 4V when the Potentiometer is giving 4V.. and so on. It would be great if someone would tell me the solution also for 24 bit resolution.
I wanted to use something like
uint8 After_Filter = Filter_Read8(Filter_CHANNEL_A);
sprintf(fil_string, "After Filter raw : %i", After_Filter);
and get the equation to convert the values into something understandable, but the values were just too messy for me, and dependable on the data type I use (uint8, float, int ... etc) !!
Thanks for any help.