SlideShare a Scribd company logo
2
Most read
3
Most read
Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP
INTERFACING OF LM35 TEMPERATURE SENCOR WITH 8051
The main principle of this circuit is to take the analog temperature values, convert
them into digital values and display the digital temperature value oN LCD or 7-
Segment Display using 8051 MC.
• A temperature sensor ( LM35) is interfaced to the 8051 via an ADC
(ADC0804)
• The LM 35 IC generates a 10mV variation to its output voltage for every
degree Celsius change in temperature. (Scale factor 10mv/ 10 C )
• The Output of the temperature sensor is analog in nature so we need an A/D
converter for converting the analog input to its equivalent binary output.
• The ADC0804 converts the measured temperature output voltages from the
LM35 into digital signals then handled by the 8051
• The ADC 0804 is the analog to digital converter.
Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP
• After the INTR has become low, send a H-to-L pulse to the RD pin to get the
data out of the ADC0804 IC chip
• Here ADC 0804 is connected to port1 of 8051.
• RD, WR and INTR of ADC is connected to P2.5, P2.6 and P2.7 respectively.
• Analog input is applied to Vin of ADC.
• Here WR is for the start of conversion and INTR is for the end of conversion.
Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP
RD BIT P 2.5
WR BIT P 2.6
INTR BIT P 2.7
MOV P1, #0FFh
SETB P 2.7
(EOC is high. The ADC sends a low signal when conversion is finished. So the line
needs to be high so that MC can detect the change)
Back CLR P 2.6; WR=0
SET P 2.6; WR=1 (L-H, to start conversion)
Keep monitoring the INTR pin. If INTR is low, the conversion is finished. If INTR is
high, keep polling until it goes low.
WAIT: JB P2.7, WAIT (wait for end conversion)
CLR P2.5 (conversion is finished. Enable RD)
MOV A, P1 (read the data from port1)
ACALL CONVERSION (Hex-ASCII Conversion)
ACALL DATA_DISPLAY (display the data)
SETB P 2.5 (Disable Read)
SJMP Back

More Related Content

PDF
Ch_5 Regulated Power Supply.pdf
PDF
Question Bank Basic Electronics
PDF
Seven segment interfacing with 8051.pdf
PPTX
Embedded systems
PPTX
Interfacing Stepper motor with 8051
PPTX
Automatic irrigation system ppt
DOC
Final project report format
DOCX
Embedded system notes
Ch_5 Regulated Power Supply.pdf
Question Bank Basic Electronics
Seven segment interfacing with 8051.pdf
Embedded systems
Interfacing Stepper motor with 8051
Automatic irrigation system ppt
Final project report format
Embedded system notes

What's hot (20)

PPTX
R-2R Ladder DAC
PPTX
Subroutine in 8051 microcontroller
PPT
Memory organization of 8051
PPTX
Transistor Transistor Logic
PPT
Interfacing 8255
PPTX
Architecture of 8051
PPT
8085 interrupts
PDF
8051 interfacing
PPTX
PIC-18 Microcontroller
PPTX
8051 Microcontroller PPT's By Er. Swapnil Kaware
PDF
Keypad Interfacing with 8051 Microcontroller
PPT
Memory & I/O interfacing
PPTX
LCD Interacing with 8051
PPTX
8051 timer counter
PPT
Adc interfacing
PPT
DAC-digital to analog converter
PPT
Microcontroller-8051.ppt
PPT
8051 MICROCONTROLLER
PPTX
Microcontroller 8096
PPT
8051 instruction set
R-2R Ladder DAC
Subroutine in 8051 microcontroller
Memory organization of 8051
Transistor Transistor Logic
Interfacing 8255
Architecture of 8051
8085 interrupts
8051 interfacing
PIC-18 Microcontroller
8051 Microcontroller PPT's By Er. Swapnil Kaware
Keypad Interfacing with 8051 Microcontroller
Memory & I/O interfacing
LCD Interacing with 8051
8051 timer counter
Adc interfacing
DAC-digital to analog converter
Microcontroller-8051.ppt
8051 MICROCONTROLLER
Microcontroller 8096
8051 instruction set
Ad

Similar to interfacing of temperature sensor LM 35 with 8051.pdf (20)

