Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Parallel in serial
out shift register
Speed is slow
The PIC18f A/D Converter
LM35 sensors
Interfacing LM35 with PIC18
Temperature calculations
A/D converter has 10-bit resolution
For temperature range 0F to +300F, the digital
output should be divided into 1024 steps (0 to
3FFH).
Therefore, the digital value per degrees
Fahrenheit is 10.24 (1024/100 = 10.2410).
This 10.24 V is exceeding the permissible max.
value i.e 3V.
If step size is taken 2.5 mV then max Vout will
be 2.56 V.
Final value is calculated by dividing output by 4.
Interfacing LM35 with PIC18
LM35 is
connected to
channel
0(RA0 pin).
The channel
AN3(RA3
pin) is
connected to
the Vref of
2.56 V.
Program for reading and displaying
temperature