Ok iam done upgrandind my board. And writted program, but still its not goodYes. Right now, you have both IR2110 SD (shutdown) pins wired to ground.
You should wire them together, and connect them to an output pin on the PIC.
Otherwise, you will likely burn up MOSFETs.
When you first enter the program, put SD high; that will turn off all of the MOSFETs.
It would be a good thing to raise SD before changing the state of 0 or 1, and then lowering SD again. Unfortunately, it is not clear how long these PICbasic Pro instructions take to execute. It would be best to wait just long enough to ensure that the MOSFETs were turned OFF before proceeding. The shortest built-in time delay you have appears to be 1ms.
still now working, i think before to do pwm i need to change one port for example HIGH PORTB,0 and when use PWM.' RB0 and RB1 are for PWM
' RB2 is for SD
ANSEL = %00000000 ' All pins changed from analogue to digital
OSCCON = $60 ' Internal clock setted to 4Mhz
TRISB = %00000000 ' All PORTB pins are outputs.
HIGH PORTB.2 ' Turn on sd pin to shutdown ir2110
start:
Pause 100 ' Delay for 100ms waiting for mosfets to settle
low PORTB.2 ' Turned off sd pin
Pause 100 ' delay 100ms
PWM PORTB.0,242,255 ' Pulse sent to PORTB.0 at a duty 'value of 242(95% duty cycle) for 255 cycles.
PWM PORTB.1,012,255 ' Pulse sent to PORTB.0 at a duty 'value of 12(5% duty cycle) for 255 cycles.
PAUSE 100
PWM PORTB.0,127,255 ' 50%
PWM PORTB.1,127,255 ' 50%
PAUSE 100
PWM PORTB.0,012,255 ' 5%
PWM PORTB.1,242,255 ' 95%
PAUSE 100
PWM PORTB.0,127,255 '50%
PWM PORTB.1,127,255 '50%
PAUSE 100
GOTO start
END