PPTX
Pic ppt 13104022(4th_year)
PPTX
adcPresentation for microcontrolling process techniq
PPTX
adcanddac hai kya bhayy me know if-01.pptx
PPTX
Microprocessor based Temperature Controller
PDF
digitalvoltmeterusing805112b2-170214173216 (1).pdf
PPTX
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DOC
Unit iv microcontrollers final
PPTX
Adc and dac
PDF
8051interfacing 190425062221
PPTX
Analog to Digital Converters
DOCX
8051 FINIAL
PDF
ADC and DAC interfacing.pdf
PPTX
Interfacing technique with 8085- ADC[0808]
PDF
Interfacing Analog to Digital Data Converters ee3404.pdf
PPTX
FALLSEM2024-25_BEEE309L_TH_VL2024250101214_2024-10-05_Reference-Material-I.pptx
PPTX
Serial communication in 8051 microcontroller
PPT
Chapter5 dek3133
PPTX
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
PPTX
THERMOMETER_963258_DIGITAL THERMOMETER.pptx
PDF
analog to digital converter and dac final
Pic ppt 13104022(4th_year)
adcPresentation for microcontrolling process techniq
adcanddac hai kya bhayy me know if-01.pptx
Microprocessor based Temperature Controller
digitalvoltmeterusing805112b2-170214173216 (1).pdf
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
Unit iv microcontrollers final
Adc and dac
8051interfacing 190425062221
Analog to Digital Converters
8051 FINIAL
ADC and DAC interfacing.pdf
Interfacing technique with 8085- ADC[0808]
Interfacing Analog to Digital Data Converters ee3404.pdf
FALLSEM2024-25_BEEE309L_TH_VL2024250101214_2024-10-05_Reference-Material-I.pptx
Serial communication in 8051 microcontroller
Chapter5 dek3133
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
THERMOMETER_963258_DIGITAL THERMOMETER.pptx
analog to digital converter and dac final
Ad

More from Srikrishna Thota (18)

PDF
solar energy introduction.pdf
PDF
8051 Architecture and PIN Configuration.pdf
PDF
Types of Microcontrollers.pdf
PDF
Addressing modes of 8051.pdf
PDF
interrupts of 8051.pdf
PDF
Port Organization of 8051 .pdf
PDF
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
PDF
DAC Interfacing with 8051.pdf
PDF
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
PDF
BInary Number Representation
PPTX
Number Base Conversion Digital Electronics
PDF
Operational amplifiers
DOCX
Digital Electronics Notes
DOCX
The 8255 PPI
DOCX
Microprocessor Interfacing and 8155 Features
DOCX
Analog to Digital Conversion Basics
DOCX
8259 programmable interrupt controller
DOCX
8085 interfacing with memory chips
solar energy introduction.pdf
8051 Architecture and PIN Configuration.pdf
Types of Microcontrollers.pdf
Addressing modes of 8051.pdf
interrupts of 8051.pdf
Port Organization of 8051 .pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DAC Interfacing with 8051.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
BInary Number Representation
Number Base Conversion Digital Electronics
Operational amplifiers
Digital Electronics Notes
The 8255 PPI
Microprocessor Interfacing and 8155 Features
Analog to Digital Conversion Basics
8259 programmable interrupt controller
8085 interfacing with memory chips

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Computing-Curriculum for Schools in Ghana
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Lesson notes of climatology university.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
Institutional Correction lecture only . . .
Renaissance Architecture: A Journey from Faith to Humanism
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Sports Quiz easy sports quiz sports quiz
Module 4: Burden of Disease Tutorial Slides S2 2025
Anesthesia in Laparoscopic Surgery in India
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Lesson notes of climatology university.
Microbial diseases, their pathogenesis and prophylaxis
STATICS OF THE RIGID BODIES Hibbelers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

interfacing of temperature sensor LM 35 with 8051.pdf

  • 1. Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP INTERFACING OF LM35 TEMPERATURE SENCOR WITH 8051 The main principle of this circuit is to take the analog temperature values, convert them into digital values and display the digital temperature value oN LCD or 7- Segment Display using 8051 MC. • A temperature sensor ( LM35) is interfaced to the 8051 via an ADC (ADC0804) • The LM 35 IC generates a 10mV variation to its output voltage for every degree Celsius change in temperature. (Scale factor 10mv/ 10 C ) • The Output of the temperature sensor is analog in nature so we need an A/D converter for converting the analog input to its equivalent binary output. • The ADC0804 converts the measured temperature output voltages from the LM35 into digital signals then handled by the 8051 • The ADC 0804 is the analog to digital converter.
  • 2. Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP • After the INTR has become low, send a H-to-L pulse to the RD pin to get the data out of the ADC0804 IC chip • Here ADC 0804 is connected to port1 of 8051. • RD, WR and INTR of ADC is connected to P2.5, P2.6 and P2.7 respectively. • Analog input is applied to Vin of ADC. • Here WR is for the start of conversion and INTR is for the end of conversion.
  • 3. Interfacing of LM 35 using 8051 T.Srikrishna, M.Sc, M.Tech, GVP RD BIT P 2.5 WR BIT P 2.6 INTR BIT P 2.7 MOV P1, #0FFh SETB P 2.7 (EOC is high. The ADC sends a low signal when conversion is finished. So the line needs to be high so that MC can detect the change) Back CLR P 2.6; WR=0 SET P 2.6; WR=1 (L-H, to start conversion) Keep monitoring the INTR pin. If INTR is low, the conversion is finished. If INTR is high, keep polling until it goes low. WAIT: JB P2.7, WAIT (wait for end conversion) CLR P2.5 (conversion is finished. Enable RD) MOV A, P1 (read the data from port1) ACALL CONVERSION (Hex-ASCII Conversion) ACALL DATA_DISPLAY (display the data) SETB P 2.5 (Disable Read) SJMP Back