Page 1 of 1

FastPWM and SPI

Posted: Fri Feb 11, 2011 5:25 pm
by brad
Hi,

I want to use my sub20 for concurrent SPI and PWM. I am hoping to get more information about the hardware's use of the SPI pins for the "Fast PWM." Is it possible to put the fast PWM on a different set of GPIOs so that SPI and Fast PWM can be used concurrently... or is this MCU hardware limitation?

thanks,
Brad

Re: FastPWM and SPI

Posted: Fri Feb 11, 2011 7:41 pm
by xol
Fast PWM output are sharing SS2,SS3 and SS4 SPI pins. This pins are slave select. They are not vital for SPI functionality and you can run fast PWM at the same time you run SPI transactions. For slave select you still have SS0 and SS1 available. If you do need mode then 2 slave selects you can use one of the GPIO instead of SS2..4.
OK?

Re: FastPWM and SPI

Posted: Fri Feb 11, 2011 8:13 pm
by brad
Thanks for the quick response. Sounds like it will work as I only need SS0 (for now). I didn't know if the SPI and fPWM were sharing resources on the MCU, sounds like they are independent apart from the pins.

-brad