Some issues:
* Why the pull-up resistors at P0x?
* Why do you use the 7407?
* you should use a 100n X7R capacitor at EACH IC VCC pin with short connection to GND plane.
* your 7805 will becom very hot. You need a heatsink. Or use a transformer with lower secondary voltage.
* Why two transistors to drive a relay?
Some issues:
* Why the pull-up resistors at P0x?
* Why do you use the 7407?
* you should use a 100n X7R capacitor at EACH IC VCC pin with short connection to GND plane.
* your 7805 will becom very hot. You need a heatsink. Or use a transformer with lower secondary voltage.
* Why two transistors to drive a relay?
In addition to Klaus remark, from where comes the voltage V_raw applied to relay bobin ?
If you did that to provide some impedance to 5V, it's ok, otherwise uC will be susceptible to reset.
In addition to Klaus remark, from where comes the voltage V_raw applied to relay bobin ?
If you did that to provide some impedance to 5V, it's ok, otherwise uC will be susceptible to reset.
I dont know if it works with v raw or 2 transistors or not till I simulate the circuit,which is why I need the program.
My first priority is to read the temperature and display it.
without knowing what V_raw is and without the relay specifications nobody can guarantee the function.
Even the simulation won´t tell you if it works or not.
I dont know if it works with v raw or 2 transistors or not till I simulate the circuit,which is why I need the program. My first priority is to read the temperature and display it.
So, the additional working circuitry's description you gave is purposeless for the current demand.
Did you make a search on this forum using keyword criteria “8051+LM35+ ADC0804” ? I found many occurrences.
So, the additional working circuitry's description you gave is purposeless for the current demand.
Did you make a search on this forum using keyword criteria “8051+LM35+ ADC0804” ?
without knowing what V_raw is and without the relay specifications nobody can guarantee the function.
Even the simulation won´t tell you if it works or not.
vraw is the voltage before 7805
For now as long as the port that drives the relay is working as per program and the the temperature is properly displayed it is ok.
I can see in the simulation if the port is high or low.
I can't believe that you have not found any usable code either at Google or at , with which you could start your own project. Please tell me that you're not expecting that someone give you the whole working code for specifications you stated at post #1.