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
  • 1) You didn't read the posting instructions so very carefully. You forgot to pick up how to post source code.

    2) DAC != ADC.

    3) Try to use just a single language for variable names and comments. English is normally a good choice. Helps if you want help. And many companies have english as official language. Besides - much easier when you cut/paste code from projects and examples you find on the net.

    4) You read out a value into variable dac_Vin. Then you compute DACin based on adc_Ain, before returning DACin. So DACin doesn't seem to be based on any value you read out from the ADC, but from a variable you don't show us where it gets its value from.

Reply
  • 1) You didn't read the posting instructions so very carefully. You forgot to pick up how to post source code.

    2) DAC != ADC.

    3) Try to use just a single language for variable names and comments. English is normally a good choice. Helps if you want help. And many companies have english as official language. Besides - much easier when you cut/paste code from projects and examples you find on the net.

    4) You read out a value into variable dac_Vin. Then you compute DACin based on adc_Ain, before returning DACin. So DACin doesn't seem to be based on any value you read out from the ADC, but from a variable you don't show us where it gets its value from.

Children