Author Topic: ECU Questions!  (Read 1648 times)

Offline Wade Carlson

  • Hero Member
  • *****
  • Posts: 1201
ECU Questions!
« Reply #15 on: April 16, 2004, 07:51:37 am »
:shock:

your crazy jamie

but sign me up as a beta tester :D
Had a DSM...........sold it............ never been happier

Graeme Shaw

  • Guest
ECU Questions!
« Reply #16 on: April 16, 2004, 08:07:59 am »
Sweet deal!  1G-able?

Offline JamieSibley

  • Sr. Member
  • ****
  • Posts: 376
ECU Questions!
« Reply #17 on: April 16, 2004, 09:15:35 am »
Probably more 1g able than 2g.

There are a few unknows about he 2g setup, mainly, how the ecu communicates with the alternator, and how the "tourqe reduction request" works for the auto trany.

A few things wont be put in though,  like the egr solenoid control and the fuel pressure boost solenoid.
5 TSI RWD 2.4L Fairwell.

Offline Ryan Lore

  • Hero Member
  • *****
  • Posts: 794
ECU Questions!
« Reply #18 on: April 16, 2004, 11:53:20 am »
torque reduction is just timing retard before/while shifting

Offline Andrew Scott

  • Hero Member
  • *****
  • Posts: 2800
ECU Questions!
« Reply #19 on: April 16, 2004, 05:05:29 pm »
Quote from: "JamieSibley"

A few things wont be put in though,  like the egr solenoid control and the fuel pressure boost solenoid.


Those two solenoids are for suckers anyways!
Parked: 1989 240sx - Esso 87 octane, Superstore generic 10w30, Japanese automatic climate control, Pioneer AVIC-Z3 navagation, Tien Flex Coilovers, Poly bushings, R34 Brakes (front and rear), Cusco tri-point strut braces (front+rear), 1998 tail lights, rear+side valance, adjustable toe and camber arms, cusco sway bars, helical rear diff, Volk TE37s - For sale!
Daily: 2008 BMW M3 DCT

Offline John Hartman

  • Senior Member
  • Hero Member
  • *
  • Posts: 17539
ECU Questions!
« Reply #20 on: April 16, 2004, 06:52:47 pm »
holy hell Jamie   :shock:

well, I'd love to see it workin out.

Its gonna have to make it thru aircare and work well as a daily driver too.  EGR, big deal, mines been blocked for at least a year, but the fuel pressure one is still attached.
91 Eagle Talon TSi 5spd awd.  GT-12, TriFlow Cams, 850s, Tial, JIC, Jackal, sticky rubber.
86 Merkur XR4Ti 5spd, rwd, turbo, 91,381km.  Original paint, heated leather. intercooled, big VAM, Full 3" exhaust, Cossie sway bar, 16" tires.
06 Mazdaspeed6 6spd awd, DISI turbo, heated leather HIDs, Corksport, Cobb, Konig, Centric...
2018 VW Golf Alltrack turbo Tornado Red, 6mt, some free mods

Offline Andrew Scott

  • Hero Member
  • *****
  • Posts: 2800
ECU Questions!
« Reply #21 on: April 17, 2004, 12:24:53 am »
You don't really need the fuel pressure solinoid anyways... it is just for warming up, cold days, etc.. If you are going to be running an afpr john, you'll probably want to run it straight from manifold pressure anyways. That solinoid screws up your fp sometimes, and will make it hard to tune.
Parked: 1989 240sx - Esso 87 octane, Superstore generic 10w30, Japanese automatic climate control, Pioneer AVIC-Z3 navagation, Tien Flex Coilovers, Poly bushings, R34 Brakes (front and rear), Cusco tri-point strut braces (front+rear), 1998 tail lights, rear+side valance, adjustable toe and camber arms, cusco sway bars, helical rear diff, Volk TE37s - For sale!
Daily: 2008 BMW M3 DCT

Offline JamieSibley

  • Sr. Member
  • ****
  • Posts: 376
ECU Questions!
« Reply #22 on: April 17, 2004, 01:54:46 am »
Streetable..daily driver.. thats the plan!

