Telephone meter program/*Signal definition: clk: clock signal, in this example, its frequency value is 1Hz; decide: the signal fed back by the telephone company, representing the type of call, \"01\" means local call, \"10\" means long-distance call, and \"11\" means special call; dispmoney: used to display the balance in the card, its unit is jiao, here it is assumed that the maximum amount that can be displayed is 50 yuan (500 jiao); disptime: display the duration of this call; write, read: write the card when the write signal falls, and read the card when the card is inserted and the read signal becomes high; warn: alarm signal when the balance is too low. In this example, when making a local call, the balance is less than 3 jiao, and when making a long-distance call, the balance is less than 6 jiao, an alarm signal will be generated; cut: automatically cut off the call signal when the alarm time is too long. */
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore