You'll need to have PBP 2.50 for this series of chips.
Code:OSCCON = %01110001 ; Internal 8 mhz Osc ANSEL = 0 ; All Digital ANSELH = 0
You'll need to have PBP 2.50 for this series of chips.
Code:OSCCON = %01110001 ; Internal 8 mhz Osc ANSEL = 0 ; All Digital ANSELH = 0
DT
Thank you Darrel,
I have PBP 2.47 - in Microengineering labs homesite they declare that PBP 2.47 can compile F886 ???
Have used PIC16F88, but need more I/O so decided to try F886 but have real problem with config word
@ DEVICE PIC16F886, INTOSCIO,WDT_OFF,MCLR_OFF,LVP_OFF,PROTECT_OFF,BOD_ OFF,CPD_OFF,IESO_OFF,FCMEN_OFF,PWRT_OFF
So I have to update to PBP 2.50 - will do that soonest possible.
Can I compile in MPASM and then use the file?
Thanks again
Last edited by Bosse; - 22nd August 2008 at 19:55.
Oh, oops. Yes 2.47 will do.
What kind of problem are you having with the config? Looks ok to me.
<br>
DT
Hi Darrel,
Always get a lot of messages that the config is not correct.
Now I have decided to use Crystal and will be very greatful for help with configuration word(s)
Have used a PIC16F876A before without any problem, think it can be that the F886 have 2 config words????
Are you using the default PM assembler, or MPASM?
For PM, the CONFIG2 word is set using the DEVICE2 pseudo-op. But not setting config2 will not cause an error. And your DEVICE line above looks OK (if using PM).
If you are using MPASM then it would be ...Of if you're using a crystal now, replace _INTOSCIO with _XT_OSC or _HS_OSC.Code:@ __config _CONFIG1, _INTOSCIO & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CPD_OFF & _FCMEN_OFF & _IESO_OFF
Don't forget to comment the config line in the 16F886.inc file in your PBP folder.
<br>
DT
Hi Bosse:
If you are using the port A as digital, you will need to disable too the
comparators.
CM1CON0 = 0
CM2CON0 = 0
Greetings...
Ruben de la Pena V.
Thank you very much Darrel and Ruben,
I use PM assembler. Have decided to use a ceramic resonator (20 MHz)
Wants ALL DIGITAL if possible.
Will try your configuration recommendations
Thanks again
Bosse
Bookmarks