Quote Originally Posted by ecoli-557 View Post
OK, Ive been thinking (with the aid of a glass of Rye.....) and I was wondering with my re-newed knowledge of arrays if the following would work:
1. Have built the truth table - works.
2. Found that there are 'conditionals' within the truth table.
3. What if (new thought here) that a bit or flag is set in the timing section which turns on or activates another section of table!?
4. In my example (I will flesh out the table in the AM) that input 9 or 11 are the timed events. If I set a flag which I can add to the base address of 4 bits (a 5th) and use the newly addressed table for the 2 conditionals!!??
OK, I don't know yet how to do this but tomorrow I will try several trys at this......
Thoughts?
Good thinking! Maybe I should try Rye.

Obviously you could use all of the upper nibble as flags giving four sets of special cases if you set them as individual bits. By using the upper nibble as a value then fifteen special cases would be available.

One complication, there is always at least one,

TableIn=PORTA & %00110011

TableIn is reset every time and the bits are manipulated. Obviously there is a workaround. More thinking is required, or Rye?