I am microcontroller stupid!!
Yes, that's how you do it, as long as it's indented. Looks like the forum takes out the formatting.... so you probably had it perfect to begin with...
But the rest is perfect!Code:#CONFIG __config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF #ENDCONFIG
Except the 45K20 will want it in this format:
Code:#CONFIG __CONFIG _CONFIG1H, _FOSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L #ENDCONFIG
Last edited by ScaleRobotics; - 10th August 2011 at 00:11.
OR anything else list in the p18F45k20.inc file with the new CONFIG directive
Code:#CONFIGCONFIG FOSC = INTIO7, FCMEN = OFF, IESO = OFF, PWRT = OFF, BOREN = OFF CONFIG BORV = 18, WDTEN = OFF, WDTPS = 1, MCLRE = ON, HFOFST = ON CONFIG LPT1OSC = OFF, PBADEN = OFF, CCP2MX = PORTC, STVREN = OFF CONFIG LVP = OFF, XINST = OFF, CP0 = OFF, CP1 = OFF, CP2 = OFF CONFIG CP3 = OFF, CPB = OFF, CPD = OFF, WRT0 = OFF, WRT1 = OFF CONFIG WRT2 = OFF, WRT3 = OFF, WRTB = OFF, WRTC = OFF, WRTD = OFF CONFIG EBTR0 = OFF, EBTR1 = OFF, EBTR2 = OFF, EBTR3 = OFF CONFIG EBTRB = OFF#ENDCONFIG
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
All config are now also available in
C:\PBP3\DEVICE_REFERENCE
for each device, you have a .INFO file
Slick!
Well, Section 4.9 of the manual will explain...
Last edited by mister_e; - 10th August 2011 at 01:55.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Just wanted to think you guys for your help. I never did get it to work, however I think I have decided to not purchase the PBP3. My trial is about to expire anyway.
The main reason for not purchasing it is due to the price. I also just learned that the PBP3 gold edition is the only one that will support my pic18f45k20 debug kit and I feel like the gold edition is really more then I need. I think the product is outstanding though, but for a hobbiest, its more then I want to spend. I have some other hobbys that I need to use the money for. I have decided to try and find another solution.
Im sure I can take what Iv learned here and apply it.
Thanks again
I am microcontroller stupid!!
Bookmarks