1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Programming a PIC 12C672

Discussion in 'Microcontrollers' started by sweitzers, Apr 7, 2003.

  1. sweitzers

    sweitzers New Member

    Joined:
    Apr 7, 2003
    Messages:
    2
    Likes:
    0
    I am a new programmer and I have some sample code in .asm and purchased a programmer that came with picallw software. I need a few pointers on how to program the .asm code I have on to the PIC. Any help will be greatly appreciated.
     
  2. Chippie

    Chippie New Member

    Joined:
    Mar 8, 2003
    Messages:
    991
    Likes:
    9
    Location:
    Good 'ole England
    So you got the asm file, compile it with a compiler such as the free one from microchip.....mpasm.

    this will give you a hex file.

    Run the application software for picall, load the hex, put your pic in place on the programmer( remember to set the device parameters, like the pic you are programming) and load hex into pic. QED


    Ask if you are not sure 8)
     
  3. sweitzers

    sweitzers New Member

    Joined:
    Apr 7, 2003
    Messages:
    2
    Likes:
    0
    Got it to compile with Bank Error

    I am having an issue when I compile the asm file. For some reason the code is addressing Bank 0 and not Bank 1 as the code requests. I have read everything and I am coding it correctly but it is still an error. Any suggestions?
     

Share This Page