As for aircare... we'll have to see, its going to have closed loop mode, and a seperate fuel map that can be used for aircare.. but it's batch fire, not sequential. Sequential is a LOT of extra work to implement, especialy since it shuts off at a few thousand rpm anyways.   But if sequentail is the only way to make it work, then it'll have to be that way.
5 TSI RWD 2.4L Fairwell.

Offline Trevor Robinson

  • Full Member
  • ***
  • Posts: 181
ECU Questions!
« Reply #23 on: April 17, 2004, 09:08:00 am »
Very  nice very nice indeed.

So another DIY ecu show just about when i was looking into this
http://www.bgsoflex.com/megasquirt.html

So how many beta testers do you need??? :)
and where do i sign up.
rowing old is mandatory, growing up is optional!!

Offline John Hartman

  • Senior Member
  • Hero Member
  • *
  • Posts: 17539
ECU Questions!
« Reply #24 on: April 17, 2004, 09:24:09 am »
that Megasquirt thing looks really cool, but holy complicated batman!!!
91 Eagle Talon TSi 5spd awd.  GT-12, TriFlow Cams, 850s, Tial, JIC, Jackal, sticky rubber.
86 Merkur XR4Ti 5spd, rwd, turbo, 91,381km.  Original paint, heated leather. intercooled, big VAM, Full 3" exhaust, Cossie sway bar, 16" tires.
06 Mazdaspeed6 6spd awd, DISI turbo, heated leather HIDs, Corksport, Cobb, Konig, Centric...
2018 VW Golf Alltrack turbo Tornado Red, 6mt, some free mods

Offline Andrew Scott

  • Hero Member
  • *****
  • Posts: 2800
ECU Questions!
« Reply #25 on: April 17, 2004, 12:20:55 pm »
Heh, last year I programmed on the 86HC11. Assembly programming is a huge pain in the ass. Much easier to use the C moduability with ASM code: ie..

ASM ("SEI");

*(unsigned char *)0x00D0 = 0x7E;
*(void (**) ())0x00D1    = tof_isr;


C allows direct memory access, which kicks some serious ass for ASM programming.
Parked: 1989 240sx - Esso 87 octane, Superstore generic 10w30, Japanese automatic climate control, Pioneer AVIC-Z3 navagation, Tien Flex Coilovers, Poly bushings, R34 Brakes (front and rear), Cusco tri-point strut braces (front+rear), 1998 tail lights, rear+side valance, adjustable toe and camber arms, cusco sway bars, helical rear diff, Volk TE37s - For sale!
Daily: 2008 BMW M3 DCT

Offline JamieSibley

  • Sr. Member
  • ****
  • Posts: 376
ECU Questions!
« Reply #26 on: April 17, 2004, 01:08:51 pm »
Just a glimps at assembly programming....

lets say you wanted to calculate this

rpm = 1/(period of revolutiuon)

pretty simple eh?

