In the common basketball game, times and score are majority taken manually operated, it is very simple and crude timing, score way, but taking this approach is very inconvenient. And mostly due to the lack of 24 seconds that by count-down, the controlling time was not very accurate. The design is meant to address this issue, on the basis of the gull analysis of the characteristics of the basketball Competition, based on this, I have designed the timing and scoring system, in which, the single-chip computer AT89C51 is regarded as the controller, and the seventh paragraph digital LED is regarded as the player.
The design process of this system is mainly divided into timed and scored two major parts, according to the function and characteristic of each part, and combine the single-chip computer’s control method, then electron type system is be designed, and which is practical, also can be used in general match. Its main contents include hardware design, software design and debugging of several parts. In the system we can achieve a regular schedule set, clinching suspended, a timely update, break A, B two teams of both sides achievement and keep the achievement after the match in time, and other functions.
On the basis of confirming the overall design plan of the system, choosing the suitable chips to do the hardware circuit designing and the software designing. And so T painted the schematic diagram with Protel 99 SE. On this basis, the software and hardware simulated in the software programming environment Keil C51,and the simulation results are illustrated that this text is correct and practical.
Key words:74LS21, AT89C51,serial and parallel I/O interfaces, interrupt,software anti-interruption