Connect with us

PIC programming

Discussion in 'General Electronics' started by foo, Jan 10, 2004.

  1. foo

    foo Guest

    I'am trying to program a PIC-processor (18F452) with a icsp circuit
    connected to the serial-port of a PC. I have written a program that
    can program the code-memory and read the data-memory but not program
    the data-memory. I'am following the description in the datasheet but I
    get only one of the bytes programmed, with the wrong value.

    I think that there can be something wrong the WR-bit check (the
    datasheet p. 17). I don't understand how to check the WR-bit. Should
    you read bits from the data-pin and abort when the bit is clear? I get
    only 0xFF.

    Do anyone have any suggestions?
     
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-