The 7-segment should be connected to the port in the following order P2.0 to pin a of the 7 segment, P2.1 to b, P2.2 to c and ends up with P2.7 to h. Here we aré using 6 MHz crystal for the 8051 Microcontroller operation and you can use upto 12MHz crystal with this controller.Īs you can see in the above pin configuration there is two common ground pins, we can use any one of it. That means Iogic 0 signal in the Microcontroller switches the LED ON and logic 1 signal switches the LED off. In this configuration the Microcontroller was used to sink the current from the LED to its ports. The LEDs which was used as lights was connected to the Microcontroller by means of common Anode configuration. 4 Way Traffic Light Verilog Code Drivers Máy Not.
0 Comments
Leave a Reply. |