Very rookie question


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2005
    Posts
    28

    Default Very rookie question

    Question about bootloaders. If I'm programming using the EPIC programmer and ICSP connection, do I have to have a bootloader loaded? Do I have to use the

    DEFINE Loader_used 1

    statement?

    I'm having a hard time finding basic info on the bootloader concept.

    I'm using PBP/MCSP/Epic on 16F876 and 877A parts (trying to, anyway)

    Thanks

  2. #2
    Join Date
    Aug 2005
    Posts
    95


    Did you find this post helpful? Yes | No

    Default Yes

    Its yes to both your questions. Ive just started to play with boot loaders myself.

    Sphere...

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Let's make things clear...

    Once you load the Bootloader firmware in the PIC using ICSP with EPIC.. you'll no longer need the EPIC... just the Bootloader circuit in the MCS Help File. You'll program your PIC with that circuit Via your RS-232 (DB9) Pc connector.

    Yes you'll need to use DEFINE BOOTLOADER_USED 1 line at the top of your code if you use Bootloader... not if you use ICSP with EPIC
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Apr 2005
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    There are three ways to get a compiled program (hex file) into a Pic chip using a EPIC Progammer

    1.)Plug the chip into the programmer board, this assumes that the chip is compatable with the board, i.e. Pin count and pin layout see MElabs website for information.

    2.)Using an adapter which is intended to plug into the 10 pin header on the EPIC board, these adapters are sold by Melabs for use with chips which are either not physically able to plug into the socket on the EPIC board or the chip has a pin layout that is different than the PIC16F84(A)

    3.) The 10 pin “ICSP” In Circuit Serial Programming header, the header carries the same signals that the 18 pin on board socket uses, 5V+, Vpp (goes to MCLR), PGD (Programming data goes to RB7, Pin 13 on PIC16F84(A) ), PGC (Programming Clock goes to RB6, Pin 12 on PIC16F84(A)) and GND.
    See http://www.melabs.com/support/icsp.htm

    This type of Programming DOES NOT require the use of bootloader or the use of DEFINE Loader_used 1

    Bootloading is a different animal, in short it is composed of two pieces of software one which goes on a PC and allows you to program a PIC using only a SERIAL connection between the PC and the PIC. The second piece of software gets programmed into the PIC and thereafter allows the PIC to be programmed thru the PIC’s USART. Not ALL PICs have the required built in hardware to be compatable with a Bootloader. Only programs which are being loaded, burned, programmed into a PIC by way of a bootloader would require DEFINE Loader_used 1

  5. #5
    Join Date
    Oct 2005
    Posts
    28


    Did you find this post helpful? Yes | No

    Default

    Thanks Mike. I use the EPIC and have designed my circuit boards with the 10 pin header for programming.

    If I maintain this setup, I understand that the bootlader is not required.

    Thanks for the tutorial.

    Duncan

Similar Threads

  1. Rookie question
    By sacastil in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2008, 19:05
  2. Remote PIC input question
    By Adrian in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st September 2007, 15:44
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  5. Rookie question.. What is this @device command please?
    By David Marks in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st February 2005, 14:59

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