Page 3 of 7
Re: Spare port
Posted: Sun Feb 09, 2014 10:26 am
by Bernard Fife
Tobmag,
I think I found the issue with the line pressure when the speed is zero (it had to do with the jake brake (engine braking) code). I will attach some 5.009 test code for you to try.
Lance.
Re: Spare port
Posted: Sun Feb 09, 2014 10:32 am
by tobmag
Another possibility is to have a dedicated 'gear lever' mode for at least one of the spare ports. The user (you!) would have set the PWM settings for each gear (and if I did it right, we could have the user set both the percentage and the frequency independently for each gear, within limits). Is that closer to what you would prefer?
Lance that is exactly what I'm looking for, actually I think this can be a very usefull and as far as I know a uniqe feature for an after market control unit.
What I understand its by law in US to have a gear stick indicator and this would for sure solve that issue for many retrofitting newer transmission in their cars.
Many rod builders etc will never use the stock gear lever and indicator.
if using PWM as output its very easy to make a new bezel for a voltage gauge with P-N-R....
If using a frequency as output you can use a rpm gauge....
BR//Tobmag
Re: Spare port
Posted: Sun Feb 09, 2014 12:44 pm
by Bernard Fife
Tobmag,
Which spare port is preferable for you?
The best ports to use for PWM are spare port 0, 1, or 3 as these are on timer pins. Spare port 0 is normally the speedo output, and spare port 3 is normally the line pressure output (and both of these are frequently used). So it seems spare port 2 is the most desirable choice. But I want to get user feedback before I start coding.
The 5.0XX spare ports are described here:
http://www.msgpio.com/manuals/mshift/spareport.html
Lance.
Re: Spare port
Posted: Sun Feb 09, 2014 2:58 pm
by tobmag
Lance
SP2 should be fine I think, will it be possible to get either PWM or frequency (with adjustible duty cycle) on that port or just PWM?
BR//Tobmag
Re: Spare port
Posted: Sun Feb 09, 2014 4:06 pm
by Bernard Fife
Tobmag,
It would be PWM with selectable frequency AND duty cycle (by gear). There would be a single independent frequency and duty cycle for each gear, but either or both of these could be different between gears.
So if you wanted only the frequency signal only, you could set the duty cycle to 50% in all gears, but have different frequencies. If you wanted only the duty cycle to change you could set all the frequencies for every gear to the same value.
I am not sure what the range of available frequencies would be just yet, I have to do the math. In general, there is fair range available with the current set-up (this is set-up with different clocks/registers in the microcontroller, but some of these clocks are shared with other pins, so we can't just set them to anything, anytime).
Lance.
Re: Spare port
Posted: Mon Feb 10, 2014 12:47 am
by tobmag
Lance.
This sounds perfect, and there are no major issues using the non-CAN load input for the spare port index ?
BR//Tobmag
Re: Spare port
Posted: Mon Feb 10, 2014 8:20 am
by Bernard Fife
no major issues using the non-CAN load input for the spare port index ?
Tobmag,
Not that I can think of at the moment. I will get to work on these (spare port index, and spare port 'gear mode') shortly, and post here if there are any major obstacles.
Lance.
Re: Spare port
Posted: Mon Feb 10, 2014 11:47 am
by tobmag
Lance wrote:Tobmag,
I think I found the issue with the line pressure when the speed is zero (it had to do with the jake brake (engine braking) code). I will attach some 5.009 test code for you to try.
Lance.
I'll have a test tomorrow....
Actually this is not an bad idea but should be the other way around for the ones chasing fuel economy , low pressure at zero VSS, TPS at zero(or load below xx%) and brakes applyed.
Know that there are many OEM that will go into neutral at that condition.
I had that on my Volvo S60 from 2002 but didnt like it, if you where to Quick on the accelerator after letting go of the brakes it was a bit to big delay and quite hars engagement
BR//Tobmag
Re: Spare port
Posted: Mon Feb 10, 2014 6:22 pm
by Bernard Fife
Tobmag,
I have released 5.010 code here:
viewtopic.php?f=4&p=4127#p4127 It has some of the additions discussed in this thread. The S19 and INI are here:
http://www.msgpio.com/manuals/mshift/V5code.html
Lance.
Re: Spare port
Posted: Tue Feb 11, 2014 12:28 pm
by tobmag
Lance.
Downloaded the code but cant get it to work at all, something wrong with the comunication with TS.
Installed 2 times but no luck, reinstalled 5009 and all good!
Cant attached debug log here, file extension not allowed so you have it in your email.
BR//Tobmag