Can I use the PIC16F877A for the automatic railway gate project instead of the 8051 microcontroller.The microcontroller will be used to control the stepper motors for opening and closing the gate and the LEDs after the infra red sensors have detected the presence of the train.