This topic presents a basic approach to develop an electronic machine. The idea is to display the count of votes on a set of seven segment displays. A set of switches are provided through which a user can cast vote. After every cast of vote, the subsequent count can be seen on the seven segments. The segments and switches are controlled through AT89C51. For every candidate, a segment has been provided.
To display the vote count, four seven segment displays are also connected to the microcontroller (refer seven segment interfacing with AT89C51). The count value for each candidate is sent to the corresponding segment. The four counts appear continuously by multiplexing these segments through AT89C51.
Pins 2-5 of the port P3 are configured to take inputs through switches connected to them. The data pins of the seven segments are connected to port P2. Pins 0-3, of port P1, are configured as output to act as control/enable pins of the seven segments.
No comments:
Post a Comment