i've come out with manually pwm generator coding.this is my code:
DEFINE OSC 8
TRISC.2=0
PWM_STATUS VAR PORTC.2
MAIN:
HIGH PWM_STATUS
PAUSEUS 4
LOW PWM_STATUS
PAUSEUS 4
GOTO MAIN
END
total time per cycle=4u+4u=8us...so...f=125khz...i hope this will work.i will tested it today...
Bookmarks