this is what it look like in a assembly

 Line  Address  Opcode   Label                 Disassembly              

   162   0142  F019 NOP                                    
   163   0144  0EFF MOVLW 0xff                            
   164   0146  6E20 MOVWF 0,                              
   165   0148  6E21 MOVWF 0,                              
   166   014A  C016 MOVFF DIFFL, DIVISORL                  
   167   014C  F026 NOP                                    
   168   014E  C015 MOVFF DIFFH, DIVISORH                  
   169   0150  F025 NOP                                    
   170   0152  0E10 MOVLW 0x10                            
   171   0154  6E22 MOVWF 0,                              
   172   0156  6A24 CLRF 0,                                
   173   0158  6A23 CLRF 0,                                
   174   015A  3620DIV16 RLCF 0x1, 0,                          
   175   015C  3621 RLCF 0x1, 0,                          
   176   015E  3624 RLCF 0x1, 0,                          
   177   0160  3623 RLCF 0x1, 0,                          
   178   0162  5026 MOVF 0, 0,                            
   179   0164  5C24 SUBWF 0, 0,                            
   180   0166  6E27 MOVWF 0,                              
   181   0168  5025 MOVF 0, 0,                            
   182   016A  5823 SUBWFB 0, 0,                          
   183   016C  6E28 MOVWF 0,                              
   184   016E  A0D8 BTFSS STATUS, 0, 0                    
   185   0170  EFC1 GOTO NOFITS                            
   186   0172  F000 NOP                                    
   187   0174  8020FITS BSF 0, 0,                              
   188   0176  C027 MOVFF TEMPL, REML                      
   189   0178  F024 NOP                                    
   190   017A  C028 MOVFF TEMPH, REMH                      
   191   017C  F023 NOP                                    
   192   017E  EFC2 GOTO END16DIV                          
   193   0180  F000 NOP                                    
   194   0182  9020NOFITS BCF 0, 0,                              
   195   0184  2E22END16DIV DECFSZ 0x1, 0,                        
   196   0186  EFAD GOTO DIV16                            
   197   0188  F000 NOP                                    
   198   018A  C020 MOVFF TOPL, RPML                      
   199   018C  F02A NOP                                    
   200   018E  C021 MOVFF TOPH, RPMH                      
   201   0190  F029 NOP                                    
   202   0192  C020 MOVFF TOPL, ACKEN                      
   203   0194  F004 NOP                                    
   204   0196  C021 MOVFF TOPH, ACKDT                      
   205   0198  F005 NOP                                    
   206   019A  A0A1DONE16DIV BTFSS PIR2, 0, 0                      
   207   019C  EFD2 GOTO ENDSPARKFIRESECTION3              
   208   019E  F000 NOP                                    
   209   01A0  90A1 BCF PIR2, 0, 0                        
   210   01A2  9083 BCF PORTD, 0, 0    


Isn't that great?
5 TSI RWD 2.4L Fairwell.

Offline Andrew Scott

  • Hero Member
  • *****
  • Posts: 2800
ECU Questions!
« Reply #27 on: April 17, 2004, 01:33:17 pm »
stupid 8 bit memory addressing
Parked: 1989 240sx - Esso 87 octane, Superstore generic 10w30, Japanese automatic climate control, Pioneer AVIC-Z3 navagation, Tien Flex Coilovers, Poly bushings, R34 Brakes (front and rear), Cusco tri-point strut braces (front+rear), 1998 tail lights, rear+side valance, adjustable toe and camber arms, cusco sway bars, helical rear diff, Volk TE37s - For sale!
Daily: 2008 BMW M3 DCT

Offline JamieSibley

  • Sr. Member
  • ****
  • Posts: 376
ECU Questions!
« Reply #28 on: April 17, 2004, 02:00:27 pm »
It's a number of things that are real piss-offs

The whole chip is a 8 bit core, all serial comm's, math, timing is 8 bit internaly.  Trying to do 32 bit math gets killer.

Unlike the 68hc11, I'm using a chip without any hardware divide support, so an division that would normaly take 5 clock cycles, now takes 200.

But the payoff..   All instructions are single clock cycle, and a 20mhz clock, 2 pwm channels, 4 timers, 64k of eeprom, usart, spi, i2c...   picmicro's are the best.
5 TSI RWD 2.4L Fairwell.

Offline Jovan Ceklaj

  • Hero Member
  • *****
  • Posts: 2290
ECU Questions!
« Reply #29 on: April 26, 2004, 02:35:55 am »
Sorry to bring up an old thread, but I was doing some thinking about it...

Quote from: "JamieSibley"

4 or more fuel maps, selectable from a dash switch or from switch mounted to the shift lever to detect a certain gear.


Instead of having the headache of programming 5 fuel maps, why not just have bias ratios for each gear.  So if you set a base map, you can raise the fuel input for each individual gear throughout the rev range by whatever percentage you want.  As for getting the thing to see which gear you're in, how does your car detect when you're in reverse for the reverse lights? Hall effect sensors?  At any rate, whatever they use for that could be adapted for the rest I believe.  Hopefully packaging isn't an issue
 1989 Nissan 240sx (daily POS/autocross slut)
- '92 6/4 bolt Tsi AWD 5 spd. (Burned to the ground!)