C embedded – Tips and Tricks

Interrupt Service Routine

"With embedded apps, always keep your interrupt service routines as "short and sweet" as possible. NEVER have pause or delay 
statements in your ISR. Putting debug "print" statements inside an ISR will likely only introduce more problems (trust me). 
When your processor is spending time inside the ISR and another interrupt comes in during that time, bad things can happen 
(side effects may include migraines, hallucinations, screaming into the night and irritable bowels. For ISRs lasting more 
than 4 mili-seconds, seek medical attention at once.)."  Jay D.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

 

Leave a comment