Quote Originally Posted by Joe S. View Post
what does = 50 do exactly?
Does it give you a 16 byte array all having the value of 50?

Hi Joe,

50 would be the duty cycle of the PWM. In this example the SPWM_INT duty cycle was setup to be 0 - 100 so 50 would be roughly 50% at 100 Hz. See Below

DEFINE SPWM_FREQ 100 ; SPWM Frequency = 100 Hz
DEFINE SPWM_RES 101 ; SPWM Resolution = 0-100