The MASM Forum Archive 2004 to 2012

General Forums => The Soap Box => Topic started by: ninjarider on February 22, 2012, 02:51:40 AM

Title: question on the s12x processor
Post by: ninjarider on February 22, 2012, 02:51:40 AM
the s12x processor is in the s12 microprocessor family. which is used in automotive engine control modules. i was curious to know if anyone has ever programmed or attempted to program any processor in this family?
Title: Re: question on the s12x processor
Post by: dedndave on February 22, 2012, 03:03:56 AM
probably not
i like it, though - it has a "SEX" instruction   :bg
there are a few members that have worked with several different microcontrollers
i have programmed 4004, 8008, 8080, Z80, 8051, 6502, 680x, 68k microcontrollers/microprocessors (some more than others)
Clive has programmed many more   :P

once you've learned a few different ones, it gets pretty easy to learn a new one
the hard part usually isn't learning about the controller - it's learning about the stuff it's connected to
Title: Re: question on the s12x processor
Post by: ninjarider on February 22, 2012, 03:43:40 AM
i had to look it up. sign extend x.

thats funny.
Title: Re: question on the s12x processor
Post by: dedndave on February 22, 2012, 11:54:14 AM
 :bg
i didn't see a SEXIST instruction
Sign Extend X If S True   :lol

...or, how about SEXXY
Sign EXtend XY

no wonder they won't let me design microcode
Title: Re: question on the s12x processor
Post by: clive on February 22, 2012, 02:53:12 PM
No, I haven't played with the S12X which is a derivative of the old 68HC11 family.

If you have the firmware in a binary format your best choices are probably to view it with a hex editor, and find a suitable disassembler. There are definitely compilers and debug tools out their, but the most effective are likely to be expensive. See if Freescale offers any development/evaluations boards.

I'd imagine your best resource might be the chipping scene, ie the guys that modify car computer firmware.  Generally I'd be rather careful with this, as the equipment it's controlling is rather expensive to purchase and repair.
Title: Re: question on the s12x processor
Post by: ninjarider on March 02, 2012, 03:22:30 AM
yeah. it would royally such to blow and engine because of an opcode in the wrong place. but its the only option i have to get my engine to perform the way i want it to. the big companies that produce off the shelf ecm's for my car dont have a feature i want.
Title: Re: question on the s12x processor
Post by: dedndave on March 02, 2012, 04:25:05 AM
probably more likely the engine won't start at all if it's messed up   :P
Title: Re: question on the s12x processor
Post by: ninjarider on March 03, 2012, 02:09:46 AM
that would be the best case scenerio. but worse case is to miss read the timing wheel and add to much timing under wot accell and detonate the motor sending pieces of sharpnel through everything else
Title: Re: question on the s12x processor
Post by: dedndave on March 03, 2012, 02:23:22 AM
well - the guys at SnapOn do it - and at a nice profit, too
it can't be too difficult

(http://ocw.weber.edu/automotive-technology/ausv-1320-automotive-electronics/images/Snap-onMTS2500ScanToolSmall.jpg)
Title: Re: question on the s12x processor
Post by: ninjarider on March 03, 2012, 09:44:31 PM
your right. it cant be that hard. its just going to take a lot of mental push ups and what not to be able to conquer everything i want done to my motor. people think im crazy for wanting to try it. mercedes says one idea of mine works. i just plan on taking it leaps beyond what mercedes had planned for the technology.
Title: Re: question on the s12x processor
Post by: dedndave on March 03, 2012, 10:39:45 PM
there are forums out there for car "nuts" that convert these things
although, they are probably not all programmers
Title: Re: question on the s12x processor
Post by: ninjarider on March 03, 2012, 10:42:42 PM
yeah. im on a couple forums for it. but i was just curious if anyone on hear had any experience with this one. i know we deal with x86 here. but that doesn't mean that everyone here has only touched an x86.
Title: Re: question on the s12x processor
Post by: dedndave on March 03, 2012, 10:45:20 PM
many moons ago, i worked on some fuel control computers for AiResearch - lol
they were actually analog computers - and are still in use, today
Title: Re: question on the s12x processor
Post by: rags on March 04, 2012, 11:28:07 PM
Ninja, I use a SuperChips for my '06 Dodge Charger 5.7 Hemi, it came with the car when I bought it. For me it does what I want.
One thing I like is the ability to save the current settings, to instantly restore them if you change something , and its not working
out like you want.
Title: Re: question on the s12x processor
Post by: NPNW on March 05, 2012, 12:24:33 AM
ninjarider,


http://www.freescale.com/files/microcontrollers/doc/brochure/BRFSLSFWTLAUTO.pdf


The CodeWarrior Development Studio for Microcontrollers, (Special Edition) is
available at no charge. It allows you to develop projects with unlimited assembly
code, up to 32 KB of C code for HC(S)08.
The CodeWarrior Development Studio for HCS12(X) Microcontrollers, (Special
Edition) is available at no charge and allows you to develop projects with
unlimited assembly code, up to 32 KB of C code and 1 KB of C++ code for
HCS12(X) derivatives, and up to 512 bytes of C or C++ code for the XGATE
controller.

Here is the link to the free special edition.
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-HCS12X&nodeId=01521027263BC3&fpsp=1&tab=Design_Tools_Tab

here is the link to the s12xA reference sheet page. You can download the pdf for the instructions on how to write code for the controller.
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XA&tab=Documentation_Tab&linkline=Data%20Sheets&fpsp=1

There is also S12xS,  S12xE link.

Here is the link to the boot loader.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XE&tab=Documentation_Tab&pspll=1&SelectedAsset=Documentation&ProdMetaId=PID/DC/S12XE&fromPSP=true&assetLockedForNavigation=true&componentId=2&leftNavCode=1&pageSize=25&Documentation=Documentation/00210KscRcb``Application%20Notes&fpsp=1&linkline=Application%20Notes
Title: Re: question on the s12x processor
Post by: ninjarider on March 08, 2012, 06:04:27 PM
damn, i was just asking if anyone had worked with it. didn't expenct that. thanks for the info though.