Hello Folks,
iīm trying to get my favorite PIC18F1320 to give out two different HPWM duty cycles with the same frequencies . The Duty cyles differ wildly and are not correspondent. I read the data sheet and couldnīt figure out which pin relates to which HPWM Channel. I searched through the forum
and was more confused than before.
I ran one single HPWM channel successful on a PIC16F88 but two on a PIC18F1320 seem way more complicated.
DEFINE CCP2_REG PORTB
DEFINE CCP2_BIT 3
that should be PortB.3
Is there a CCP1_REG PORTB ?
I Know with 40 MHz minimum frequency is 2442 Hz and
CCP1CON=1
Thats the end of my knowledge about HPWM configs.
Iīm dreaming of:
HPWM 1,duty1,2442
HPWM 2,duty2,2442
regards
Mugelpower
Bookmarks