In a lot of interrupt tutorials/examples, it always says that ISR code must be kept brief. They advise toggling a status bit which is then read in the loop().
Does this not defeat the purpose of interrupts, as the loop() is still polling the status bits? (granted that the overhead to poll a status bit might be considerably less than polling a pin)
Consider the following:
I have a system in which a switch triggers an interrupt. When the interrupt occurs, I wish to perform rx/tx through serial. Is it safe to simply perform the serial rx/tx operations in the ISR? If not then why not?
What are some heuristics when writing ISR’s?
Bonus points for documentation for the newSoftSerial library. I have downloaded the library and the examples are too basic. General documentation would be great