You got analog all to heck on port B, shut off the comparators and don't forget anselh
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?
I’ve tried ANSELH=$00 with the same results. In fact BOR was also Enabled along with a few other items. It did set internal osc at 8Mhz with clockout at 2Mhz.
I used the code file on different computers. One with 2.60 and the other with 2.46. And yes I clicked the C radio button to take a look at the Configs.
I think I’ll try reloading 2.60 on the computer to see if there are any changes in results.
If you're doing this on two different PCs, it may be that you just have different settings for the MeLabs programmer. Make sure you have Options >> Update Configuration From File checked on the 2.60 machine. That sounds like the problem.
You previously programmed it with LVP_ON, and it's not updating config settings.
Bruce,
I've checked both computers. Both computers were set to "Update Configuration from file". 2.46 Config default option was set to LVP_off. 2.60 was set to LVP_on. I changed that setting and recompiled with the same results, LVP is NOT turning off on 2.60.
I got it. I was not saving the new default setting on 2.60. There is still the issue of why the file was not recognized when default setting on the programer was set to "Update Configuration from file". However 2.60 is now turning off LVP as it should, but only because the default LVP was changed.
I learned a lot about PBP defaults and LVP. I also was unaware that I could have a digital out put with an analog input (ANSELH), at least that what I got out of reading the datasheet on ANSELH.
Thank you all for your assistance.
Last edited by MOUNTAIN747; - 9th February 2010 at 22:38.
Bookmarks