XGATE PIT based bit bang fuel injection

Official FreeEMS vanilla firmware development, the heart and soul of the system!
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 »

Yea sounds like a good idea ttyl
You snooze, you lose!
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 »

Getting rid of slag. Calm down code reads easier too :)

Image
You snooze, you lose!
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 »

Each channel with it's own DC with an event scheduled every Clocks.millisToTenths % 10.

Image
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 »

Two questions:
  1. Are these outputs in any way timed to the ECT input time stamp subsystem?
  2. Does your code handle switching multiple pins in one execution?
Cool screen shot none-the-less! :-)

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!
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 »

Two answers.

1. No not yet, that's the next step, wanted to make sure everything was mint so far.
2. By Execution do you mean one instructional bang or one ThreadRun? Threadrun yes it's its zero time or past due.

What else ? :)
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 »

OK, so each time your XG code runs it switches something on or off depending on some internal clock such as the PIT clock and stamps/registers/masks, right?

I take it you're running one piece of code for on and off and running it ultra often to make sure that it's high res, rather than timing the execution with the pit timer? You can ignore most of these questions if you want :-)

Is your internal clock scheme 32 bit? And do you handle roll over gracefully?

If it's 32 bit, how did you achieve that? With the Freescale trick? Or manually? Does the PIT stuff have a roll over interrupt? I don't think so, so it must be manually, right?

Curiosity killed the cat!

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!
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 »

It takes quite a bit into account I think there are 500 lines of ASM code, so it getting smarter every day :) But yeah that's the core of it.

"I take it you're running one piece of code for on and off and running it ultra often to make sure that it's high res, rather than timing the execution with the pit timer? You can ignore most of these questions if you want :-)" No the only loop like that is the xgateMetronome which is pretty tight.

Again xgateMetronome :)
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 »

Don't forget that you have to explain this thing to me until I understand it as well as you do :-) Carry on.
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 »

I'll need to go back and comment things more too.
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 »

Right, and if you have, and it's good, that should reduce your explanation load to almost nothing. Whatever isn't clear when I start asking and poking can be added to the docs as we go, I guess :-)
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