I have wrote the flowchart but now im stuck
ie where next
for a 12c508A ?
All it is is a time based switched depending on input.
you press a button it starts normally
you press the same button for 5 seconds and it operates a switch (gate ?) (inside the PIC not hardware) thus switching the state of the machine (this state stays like this until the button is pressed again for seconds).
Have i said enough ??
As i said this is probably small fry to good programmers - ive trawled the net for a couple of hours for examples. I do like to learn!! honest!