Simon Nield [simon.nield at QUANTEL.COM] quotes the data sheets:
"To enter programming mode, VDD must be applied to the RB3/PGM provided the LVP bit is set. The LVP bit defaults to on ('1') from the factory"
[me: VDD means HIGH by the way]
and in the box below that:
"Note1: The high voltage programming mode is always available, regardless of the state of the LVP bit, by applying VIHH to the /MCLR pin."
Now that is a _little_ ambiguous but...CONF RB3 /MCLR LVP PGM VPP mode 0 0 0 normal operating mode 0 0 1 high voltage programming mode 0 1 0 normal operating mode 0 1 1 high voltage programming mode 1 0 0 normal operating mode 1 0 1 ???? [Ed: dispite this looking vague, its the one that works. See Jim Roberston's findings] 1 1 0 low voltage programming mode 1 1 1 high voltage programming mode [Ed: Nope! See Jim Roberston's findings] where LVP = 0 means the bit is cleared LVP = 1 means the bit is set; AS SHIPPED PGM = 0 means 0v/pulldown on RB3 PGM = 1 means 5v/pullup on RB3 VPP = 0 means 5v on /MCLR VPP = 1 means VIHH on /MCLR
there would appear to me to be only one state that is vague. ???? is either high voltage programming mode if you believe Note1 or normal operating mode if you have more faith in the first statement. [Ed: The datasheets are wrong. See Jim Roberston's findings]
|file: /Techref/microchip/16F877/progmodes.htm, 2KB, , updated: 2002/11/1 18:03, local time: 2016/2/9 00:01,
|©2016 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/microchip/16F877/progmodes.htm"> microchip 16F877 progmodes</A>
|Did you find what you needed?|
PICList 2016 contributors:
o List host: MIT, Site host massmind.org, Top posters @20160209 RussellMc, Bob Blick, Peter, alan.b.pearce, embedded systems, Neil, Dwayne Reid, Isaac Marino Bavaresco, IVP, Jean-Paul Louis,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!