i want to control 60 pwm-driven leds via serial communication. serial for itself works – the software pwm too. i tried all the timers of my arduino mega but none seems to work with the serial com.
maybe the error is somewhere else? so i would like to know if it SHOULD work with TIMER1.
thanks in advance!
I can only speak for the non mega boards.
Serial I/O + Timer1/2 interrupt works, given the ISR code is short enough. If the cpu has to spend most of it's time serving the timer interrupts, the chance of interfering with serial I/O gets bigger.
i think that's my problem. 56 Leds software-pwm is a bit too much? most of that is happening inside of the isr :(