This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MCB1700 Lpc1768 ports P0.23, P0.24

I have the following problem, P0.23 and P0.24 are Select as AD0.0 and AD0.1, when I read of the channels, they have the same Voltage as AD0.2 on P0.25, but nothing stands in the schematics of
P0.23 and P0.24, they are not connected or am I wrong?

Parents
  • "I checked the source code again with debuging, and its correct!"

    Are you saying that the code you checked is not the same as the code you posted?

    Because the code you posted assigns the ADC value to one variable (dac_Vin). But uses a completely different variable (adc_Ain) for converting from ADC ticks into voltage.

    If you never assign a new value to adc_Ain - how can you then use it to represent the new ADC value?

Reply
  • "I checked the source code again with debuging, and its correct!"

    Are you saying that the code you checked is not the same as the code you posted?

    Because the code you posted assigns the ADC value to one variable (dac_Vin). But uses a completely different variable (adc_Ain) for converting from ADC ticks into voltage.

    If you never assign a new value to adc_Ain - how can you then use it to represent the new ADC value?

Children