Hi!
i got hold of Microchip PICDEm MC LV board with 3-phase BLDC motor.It has a CD that conatins source code in assembly. I was wondering if someone has done same thing in pic basic i.e used power PWM module of 18F4431.I tried according to application note but to no avail. Here is my code.could someone point me out in right direction.some code snipet would be appreciated.
thanks
while true
PTCON0=00000000 'page 8,step 1
PTPERL=$37 'a guess
PTPERH=$01
PWMCON0=01001111 'step 3
PWMCON1=00000001 'step 4
DTCON=00000000 ' a guess
OVDCOND=00000000 'step 6
OVDCONS=00000000
FLTCONFIG=00000000
'POVD=00000000
'SEVTCMP=$0000
'step 8
SEVTCMPL=$00
SEVTCMPH=$00
PDC0L=$00
PDC0H=$00
PDC1L=$00
PDC1H=$00
PDC2L=$00
PDC2H=$00
PDC3L=$00
PDC3H=$00
TRISC.0=1
PTCON1=10000000 'or PTCON1.7=1
wend
Bookmarks