I am doing a project on AUTOMATIC RAILWAY GATE SYSTEM.I want to make an led connected to a pin of port P2 of 8051 to light up when a bit of port 1 is set.How to do that.Please help
what help do you need? someone to write the code for you?
Erik
But everyone know that if you are doing a project on AUTOMATIC RAILWAY GATE SYSTEM, then you need special extra care about how that LED is driven.
There is no similarity in the LED driving compared to just a stupid Blinky application. So obviously, it is important to find one or more web forum to collect enough help about this delicate process.
"to light up when a bit of port 1 is set"
It is often better to do the reverse - lots of processors have stronger sink than source capabilities.