USB support features of PiCs...


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: USB support features of PiCs...

    As for the "why can't we program directly from USB" the easy answer is there are more than just PGD and PGC. The programmer also plays with MCLR, Vcc and GND. If you look at the ICSP part of the datasheet - any datasheet for PIC's, you will see there is more going on. Walter eluded to being able to program from USB, but he is talking about bootloaders. That way it is possible, but the bootloader still needs to get in the chip somehow.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: USB support features of PiCs...

    Quote Originally Posted by cncmachineguy View Post
    ....but the bootloader still needs to get in the chip somehow.
    Unless you are using a chip that has a hardware bootloader built into device itself. Unfortunately, none available from MCHP.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  3. #3
    Join Date
    Oct 2010
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: USB support features of PiCs...

    Thanks for your answers and care, i ve read all
    lets assume that we'r using Vdd, Vpp, Gnd. D+ and D- from usb port. do we still need a bootloader? because as i know bootlader is like a manual for writing program to pic. thus we can do it with using our computer via usb.

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: USB support features of PiCs...

    Quote Originally Posted by grimmjow View Post
    Thanks for your answers and care, i ve read all
    lets assume that we'r using Vdd, Vpp, Gnd. D+ and D- from usb port. do we still need a bootloader? because as i know bootlader is like a manual for writing program to pic. thus we can do it with using our computer via usb.
    Yes, we still need a bootloader to be loaded into some of the code space of the chip. Otherwise, there will not be anthing telling d+ and d- how to communicate, which registers to use, what memory to use, where to write on the chip, how to listen to the PC, etc, etc, etc. Even the PicKit is pre-programmed with code, so it can communicate and write to the chips.

    It's kind of like this: Take your PC, then pull out the bios chip (can you even do that anymore?). Then try to start it up. Is it running? You still have a hard drive plugged in. All the hardware is there, but it doesn't work because nothing is telling them what to do.

    Just what is it you are trying to do?
    Last edited by ScaleRobotics; - 2nd March 2011 at 01:02.

  5. #5
    Join Date
    Oct 2010
    Posts
    12


    Did you find this post helpful? Yes | No

    Post Re: USB support features of PiCs...

    Quote Originally Posted by scalerobotics View Post
    Yes, we still need a bootloader to be loaded into some of the code space of the chip. Otherwise, there will not be anthing telling d+ and d- how to communicate, which registers to use, what memory to use, where to write on the chip, how to listen to the PC, etc, etc, etc. Even the PicKit is pre-programmed with code, so it can communicate and write to the chips.

    It's kind of like this: Take your PC, then pull out the bios chip (can you even do that anymore?). Then try to start it up. Is it running? You still have a hard drive plugged in. All the hardware is there, but it doesn't work because nothing is telling them what to do.

    Just what is it you are trying to do?
    first of all, thank you for your care and patience.

    Actually i am not trying to do something, i am just trying to understand the point of using other integrated circuits (like 18f2550) in pickit programmer. i was thinking "if we can write programs on other pics by using bootloader on 18f2550, why cant we do it by our computer? 18f2550 is just an interface on pickit programmer board and we can create this interface virtually on our computer."

    but thnx to you understood the point.
    thnx everyone who had spent their precious time for my questions.

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: USB support features of PiCs...

    Quote Originally Posted by grimmjow View Post
    i am just trying to understand the point of using other integrated circuits (like 18f2550) in pickit programmer. i was thinking "if we can write programs on other pics by using bootloader on 18f2550, why cant we do it by our computer? 18f2550 is just an interface on pickit programmer board and we can create this interface virtually on our computer."
    There are some programmers that almost do this. They use the parallel port on the computer to program the chip. But it still needs a little hardware to bring the chip up to programming levels, etc.

    Hopefully my bios example made some sense. Despite the chip having hardware, without code to set configure the chip, and code to tell the chip what to do with the hardware, nothing will happen.... Unless you have a programmer, like the pickit2 that puts a programming voltage to MCLR and send the bits into the chip using ICD programming port. Or load some software on the chip that sets up its hardware, and bootloader code that runs on the chip, letting it program its own code space.

    And by the way, there are many older chips that do not allow programming their own code space, so these will never be able to use a bootloader, and you must program them with a programmer.

    Walter

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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