CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LVP

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

LVP
PostPosted: Sun Jan 23, 2011 1:32 pm     Reply with quote

Often a question arises in my mind. Why PIC offers two type of Programming on a same Chip.

a) Standard programming with Vpp 12v.
b) and Low Voltage Programming.

And if a Chip has LVP which req only 5volt level and 3 PINs
then why we have to make Vpp 12v??
_________________
...
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Jan 23, 2011 1:39 pm     Reply with quote

One reason is for 'legacy' purposes, so old guys like me with 'old style' programmers can still carryon....

also, but more importantly..

If set to LVP, that pin cannot be used for general purpose I/O ! Not a big deal on a 40 pinner....but on a 8 pinner(12F683) that can be BIG trouble !!
Details are in the datasheet ,look for ICSP chapter....
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Jan 24, 2011 9:45 am     Reply with quote

Part of LVP comes from the ability for the chip to self program.

Once they added that, it would have been easy to make it available from outside. So they did.

now, with one feature (being able to have bootloaders), they can also now put PIC's in a system where another controller can reprogram this controller.

Pretty much like an FPGA. I've worked on FPGA projects where the FPGA is going timing critical work for a 400MHz Intel Xscale CPU. The "firmware" for the FPGA was sent at bootup by the Intel CPU and was kept on disk.

You could now do the same with PICs.

Pretty cool.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Mon Jan 24, 2011 10:30 am     Reply with quote

Pins, and security.
It is very rare to have enough pins on a PIC. LVP, costs too many pins, even on a 64pin device!....
Also, there are things that you can do with high voltage programming, that you can't with LVP. If you are securing the device, you have to perform a high voltage erase, before you can program it again. Most commercial users _will_ be securing the chips.
You no longer actually have to generate Vpp. On the early chips, you supplied the programming current (often quite a few mA needed). On modern chips you only have to provide a 'reference' voltage, at the higher voltage, and the chip then generates the internal Vpp to match this. Generating the required voltage a few uA, is easy with a charge pump.

Best Wishes
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Jan 24, 2011 10:32 am     Reply with quote

Ttelmah wrote:
Pins, and security.
It is very rare to have enough pins on a PIC. LVP, costs too many pins, even on a 64pin device!....
Also, there are things that you can do with high voltage programming, that you can't with LVP. If you are securing the device, you have to perform a high voltage erase, before you can program it again. Most commercial users _will_ be securing the chips.
You no longer actually have to generate Vpp. On the early chips, you supplied the programming current (often quite a few mA needed). On modern chips you only have to provide a 'reference' voltage, at the higher voltage, and the chip then generates the internal Vpp to match this. Generating the required voltage a few uA, is easy with a charge pump.


Yep.

I don't know why they added the LVP pin. I've never used it. It would be an interesting question to ask engineering at MCHP.

I can see HOW it might be useful. I just don't see it as useful. :D

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 24, 2011 3:09 pm     Reply with quote

'they' added it , cause they're 'engineers' ? and convinced marketing it'd be a great thing !

Probably the same guys that gave Ford the 'flaming F150' master cylinder pressure switch !!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group