This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Programming EPROM

I'm using the MCB251 board with the Intel 80C251SB CPU.

I'm trying to program an EPROM using the hex file that uvision creates. My project tests fine using the Monitor Eprom with debug but I can't get it to do anything with a user eprom that I programmed.

Any help would be greatly appreciated.

1. Do I have to include the Start251.a51
to my project?

Parents
  • Do I have to include the Start251.a51 to my project?

    Well, in C51 if you don't explicitly include it, the tools will automatically use the default version.
    So, if the default version is appropriate for your target, you don't need to explicitly include it

Reply
  • Do I have to include the Start251.a51 to my project?

    Well, in C51 if you don't explicitly include it, the tools will automatically use the default version.
    So, if the default version is appropriate for your target, you don't need to explicitly include it

Children
  • Well, in C51 if you don't explicitly include it, the tools will automatically use the default version.
    So, if the default version is appropriate for your target, you don't need to explicitly include it


    However, on the 251, the startup code is almost always required because of the 2 configuration bytes.

    If you don't include the startup code, you MUST set the configuration bytes manually with the device programmer or you must create them another way in the EPROM.

    Jon

  • I include the file in uvision but when I program the eprom with the hex file there is nothing at fff8 or fff9.

    1. How would I go about setting
    the configuration bytes manually?

  • How about the following assembly file...

    cseg at 0FFF8
       DB 0F8h
       DB 0D2h
    end
    

    This should put the 2 bytes F8 and D2 starting at address FF:FFF8.

    Jon

  • I finally got he config bytes in but my program still doesn't work.

    I'm trying to get the blinky program that came with the software to work from an eprom.

    I have the DIP switches set as:
    uart-int-off
    uart-ext-off
    src/d2 -off
    page -off
    monitor -off
    51/151 -off
    Map1 -off
    Map0 -off
    A17 -off

    I tried the configuration bytes you sent but it did not work.

    Any help on this will be appreciated.