XGATE PIT based bit bang fuel injection

Official FreeEMS vanilla firmware development, the heart and soul of the system!
jonr
QFP80 - Contributor
Posts: 46
Joined: Mon Aug 29, 2011 12:59 pm

Re: XGATE PIT based bit bang fuel injection

Post by jonr »

Sorry, I had seen this from Freescale and thought that C could be used on XGATE.
You can use all the usual development approaches including programming in C and using the internal memory on the MCU. In fact it is very simple to reuse previously written software on XGATE.
Open5xxxECU.org
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by Fred »

C can be used on XGATE with the codewarrior pile-of-shit development environment :-)

XGATE code MUST be small, so XGATE code is one of two exceptions to our "only in C" policy.
Sean0 wrote:but the truth is with a respectable input pattern you are always scheduling off of an input event every cycle.
Exactly! Between one input event and the next, you get no new information, so there is no gain to be had in trying to count angle in between.
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!
User avatar
jharvey
1N4001 - Signed up
Posts: 1607
Joined: Tue Jun 10, 2008 5:17 pm

Re: XGATE PIT based bit bang fuel injection

Post by jharvey »

I like the end of the test video, however it would have been better if he tossed in a bit of gas and a match ;)
User avatar
SleepyKeys
LQFP144 - On Top Of The Game
Posts: 549
Joined: Mon Feb 11, 2008 10:52 pm
Location: Arizona
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by SleepyKeys »

Film is cheap.
You snooze, you lose!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by Fred »

Sean0 wrote:Film is cheap.
MegaSquirts aren't for what they are! :-p Sell it!
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!
User avatar
SleepyKeys
LQFP144 - On Top Of The Game
Posts: 549
Joined: Mon Feb 11, 2008 10:52 pm
Location: Arizona
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by SleepyKeys »

http://youtu.be/U9OEEOmsVHk

thx Fred the new cut is very nice
You snooze, you lose!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by Fred »

Sean0 wrote:http://youtu.be/U9OEEOmsVHk

thx Fred the new cut is very nice
You're welcome! Thank you for filming it! :-)
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!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by Fred »

This is higher priority than the target version indicates! I promise :-)

http://issues.freeems.org/view.php?id=255
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!
User avatar
SleepyKeys
LQFP144 - On Top Of The Game
Posts: 549
Joined: Mon Feb 11, 2008 10:52 pm
Location: Arizona
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by SleepyKeys »

Clarification as to some of the further requirements.

1. <fredcooke1> you need to determine that the intended start is before the current off, and if so, just move the off to a later time.
Q1. And that "later time" is just your desired time like any other parameter correct? Example turn off 30,000(our parameter after taking into account the input time stamp) ticks from now even though there are 5,000 ticks left in the current schedule?

2.<fredcooke1> in the case where the intended on is after the intended off, you need to layer the scheduling up one
<fredcooke1> which you say you have a solution for.
Q2. Yes I do, in which case you need to setup more event channels that just happen to share the same pin. Example event 0/1 share pin 2 on portB, do you see what I mean?
You snooze, you lose!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: XGATE PIT based bit bang fuel injection

Post by Fred »

Q1, yes, correct.
Q2, yes, I do.

:-)

PS, good to see this on the forum.
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!
Post Reply