Many years ago I learned how to program a PIC to be a multifunction timer but the program was very basic. It would monitor a bank of switches and run a set time sequence depending on what switch was active.
It could only ever run one timer sequence at a time.
I would like to start another project but this one would involve running two routines independently of each other and I do not have a clue where to start.
(example: if button A is pressed, output a time sequence on pin 1, at the same time still monitor button B. If button B is pressed output a separate time sequence on pin 2)
Can anyone suggest any sample code I could study to learn such things?
Sorry for asking such a basic question but I have not kept up with my programming ...... I can't use the word "skills".
It could only ever run one timer sequence at a time.
I would like to start another project but this one would involve running two routines independently of each other and I do not have a clue where to start.
(example: if button A is pressed, output a time sequence on pin 1, at the same time still monitor button B. If button B is pressed output a separate time sequence on pin 2)
Can anyone suggest any sample code I could study to learn such things?
Sorry for asking such a basic question but I have not kept up with my programming ...... I can't use the word "skills".