Project description
You need to write firmware for the finished device on nuvoton n76e003at20. There is a ready-made device with ali - countdown timer, controlling the load through the relay.
The timer is started by an external button, which leads to the load being turned on. At the end of the time, the load is turned off.
In the runoff, the timer is programmed using three seven-segment indicators and two buttons on the control unit. The device is supposed to be placed under the skin of the car, so the task for this project is to write a firmware that allows you to program the timer using a single external button and a baser.
Key functionality of the timer with a new firmware:
T-time programming in the range of 0...5 minutes with a discreteness of 1 minute
- re-introduced hysteresis programmed in the range (1-5) *T
Protection against accidental start (prolonged (or double) pressing to start)
- indication of operating modes by the baser (signal at start, signal at end, signal of check of mode of operation, signal of error)
- Emergency termination of the timer by pressing the button
A block diagram of the algorithm described above will be provided, as well as the device itself.
At the output - the firmware text and a compiled file with a brief instruction for firmware in "home" conditions.