Mr.Khiros
Junior Member level 3
Hi ;
i'm using PIC16F877A with temperature sensor LM35 . I refered to this work
https://forum.allaboutcircuits.com/blog.php?b=513
but i'm not able to unterstand those instructions :
ADRead = (ADC_Get_Sample(0) * 500) >> 10;
vDisp[0] = ADRead / 100;
vDisp[1] = (ADRead / 10) % 10;
vDisp[2] = ADRead % 10;
Display[1] = vDisp[0] + 48;
Display[2] = vDisp[1] + 48;
Display[3] = vDisp[2] + 48;
NEED YOUR HELP.
i'm using PIC16F877A with temperature sensor LM35 . I refered to this work
https://forum.allaboutcircuits.com/blog.php?b=513
but i'm not able to unterstand those instructions :
ADRead = (ADC_Get_Sample(0) * 500) >> 10;
vDisp[0] = ADRead / 100;
vDisp[1] = (ADRead / 10) % 10;
vDisp[2] = ADRead % 10;
Display[1] = vDisp[0] + 48;
Display[2] = vDisp[1] + 48;
Display[3] = vDisp[2] + 48;
NEED YOUR HELP.