View Single Post
  #966  
Old 12-26-2009, 04:04 PM
b3lha's Avatar
b3lha b3lha is offline
Phil & Belha
 
Join Date: Aug 2001
Location: Alcyone Limited, Buckinghamshire UK
Posts: 2,671
Re: Memory dump of ECU

I don't really understand how the A/D converter works, except that it somehow converts an input voltage to a binary number. If you want to know, read chapter 9 of the 7733 User Manual on the Renesas site. It's not exactly the same CPU as ours, but it is similar.

Code:
http://documentation.renesas.com/eng/products/mpumcu/e7733um.pdf
You are exactly right when you say that
Quote:
the value is converted to 8 bit and stored at 128c(SM TPS). The value is stored in 16 bit at 1036(TPS volts).
You are almost right about the next bit too. The ECU stores a history of the last 11 TPS readings between 1044 and 104e. This is so it can tell if you are increasing or decreasing throttle and how quickly you are doing it. It uses this information for things like "tip-in enrichment".

It looks to me as though bit #20 of 101e indicates whether the history buffer has been initialised. If the history buffer has not been initialised, then it is filled with the TPS value, or a default value if the TPS error flag is set. I think you are right that bit #01 of 1025 indicates whether the value is real or default.

If the buffer has already been initialised, then the code at E2C6 shifts it along one byte and then the new value is inserted at 1044.

Phil.

Edit: I forgot to mention, the value of dp is always 0 on this system, so you can ignore it. "sta al, dp + 0x00 + ix" just means " store AL at address 0+X"
__________________
Subaru ECU and TCU Website
1992 Alcyone SVX Version L
1992 Alcyone SVX Version L
1994 Alcyone SVX S40-II
2004 Subaru Legacy 2.5 SE Sports Tourer
1996 Subaru Legacy 2.2 GX Wagon
1988 Subaru Justy J12 SL-II

Last edited by b3lha; 12-26-2009 at 04:08 PM.
Reply With Quote