Add LVP_OFF to your config settings.
Add LVP_OFF to your config settings.
Last edited by Bruce; - 8th February 2010 at 22:11.
Thanks for your reply Bruce.
No dice! I thought that would do it also. Once I pull the ground wire off RB3 the LED continues to blink for about five seconds then stops.
There is also another strange thing going on. PORTA.6&7 when in digital output state drivers only 2.4V unloaded then drops to 1.3 & 1.9 respectfully under LED load. I’ve turned off everything I can think of that deals with OCS1&2.Code:@ DEVICE INTRC_OSC_NOCLKOUT,MCLR_OFF,BOD_OFF,WDT_OFF,LVP_OFF OSCCON=$70 ANSEL=$00 ADCON0=$00
This is for MPASM..
Notice the E on MCLR ECode:@ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF
Dave
Always wear safety glasses while programming.
If only RB3 causes your problem, then I suspect you're simply not getting LVP turned off.
It would really help if you posted your code.
You got analog all to heck on port B, shut off the comparators and don't forget anselh
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
So here’s the scoop! I’ve tested this on multiple F886 and on multiple programmers with PBP2.60 and PBP2.46.
Bruce your right!
PBP 2.60/melabs programmer 4.23“If only RB3 causes your problem, then I suspect you're simply not getting LVP turned off.”
Program, Read Code, View – ConfigurationCode:@ DEVICE INTRC_OSC_CLKOUT,MCLR_OFF,BOD_OFF,WDT_OFF,LVP_OFF OSCCON=$70 ANSEL= $00 ADCON0= $00 CM1CON0 =$00 CM2CON0 =$00
Low Voltage Programming --- Enabled
Must tie RB3 to Vss ... Remove Vss on RB3 MCU stops after about 5sec.
Digital output voltage on RA7 low
PBP 2.46/melbas programmer 4.23
Same code
Program, Read Code, View – Configuration
Low Voltage Programming --- Disabled
No Vss needed on RB3 ... Digital output voltage on RA7 correct
Hobbyist was near wits end! Now What?
Hmm. That is an interesting problem.
Try this. Save the file you're compiling in your 2.60 directory with one name, and save
a 2nd copy of the same file in your 2.46 directory with a different name.
Compile the one with 2.60. Open it with your MeLabs programmer software, and click on
the C radio button. You should see a screen with config settings like the one I have
attached.
Now open the file in your 2.46 directory, and repeat. Are config settings the same?
Bookmarks