Search found 1696 matches

by Bernard Fife
Tue Nov 08, 2016 8:58 am
Forum: MegaShift Transmission Application
Topic: VSS from GPIO to MSIII over can
Replies: 1
Views: 5441

Re: VSS from GPIO to MSIII over can

Halldorsson, The speed value is an unsigned 16bit (2 bytes) integer at offset 2 in the outpc structure in the MShift code. The value is in mph x 10, so you have to multiply by 0.100 to get mph, or multiply by 0.16093 to get kph. It is up to your ms3 controller to request this value from the GPIO (an...
by Bernard Fife
Sat Nov 05, 2016 7:42 am
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, The current code compiles at about 39K, so 7K above the 32K limit of the codewarrior special edition. You might have to combine some included file into the main.c file in order to get under the special edition file number limit as well. I.e. where it says something like: #include "ports_pi...
by Bernard Fife
Fri Nov 04, 2016 7:07 am
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

You can use the free special edition of codewarrior from this page: http://cache.freescale.com/lgfiles/devsuites/HC12/CW_HC12_v5.1_SPECIAL.exe?WT_TYPE=IDE%20-%20Debug,%20Compile%20and%20Build%20Tools&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=exe&WT_ASSET=Downloads (you have to register) or sear...
by Bernard Fife
Thu Nov 03, 2016 5:20 pm
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, You will have to look through the code to see which port changes make the most sense to you. The code is pretty well documented, so you should be able to find the sections you might need to work with using the search function.
by Bernard Fife
Wed Nov 02, 2016 8:16 am
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Sure PT6 can be set up as an output in the data direction register (DDRT), so go ahead. Since it is a timer pin, you can either use the timer options to switch it or you can bit-bang it.
by Bernard Fife
Tue Nov 01, 2016 4:17 pm
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, ANY output can make a pulse. Some are set up on the timer ports so that this is done automatically (but it isn't necessarily easier, as the setup can be complex). This is especially useful for things that get switched a lot (such as PWM), things that get switched very fast (usually in conjuncti...
by Bernard Fife
Mon Oct 31, 2016 12:47 pm
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, The MShift code is standard ANSI C (not C++), but for an embedded context (so you need a "cross compiler" that will write an S19 file for loading to the MC9S12C64/MC9S12C128). However some of Codewarrior's linker/locator files may be in a proprietary format, such as the PRM file that ...
by Bernard Fife
Sun Oct 30, 2016 8:44 am
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, No, there are no code variants, it's all one code with options. If you want to write your own code, your best bet is to start with this code: http://www.msgpio.com/manuals/iocode/TemplateCWproject_1101.zip This code is small enough that you can use the free special edition of codewarrior from t...
by Bernard Fife
Fri Oct 28, 2016 3:49 pm
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, We can't just switch the ports without screwing it up for everyone else who wants it to stay the same. So all the places in the code where either of the ports are used need to be sorted by adding a switching option; and there are many, many places they are used in the code because of all the op...
by Bernard Fife
Fri Oct 28, 2016 6:35 am
Forum: MegaShift Transmission Application
Topic: AA80E 8-speed
Replies: 297
Views: 485466

Re: AA80E 8-speed

Jim, You know much more about this trans and your circumstances than I do, so you are in a far better position to judge the feasibility of your workaround.