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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started