Can anyone please help me with configuration with PIC16F886- Want to run INTERNAL OSC 8 MHZ - ALL DIGITAL.
Bosse
Can anyone please help me with configuration with PIC16F886- Want to run INTERNAL OSC 8 MHZ - ALL DIGITAL.
Bosse
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 18: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! 16f886 to write to the configuration settings of the pbp?
Bookmarks