I´m having this project where i have to develop a program that uses potentiometer through microcontroller (Aduc812) and converts it to PWM to adjust the brightness of a led. I have a start code here:
#include <Aduc812.h>
unsigned short ADC_Result;
void main(void)
{
...