hi,
im working with PIC mcu, i go through different tutorials and examples regarding ADC module.
My mcu has 10 bit resolution for conversion. it means, ADC divides input volts by 1024. but i do not understand why do we divide ADC results again with 1024. for example
tmp = ADC_Read(0);
tmp = tmp/1024; // why result is divided by 1024 as ADC has already done it
tmp = tmp*5; //convert back to 5 volts
my second question is, can i calculate expected ADC result, for example if volts on LDR pin are 3.7, how can i calculate expected results of ADC 3.7/1024 ?? right?
thanking you.
im working with PIC mcu, i go through different tutorials and examples regarding ADC module.
My mcu has 10 bit resolution for conversion. it means, ADC divides input volts by 1024. but i do not understand why do we divide ADC results again with 1024. for example
tmp = ADC_Read(0);
tmp = tmp/1024; // why result is divided by 1024 as ADC has already done it
tmp = tmp*5; //convert back to 5 volts
my second question is, can i calculate expected ADC result, for example if volts on LDR pin are 3.7, how can i calculate expected results of ADC 3.7/1024 ?? right?
thanking you.