alex wrote:
I thought you gonna make portable solution for any kind of uC. Theoretically, I think it is possible using uC abstraction layer. Just for example to make this clear.
Theoretically you could, but in practice it's extremely unlikely that such code would be efficient enough to do the job well. It would also be overly complex for it. Many parts of it will be non processor specific, but all the register fiddling would be totally different and other cores don't have equivalent devices inside to perform the same functions.
Code:
/*
Timer0 counts crankshaft position ...
The timer0 MUST have 10bit resolution.
*/
void timer0_init();
interrupt void timer0_handle();
void timer0_set(unsigned short interval);
Each interrupt call uses at least about 10 instructions (>10 clock cycles) without doing anything inside. If this is something that is being called with a high frequency and is run from within an ISR it will negatively impact all aspects of operation. It's just not practical really.
The idea was to develop a good working system that in future could be ported to a different core (with varying degrees of work) once this one gets out dated. The XEP100 is likely to be the next core targeted by us IF Freescale ever release it :-) (which they may not)
What I meant was the ECU could potentially control a carb of throttle plate of a kjet, but it could not control the injection itself. Similarly for a std injector pump setup you could stepper motor control the fuel control arm and thereby control fuel flow in a coarse manner.
All of that would seem to be a gross waste of time though.
The multi squirt business in those modern diesels apparently heavily impacts economy... You could probably achieve it, but would you want to?
Basically : Anything is possible if A someone is willing to write the code for it B the core used is up to the task.
Without knowing much more about how those systems work, I can't really comment on ability or potential performance of such a system.
The goal (which I failed to state) was to make automotive petrol engines run in a performance manner for performance enthusiasts. Some diesel stuff might be possible, but it certainly isn't one of the goals.
With the XDP512 I would say max 6 cylinders of common rail control assuming you can construct the hardware to do the job.
Fred.
_________________DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and
its comments thread and
my turbo truck!n00bs, do
NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!