Spare port

A forum for discussing applications and implementations of the MegaShift transmission controller code for the GPIO from B&G. This can control up to 8-speeds and 6 shift solenoids (plus a 16x9 table for controlling a PWM line pressure valve). It has manual and fully automatic modes (16x9 load x speed table), with under and over rev-limit protection, and full data logging of all inputs and outputs (among many other abilities). A TransStim to test your completed board is also available.
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Spare port

Post 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.
Attachments
Monitor_5009t.abs.s19
Uses standard 5.009 INI
(75.35 KiB) Downloaded 655 times
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Spare port

Post 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
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Spare port

Post 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.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Spare port

Post 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
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Spare port

Post 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.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Spare port

Post 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
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Spare port

Post 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.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Spare port

Post 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
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Spare port

Post 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.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Spare port

Post 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
Post Reply