The only way you can have a PIC do more than one thing at a time is to have part of it done with hardware and the other in code. Sounds like you are going to need to use a timer so it might be doable.
Look at interrupts in general and DT's instant to be specific for ideas.
But do not be embarrassed to tell us about your project, unless...![]()
Bookmarks