Hi,
DEBUG uses software delays to bitbang the serial stream out. When using interrupts they will disturb the timing of the bitbanged serial stream. It's not specific to the SPWM routines you're using. Either use a PIC with an USART and use HSEROUT instead of DEBUG or you need to temporarily disable the interrupts while sending your data with DEBUG.
/Henrik.
Bookmarks