EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / hi bob……..in your circuit

hi bob……..in your circuit

|

Microcontroller › 8051 › 8051 problem asm code. unfinished temperature sensor, need help please. › hi bob……..in your circuit

March 2, 2013 at 4:14 pm #9219
preethi
Participant

hi bob……..in your circuit you have connected adc0804 data pins to microcontroller port1 that means p1.0 to p1.7….But in your program you have given it to microcontroller port2 that means p2

and also

As per your circuit you have connected rd, wr, cs, intr pins of adc0804 to port 3……. but in the program it is declared as port1

So, make changes in  your code for adc0804 to connect data pins of adc0804 to port1 and control pins rd, wr, cs, intr to port3 of microcontroller

correct lines as per your circuit  are 

 

               rd equ P3.0 ;Read signal P3.0

               wr equ P3.1 ;Write signal P3.1
               cs equ P3.2 ;Chip Select P3.2
               intr equ P3.3 ;INTR signal P3.3
 
               adc_port equ P1 ;ADC data pins P1

RSS Recent Posts

  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026
  • Beginner Questions About CNC Machines – G-code, Control Systems & Accuracy April 21, 2026
  • A Must-Watch Video Showing Dangerous Construction of Cheap Lithium-Ion Cells April 21, 2026
  • S1MJ ? April 20, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise