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

PSoC™ 5, 3 & 1

Not applicable

I am having a problem configuring my ADC in the way that is required. The range of my ADC is +/-6. We need to be configured that way; when the input voltage at -6V, then my ADC hex value should be 0x0000. When the voltage is 0V, then the LCD should display the half of my ADC value in hex, and my maximum ADC value which is 0xFFFF is equal to my maximum voltage which is +6V. 


Please check the attachment to observe my result. It's working, but the problem with it, the Voltage -0.001V is equal to 0xFFFF, but we need it to be the half of whatever the ADC value is, and my 0x0000 should be -6v. 

I am using the same kit as in the link below, which is PSoC 5LP.




1 Solution
Level 8
100 likes received 50 likes received 25 likes received
Level 8

You cannot handle negative voltages with the PSoC, they might even destroy it. (Except when using differential input, but even then the voltages cannot be below ground).


Apart from that: 0x000 corresponds to 0V, and negative voltages are represented as "two's complement" - a '-1' is then 0xFFFF. I think the ADC component data sheet explains that.

View solution in original post

6 Replies