Go Down

Topic: Timer interrupts disabling USART serial comm. (Read 309 times) previous topic - next topic

Stephen8

I am using Timers 1, 3, 4 and 5 to generate background waveforms by toggling pins in their respective ISR routines.  However, I found that this interferes with the Serial.read() function... which I need to receive Timer OCRAn values to modify the waveforms on the fly.

Does anyone know if there is a way to write my own Serial ISR and give it a higher priority than the Timer interrupts?

When I utilise USART2 directly and use my own ISR routine, avrdude claims the interrupt vector is already defined and my code will not work.

Any help would be appreciated.

sm

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy