18F4620 Half Bridge HPWM
Hello my friends,
I would like to drive two mosfets which are built Half Bridge. The code written with Proton is below. The real circuit on the board is tried but the result is negative. Only P1A is OK.
Thank you from now. Regards.
Device = 18F4620
XTAL = 20
ALL_DIGITAL true
CCP1CON = %00000000
Output PORTC.2
Output PORTD.5
CCP1CON = %10001100
PWM1CON =%10100010
test:
HPWM 1,156,100000
GoTo test
End
Hello my friends,
I would like to drive two mosfets which are built Half Bridge. The code written with Proton is below. The real circuit on the board is tried but the result is negative. Only P1A is OK.
Thank you from now. Regards.
Device = 18F4620
XTAL = 20
ALL_DIGITAL true
CCP1CON = %00000000
Output PORTC.2
Output PORTD.5
CCP1CON = %10001100
PWM1CON =%10100010
test:
HPWM 1,156,100000
GoTo test
End
Last edited: