Ogu Reginald
Full Member level 6
I am using AT89S52 microcontroller in my project.
I want to recieve signal through port1 pin0 and my first load is connected at port1 pin1 while my second load is connected to port1 pin2.
I want the first load load to come on immediately a logic 1 is recieved at port1 pin0 and after five minutes it should be off and the second load is switched on and off after ten minutes.
Please can anyone help me with a c code that will work for the above design specification.
My main problem is how to call up the time and set it to the desired time.
I want to recieve signal through port1 pin0 and my first load is connected at port1 pin1 while my second load is connected to port1 pin2.
I want the first load load to come on immediately a logic 1 is recieved at port1 pin0 and after five minutes it should be off and the second load is switched on and off after ten minutes.
Please can anyone help me with a c code that will work for the above design specification.
My main problem is how to call up the time and set it to the desired time.