|
As of versions 2.16i and higher of our 8051 Development System, we include a C program example for time-of-day based scheduling. When you install the development system, this example is under
\bipom\devtools\ microc\examples\8051\medium\schedule
This example activates both10 Amp relays on the RELAY-2 board for 2 seconds at the scheduled times of
2:00, 2:30, 3:00, 3:30, 4:00, 5:30 and 6:00
These parameters can easily be changed in the program to specify other activation times. The relays can control low to medium power devices such as motors, solenoids, lamps, fans.
Code Example:

|