Hello Everyone. I am migrating from a 16F819 to a 16F88 for more codespace. I've used the HPWM command on the 16F818 without any problems. I've adjusted the top of the code to try making the 16F88 have the PWM output on portb.3 but it always comes out on portb.0 regardless of my DEFINE statement. Does anyone know what I'm doing wrong? Thank you.
OSCCON = $60 'set int osc to 4mhz
ANSEL = 0 'all inputs digital
TRISA = %11111111
TRISB = 0
PORTB = 0
@ DEVICE MCLR_OFF, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_ON
DEFINE CCP1_BIT 3 ' TRYING TO GET PWM ON RB3. IT DOES WORK BUT 'ALWAYS COMES OUT OF RB0
Pause 500
START:
CCP1CON = 0 'TURN OFF PWM
NAP 4
IF PORTA.1 = 0 Then blah blah '
GoTo START
Bookmarks