BryanG
Member
You don't control the timer with the inputs, you control the timer with the bit that you are setting/holding, resetting/releasing. With a control bit that self holds or is SET, once it is ON it doesn't matter how many more times you tell it to be ON, it is already ON. And inversely once it is OFF it doesn't matter how many more times you tell it to be OFF, because it is already OFF.
From your method I see you went to the complicated school of programming. Here are two simpler methods of holding or setting a bit.
I haven't included the timer, I do have to leave some homework for you to figure out.
From your method I see you went to the complicated school of programming. Here are two simpler methods of holding or setting a bit.
I haven't included the timer, I do have to leave some homework for you to figure out.