DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

Emulating 68HC11 chip

Thread Tools
 
Search this Thread
 
Old Jan 28, 2011 | 02:40 AM
  #1  
giszo's Avatar
Thread Starter
Member
 
Joined: Jun 2009
Posts: 141
Likes: 0
From: Hungary
Car: 1992 Camaro RS
Engine: 3.1L V6
Transmission: 700-R4
Axle/Gears: 3.23
Emulating 68HC11 chip

Yesterday I got an idea to write an application that could emulate the whole instruction set of the 68HC11 CPU with all the memory and external devices attached to it. It would be something like an ECM test bench just running on a PC instead of having it physically on my desk.

I found this idea useful for myself because it would make debugging of unknown ECM binaries a bit more easy instead of just looking through the assembly code and trying to understand everything.

The other advantage is that it would be possible to try out binary modifications without having a complete ECM test bench or going out to the garage and uploading the new binary to the car every time.

I checked google for such kind of tool but found almost nothing. There was a tool that could emulate this particular CPU but it is not a free application and not even designed for this specific use to simulate ECM software.

What do you think?
Reply
Old Jan 28, 2011 | 10:16 AM
  #2  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Re: Emulating 68HC11 chip

Originally Posted by giszo
Yesterday I got an idea to write an application that could emulate the whole instruction set of the 68HC11 CPU with all the memory and external devices attached to it. It would be something like an ECM test bench just running on a PC instead of having it physically on my desk.

I found this idea useful for myself because it would make debugging of unknown ECM binaries a bit more easy instead of just looking through the assembly code and trying to understand everything.

The other advantage is that it would be possible to try out binary modifications without having a complete ECM test bench or going out to the garage and uploading the new binary to the car every time.

I checked google for such kind of tool but found almost nothing. There was a tool that could emulate this particular CPU but it is not a free application and not even designed for this specific use to simulate ECM software.

What do you think?
I've looked for an simulator to run 'HC11 code on a PC. I found SIM68 but never played with it too much. Part of the issue is that a simulator doesn't simulate the ECM hardware. And, the GM ECMs don't run an off the shelf 68HC11.

What would be a decent simulator would be to also include ECM hardware pieces (in software). And have the emulator decipher and display what the hardware is doing. Such as converting the counter values to actual injector PW, dwell, and timing.

And be able to change inputs such as the CTS, IAT, MAP and so on.

That would be a virtual ECM bench and be very useful.

RBob.
Reply
Old Jan 28, 2011 | 10:18 AM
  #3  
giszo's Avatar
Thread Starter
Member
 
Joined: Jun 2009
Posts: 141
Likes: 0
From: Hungary
Car: 1992 Camaro RS
Engine: 3.1L V6
Transmission: 700-R4
Axle/Gears: 3.23
Re: Emulating 68HC11 chip

Originally Posted by RBob
What would be a decent simulator would be to also include ECM hardware pieces (in software). And have the emulator decipher and display what the hardware is doing. Such as converting the counter values to actual injector PW, dwell, and timing.

And be able to change inputs such as the CTS, IAT, MAP and so on.
That is exactly what I am planning to do.
Reply
Old Jan 28, 2011 | 07:11 PM
  #4  
JP86SS's Avatar
Supreme Member
20 Year Member
iTrader: (1)
 
Joined: Apr 2004
Posts: 3,180
Likes: 3
From: Browns Town
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
Re: Emulating 68HC11 chip

I purchased Thrsim for $50 a few years ago.
Helped with stepping through some code sections.
Biggest problem was the simulator had different syntax requirements than my assembler so I had to keep altering code to do things.
I'd still like to have something that worked well for what we do.

http://www.xs4all.nl/~hc11/thrsim11/thrsim11.htm
The editor that comes with it is nice to work with as well.

Last edited by JP86SS; Jan 28, 2011 at 07:14 PM. Reason: added link
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Linson
Auto Detailing and Appearance
28
Oct 24, 2025 02:00 PM
89-IROCZ-5.0TPI
TPI
10
Feb 22, 2022 09:26 PM
Gunner242
Electronics
7
Dec 25, 2015 04:49 PM
KO1
Engine/Drivetrain/Suspension Parts for Sale
16
Oct 15, 2015 05:00 PM
jaridjohn
Exhaust
14
Oct 5, 2015 07:01 AM




All times are GMT -5. The time now is 05:48 PM.