I have an Atmega644p which is connected over SPI to a MCP2515 can-controller. In the MCU I use time based interrupts to send messages to the can-controller, which he translates and sends onto the canbus. I also use an external interrupt to tell the MCU when a message needs to be read out of the can-controller.
What I wish to do now is, generating with the same MCU a PWM signal. My question is following, is there another way then time based interrupts to create one PWM output on the MCU? Aswell the other interrupts may not stop the PWM output. Is this possible? or should I use some kind of PWM driver for this?
Kind regard, Toon