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 /MCLRthere 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]
See also:
file: /Techref/microchip/16F877/progmodes.htm, 2KB, , updated: 2002/11/1 18:03, local time: 2024/11/5 04:44,
3.15.25.34:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 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://linistepper.com/Techref/microchip/16F877/progmodes.htm"> microchip 16F877 progmodes</A> |
Did you find what you needed? |