PIC power supply basics


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2013
    Posts
    7

    Default PIC power supply basics

    Can anybody help this newby please.
    I have studied a few datasheets and other docs, forums and FAQ's, but I just end up with more questions than answers.

    I get from a Microchip document that the 12V VPP is supposed to be some kind of pulse.
    Now assuming that the 5V VDD is a continuous smooth voltage (and I am not sure), how can the DIY programmers that are posted all over the web, draw these two voltages from the same comms pin?

    I tried to program a PIC16F690 with the simple "walk.hex" but while the chip verifies OK, it will not program. I think it has to do with the power supplies.
    When I try to read, I get "Read error or chip empty". It is a new chip, but should it not at least read the device ID from memory?

    I get power from the serial pin 3:
    Via 4.7 K to VPP
    Via 7805 IC to VDD with 10uF on chip side and .22uF on computer side.

    I will probably end up buying an entry level programmer from RS , but I would like to play around a bit first.

  2. #2
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    Do a search on PIC programmers - there are plenty of designs documented here. But honestly you'd be far better off to buy a proven programmer before trying to write code and test it with an unknown quantity.

  3. #3
    Join Date
    Nov 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    Thank you Charlie

    I agree, there are far too many pitfalls for comfort and an entry level, off the shelf unit is cheap, tested and probably comes with instructions and notes on different chips.

    Thing is, I am kind of inquisitive and DIY helps me understand things better. It is also about the satisfaction in getting a self-built thing to work. As said, I will eventually buy a programmer -
    probably December (bonus month), but not until I at least understand the power supply requirements.

    It would help me (and probably some other newbies also) if we can get a discussion going here on the 2 power supplies only. Things like: "Vpp is raised to 12V to put the chip into programming/verification mode.
    The chip itself generates the required HV pulse during programming." would be helpful. [comments in quote not necessary factual]

    I did some more reading. With the "Vdd first" method, Vdd can have 5V all the time. This leaves only Vpp that requires switching. Brings me back to my first question. Is it possible that these home-brew programmers rely on
    a capacitor to smooth out the switched 5V to a continuous voltage, or are they using the Vpp first method?
    On my contaption so far (Vpp and Vdd from same comms pin), I can see the LED on Vdd switching during transfer. This does not seem right to me. (Unless it's Vpp first).

    So my next step is to hard wire Vdd from an external, regulated 5V. Next, I want to see if I can also use external 12V, switched by the comms port via a transistor to Vpp.
    Will have to do some reading to get the transistor circuit right. NPN? PNP? and will BJT rise time be fast enough? Another option I am thinking of is a 4066 or similar bilateral switch. Going to look for datasheets on that now.
    Last edited by shottootto; - 12th November 2013 at 09:07.

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    Last edited by Archangel; - 12th November 2013 at 09:23.
    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.

  5. #5
    Join Date
    Nov 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    Nice toys, Archangel.

    I was also inspired by the JDM post. Problem is, I tried to get smart and substituted the zener for a 7805 (have a bunch of those).
    Maybe it's better to try the wheel round first before testing if square works!
    On that JDM post again. How in the world does he get such a nice PCB using the iron-on process. I was doing that years ago and even started using magazine paper way back as my own idea(now suggested all over).
    The color fliers dished out at traffic intersections also work well.

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    Most so called RS232 serial ports don't put out the presumed 12 Volt supply nowadays.
    A programmer that requires it, won't work with a 5 Volt serial port.
    A 12 Volt supply can be produced with a buck converter the way that
    a max 232 provides a real RS232 serial port for a pic with a 5 Volt supply.

  7. #7
    Join Date
    Oct 2013
    Posts
    1


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    when the PIC microcontroller can operate from a power supply voltage in the range 2 to 6V. The supply voltage in digital in digital electronic circuits is +5v and this is the voltage with which the PIC microcontrollers are mostly operated. and it is not possible to obtain 5v using standard batteries only. which gives 4.5v and this is not enough to power logic circuits. Thanks!!!!!!!

  8. #8
    Join Date
    Nov 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PIC power supply basics

    I got my programmer to work. It is the David Tait classic printer port programmer. I am using an ATX computer power supply which is common ground for 5V & 12V.
    Both voltages are switched by the programmer using small PNP switching transistors. These are then inverted in the software setup to supply VDD & VPP.
    Probably because of the common ground, I found by trial & error that I had to move the 2X series diodes from PS ground to PS 12V. I am not sure that these are needed in my setup, but it works so no changes for now.

    I have done about 8 program runs and had no failures.
    Last program was a "LED walk" from PORTC-0 to PORTC-6 which I adapted from a PORTC-0 flash asm program.
    It programmed first time fine. Only worked from second time due to code bug. For some reason the BTFSC & BTFSS commands works inversely to my logic!

Similar Threads

  1. 12bit Power Supply
    By ztoti in forum Adverts
    Replies: 19
    Last Post: - 15th October 2014, 23:29
  2. Switch mode power supply Pic Micro
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th July 2009, 13:11
  3. power supply help ?
    By iugmoh in forum Schematics
    Replies: 10
    Last Post: - 27th February 2009, 20:01
  4. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 17:05
  5. Decent 24 volt Pic power supply
    By rwskinner in forum Schematics
    Replies: 7
    Last Post: - 18th December 2006, 12:27

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts