Question: Hints: -function to create required delay void delay(unsigned intmsec ) // Delay function { inti,j ; for(i=0;i for(j=0; j } - Equation to derive analog

Hints:
-function to create required delay
void delay(unsigned intmsec ) // Delay function
{
inti,j ;
for(i=0;i for(j=0; j } - Equation to derive analog value read Vanalog= ADC code *LSB in decimal Full scale = 5V N=8 bits LSB= Full scale/2N N=8 Full scale=5-0=5 (for 5V VCC) ADC code: 00000000 to 11111111 in binary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
