I am struggling with assembly code in Code Warrior for the HCS12 Dragon Board Light 12. My Project is to create:
Tank level sensor where once turned on, the pump runs for 30 seconds or the high level switch comes on.
Use switches to represent high and low levels
Use lights to represent pump on and off
Use LCD display to show the timer for 0-30 seconds with tank levels
I have 2 pumps, 4 sensors and a solenoid. When the low sensor on the main tank comes on, a pump pulls water in from the reservoir until the the high sensor comes on.
When the high sensor on the main tank overflow comes on, a different pump pulls water in from the main tank overflow, and sends it to the reservoir for 10 seconds.
When then the high light in the reservoir comes on, a solenoid opens to release water into the main tank.