Hi,
I'm not using a simulator, I just sent the values to the PC and plotted them with EXCEL. Here's the exact code I used to test with:
Code:
DEFINE LOADER_USED 1
DEFINE OSC 20
DEFINE HSER_BAUD 19200
 
i VAR BYTE
T VAR BYTE
uDuty VAR WORD
vDuty VAR WORD
wDuty VAR WORD
 
Main:
For i = 0 to 2   'Make three periods
  T=0
    
   for T=0 to 255
   ' PWM U phase calculation
   uduty=((sin(t)+128)*4)  
      
   ' PWM V phase calculation
   vduty=((sin(t+85)+128)*4)
    
   ' PWM W phase calculation
   wduty=((sin(t+170)+128)*4)
   
   HSEROUT [DEC uDUTY, ",", dec vDUTY, ",", dec wDUTY, 13]
  next
NEXT
WereDone:
Goto WereDone
Try removing C3, C6 and C8 to start with.