You are on page 1of 1

18DSB007 Exam Solution Tips

Q3

a.) Must be connected to an analogue enabled PIC input ANx, sensor pins to 0v, Vcc 3.3v and
Analogue Out to RA0, for example

155 so 10-
b.) 70 cm sensor output = 0.5v; 0.5/3.3 = 0.151515; 0.1515 x 1023 =

bit binary for 155 is 0010011011


c.) Right justified ; (256* ADRESH ) + ADRESL to obtain the 10-bit number then some
maths needs to be done to arrive at the 70 (cm). It is not a linear rresponse which
creates challenges

You might also like