Yes, the timer can be used for time of day... *BUT*
you will need some software... The timer is not time of day, but counts down based on the chip clock. The chip clock will be crystal driven, so will be a reasonably accurate time base (well, at least as good as your digital watch). If you program a particular down count, then when it is finished, you have to adjust the software maintained time of day by the count.
As to how to select devices with the '22 - You can latch some of the output bits and use that to select a device
(pump, whatever). How you do this depends on the number of pumps (or other) that you want to control.
As to priorities - The 6502 has NMI and IRQ. Whatever you wire to the IRQ -- you will have to write software to determine what caused it...
Ratboy666
|