I know first hand that placing the Pause command in any code causes the interrupt service to not respond during the pause.
The problem I have is in a number of places in my code I want to stop to do something for say 500ms. For example an LED would light for 500ms or a timeout in a sub would occur after 30 seconds.
I'm left scratching my head on how to do this. Although pause is easy and works because this device is a node I want the host PC to be able to communicate with it whenever it wants.
Am I expect too much? What would be a good approach?
Bookmarks