Вы находитесь на странице: 1из 1

i forgot to mention one thing missing in report n coding as well.

actually, in main function of control unit program as soon as controller


enters in it check the value of variable named "status" that resides in
EEPROM. If status is 1 then voting start else no voting.
if the EEPROM is new or fresh, status will have some garbage value
or 0xFF. which can be a problem on first startup.
So a small program is written to clear that status byte.
After you finish making the hardware. You have to do the following things:
1. Load cufirst.hex file in your controller.
2. Run your circuit.
3. Wait for 2-3 seconds.
4. Load voting.hex which is the real control unit program.
5. Run it.

Вам также может понравиться