'************************************************* ***************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2008 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 8/2/2008 *
'* Version : 1.0 *
'* Notes : *
'* : *
'************************************************* ***************
' pwm out
ansel0=%00000000
ansel1=%00000000


portb=%00000000 'set port as output
trisb=%00000000 'set all portb pins as output

pr2=155 ' set to get 4khz out
ccp1con=%0001101 'set duty cycle ccp1con <4:5> bits
trisc=%00000000 ' make ccp pin output by clearning trisc<2> bit
t2con =%00000110 'turn on timer2, prescale =16
' set trmr2 prescale value and enable timer2 t2con
pause 1000

portb.6 = 1 'high output
portb.7=1 'high output


pause 2000
loop:
hpwm 0,127,10
hpwm 1,127,100
hpwm 2,127,10
hpwm 3,127,10
hpwm 4,127,100
hpwm 5,127,10
pause 1000
goto loop
end
I'm trying to get the pwm to work but the only pin that light a led is RB2( 6 and 7 work)
Who do I get the rest of them to work?