ADC +5v and -5v read and compare | Cypress Semiconductor
ADC +5v and -5v read and compare
I am using CY8C28445 (PSOC 1) ic . i have to use two ADC . first ADC calculate 5v to 0v and second ADC calculate -5v to 0.
Both of ADC values i have to compare and turn on two separate LED light .
ADC1 value > ADC2 value = LED 1 turn on
ADC2 value > ADC1 value = LED 2 turn on
Please provide the sample code for this task . i had test a basic code for +5v to 0 but i am not able to get 0 to -5v value .