Raymond... I had a similar experience. Also, if you wish to use RAi as digital I/O pins, then deselect the A/D converter since POR assigns some of the RA pins to the A/D...i.e. reassign them as general digital I/O if not using with A/D via ADCON1. Phil On Thursday, May 11, 2000 1:54 PM, RAYMOND WILLCOX [SMTP:markwillcox56@HOTMAIL.COM] wrote: > Hi all > I am a newby to pic and I recently started using/learning P16f873. I had > a problem on PortB output. Microchip docs say to set B3/LVP to off in > configuration file and this will make all porb = outputs. I tried this: > __config _LVP_OFF & _etc_... and it didn't work. I was using a free DOS > based compiler which did not have a pull down configuration menu so I > couldn't access the config file. Finally, I got and used a picstart+ with > MPLAB, VOILA! > A big configuration pull down menu right there in front of me! and what did > it say? Low Voltage Programming (Enabled/Disabled). I set LVP = Disabled, > compiled the code and went to the bottom of the listing page to see what I > could see. There in big letters I see _LVE_OFF! > I quickly edited the __config file to _LVE_OFF and re-compiled the code > and it worked great. My problem was solved. Microchip docs don't say > anything about LVE only LVP(must have been a typo). So I want to share my > kernal of knowledge with the rest of you that may have the same or similar > problems. When it seems all is lost and nothing makes sense, go read the > list page on the compiled code and see if the __config commands match what > the Microchip docs say(you may be supprised). Anyhow, to wind this up, use > _LVE_on/off instead of _LVP_on/off. > > Happy PICn, Mark > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com