• led lighting at a pin
    . Is the code given below correct?If not please tell why? < #include<reg51.H> sbit IN = 0x90; sbit OUT = 0xA0; void delay(unsigned int); void main() { while(1) { P1 = 0xFF; P2 = 0x00; while...
  • led lighting at a pin
    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
  • led lighting at a pin
    I wrote the code for it in keil.The simulation worked perfectly but the hardware implementation for the same is not working properly.Please help < #include<reg51.H> sbit IN = 0x91; sbit OUT =...
  • led lighting at a pin
    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
  • led lighting at a pin
    . Is the code given below correct?If not please tell why? < #include<reg51.H> sbit IN = 0x90; sbit OUT = 0xA0; void delay(unsigned int); void main() { while(1) { P1 = 0xFF; P2 = 0x00; while...