TucsonDon
Member
Code:
//RTCC free RAM addresses for pump start-stop timers
#define PumpTime0 0x15
#define PumpTime1 0x1B
#define PumpTime2 0x21
#define PumpTime3 0x27
#define PumpTime4 0x2D
#define PumpTime5 0x33
#define PumpTime6 0x39
#define PumpTime7 0x3F
typedef unsigned char bool;
union
{
struct
{
bool pumptimer0:1; /*using the bits to flag if */
bool pumptimer1:1; /*a run timer is in use*/
bool pumptimer2:1;
bool pumptimer3:1;
bool pumptimer4:1;
bool pumptimer5:1;
bool pumptimer6:1;
bool pumptimer7:1;
};
}pmptmr; //pump timer status
I am trying to setup a timer to turn a pump on-off. I am using pmptmon bits to flag which timer is in use and need to point to the correct address on th RTCC to read the information but don't know how to do it.
Last edited: