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

reading A/D value from the potentiometer

Dear Keil users,
I'm new here.
In BLINKY I want to do the following :

Write the A/D value read from the potentiometer and write it onto the LCD panel

Analogvalue 754

#include <stdio.h>
// after reading the analog value
set_cursor (0, 0);
sprintf(text1,"Analogwert %5d",AD_value);
lcd_print (text1);

But I don't know how to read the value from the potentiometer.Any suggestions?
Thanks for advance for any help.
Adel.

0