Well Steve, that seems to have done it Thank You!!! I'm not sure I quite understand it all but I can work it out I'm sure.
Thanks again.
Well Steve, that seems to have done it Thank You!!! I'm not sure I quite understand it all but I can work it out I'm sure.
Thanks again.
Hi Tim. Maybe this will help you. I believe the following also applys to the 16F88.
'INTERNAL OSCILLATOR VALUES for 16f818/819:
'OSCCON = $00 'for 31.25 khz
'OSCCON = $10 '125khz
'OSCCON = $20 '250khz
'OSCCON = $30 '500khz
'OSCCON = $40 '1mhz
'OSCCON = $50 '2mhz
'OSCCON = $60 '4mhz
'OSCCON = $70 '8mhz
adcon1 = 7 ' set inputs to digital. Using the adcin command will automatically convert the ADC port to 'analog
'OPTION_REG.7=0 ' Switch-ON weak pull-up's on portb
'@ DEVICE MCLR_ON, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_ON
'CCPMX_ON THE @ DEVICE LINE ABOVE SETS HPWM OUTPUT TO RB3, CCPMX_OFF (DEFAULT IF NOT 'SPECIFIED) = RB2
Bookmarks