ROM Emulation


Closed Thread
Results 1 to 4 of 4

Thread: ROM Emulation

  1. #1
    Join Date
    Jan 2009
    Posts
    7

    Default ROM Emulation

    I have been asked to look at a project, he has an old car ECU and want to make the program data easy to change.

    I suggested that we put the code into some flash memory and then alter it from there, the old rom is a 27C128 so its quite small in todays world.

    I am not thinking that maybe I could simply put it all inside a PIC and emulate the ROM from there.

    Anyone seen any other projects like this or have ideas how to emulate a ROM ?

  2. #2
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    14 bit address bus....
    8 bit data bus...
    2 bit chip and output enable.....

    Lots of pins already, but it could be done. You would need to monitor the OE and CE pins and then read the address and put the appropriate byte on the data bus.
    It might be easier to write or find some software to change the settings you are interested in and then write back to the rom. It is fairly easy to make a simple programmer for these devices.

    Do you know where the data you want to change resides on the rom, which addresses? You could use a pic to program just those addresses with the new bytes you need.


    Paul
    +-------------------------------------------------------------------+
    | PBP 2.47/2.50 | MCS+ 3.0.0.5 | U2 Prog | Vista x64 | NO SLEEP!!!!!!! |
    +-------------------------------------------------------------------+

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Red face

    Hi,

    I'm not really sure ... BUT

    something like this was done by the Honda Civic enthusiasts. But they change the EPROMS manually ...

    Now ... something also has been done with PICs and RS 232 ... But the Pic ( a 16F88 ) is using the tables " for himself ".

    I do not think a Pic will compete with 27C access times ... do you ???

    let's think to a Pic loading 1/4 of a 27C512 ... with engine compulsory OFF ( remember : the bus must be shared between PIC and ECU !!! )

    My point of view : an idea to forget quickly !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi,

    I'm not really sure ... BUT

    something like this was done by the Honda Civic enthusiasts. But they change the EPROMS manually ...

    Now ... something also has been done with PICs and RS 232 ... But the Pic ( a 16F88 ) is using the tables " for himself ".

    I do not think a Pic will compete with 27C access times ... do you ???

    let's think to a Pic loading 1/4 of a 27C512 ... with engine compulsory OFF ( remember : the bus must be shared between PIC and ECU !!! )

    My point of view : an idea to forget quickly !!!

    Alain
    You are right about the access times of the chips Vs a pic, somewhere in the 90 to 120ns depending on manufacturer but I dont know fast the ECU will read off the data, I doubt it will be running as fast as the 12C is capable. But I've never played with ECUs so what do I know It may just read the wrong data because the pic is not fast enough and move on to the next address. That's why I think changing the rom externally would be an easier way to go.
    Without using any algorithms I can copy a 120ns 12C512 in about 11 seconds so writing to every address in a 12C128 should take less than 6 seconds, even quicker if you are only going to change a few addresses.

    A quick search turned up this site

    http://www.i-club.com/forums/vbartic...le&articleid=4

    I don't have the time to read through it but it may give you some better ideas of what other are doing.

    Regards,

    Paul
    +-------------------------------------------------------------------+
    | PBP 2.47/2.50 | MCS+ 3.0.0.5 | U2 Prog | Vista x64 | NO SLEEP!!!!!!! |
    +-------------------------------------------------------------------+

Similar Threads

  1. Store DATA within Program ROM?
    By helloo in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th February 2008, 17:44
  2. IDE with emulation!
    By T.Jackson in forum PBP Wish List
    Replies: 22
    Last Post: - 26th February 2008, 20:39
  3. Reading code ROM
    By markk5xh in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th February 2008, 14:09
  4. 1-wire read ROM with 12F675
    By mosfet in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd October 2007, 13:02
  5. Lcd Rom
    By buddhafragt in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th February 2006, 18:48

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