How to convert the signed ADC value into decimal value? | Cypress Semiconductor
How to convert the signed ADC value into decimal value?
I am using PSoC CY8C29466's DelSig and Triple input incremental ADC. Both ADC is set to data format as signed. The data input into ADCs is from sensor which the sensor itself have output value between 1V to 4.9 V.
Delsig is set to 3 MHz clock frequency and Pulse width is 10. Triple input ADC is set to ADC resolution of 13 bit, Calc time 400, 3 MHz clock frequency.
I want to know what is the C code to change the ADCs value into decimal value ( base number of 10).