Search found 43 matches

by MPC001
Sat Jun 21, 2025 2:10 pm
Forum: Tool Development
Topic: 58x ECU
Replies: 4
Views: 213

Re: 58x ECU

AngelMarc wrote: Sat Jun 21, 2025 12:01 am Certainly won't use delay().
will be a "n++" though. Probably a few.
Haven't actually started yet.
:thumbup:
by MPC001
Fri Jun 20, 2025 10:54 pm
Forum: Tool Development
Topic: 58x ECU
Replies: 4
Views: 213

Re: 58x ECU

Am sure you will come up with something more efficient @AngelMarc, but this works for me for 58X/4X. void loop(){ for (x = 1; x <= 120; x++) { if ( x <= 58 || x >= 61 && x <= 118 ) { CRK_ON; delayMicroseconds(frq1); CRK_OFF; delayMicroseconds(frq1); } if ( x == 59 || x == 119) { delayMicrose...
by MPC001
Mon Jun 16, 2025 2:36 pm
Forum: Tool Development
Topic: Help needed, crank signal generator. <solved>
Replies: 45
Views: 9189

Re: Help needed, crank signal generator. <solved>

also EDIT: 833333 divided by TPS number equals RPM. Roughly, there's decimals not accounted for. Edit sketch with the following to use RPM numbers directly int RPM = 9000; int TPS = (2500000 / RPM) / 3; Attached an updated version. Expect rounding errors in target vs measured. Those errors will get...
by MPC001
Sun Jun 15, 2025 5:58 pm
Forum: Tool Development
Topic: Help needed, crank signal generator. <solved>
Replies: 45
Views: 9189

Re: Help needed, crank signal generator. <solved>

Now to see how stable a 600Mhz Teensy 4.0 can do these waveforms. Teensy 4.0 at 150Mhz through 600Mhz up to over 800Mhz, the jitter remained at circa +/- 35rpm . So as I think Antus may have mentioned, not due to lack of clock/power. Maybe an artifact of the 68377 being such a busy beaver doing all...
by MPC001
Sun Jun 15, 2025 5:52 pm
Forum: Tool Development
Topic: Help needed, crank signal generator. <solved>
Replies: 45
Views: 9189

Re: Help needed, crank signal generator. <solved>

Looks like plenty of head room. Seems via 68377 spec (E40 MPU) that max current per pin is 1mA. Total 20mA all pins. 33uA sink measured for each of crk & cam inputs resonates with this. All pins max 5V. (Some are 3.3V). It's a sensitive little number cruncher. Not much margin in an electrically...
by MPC001
Sun Jun 15, 2025 1:36 pm
Forum: GM LS1 512Kbyte and 1Mbyte and newer
Topic: USB BDM NT
Replies: 149
Views: 93994

Re: USB BDM NT

antus wrote: Tue Apr 15, 2025 9:28 am Its great writing this up.
Great reading Antus. Thanks for sharing. Always wondered what the "inits" were for! :thumbup:
by MPC001
Sun Jun 15, 2025 1:28 pm
Forum: Tool Development
Topic: Help needed, crank signal generator. <solved>
Replies: 45
Views: 9189

Re: Help needed, crank signal generator. <solved>

AngelMarc wrote: Thu Jun 12, 2025 1:58 am Looks like plenty of head room.
Thanks for sharing :thumbup:
by MPC001
Sun Jun 15, 2025 1:25 pm
Forum: Tool Development
Topic: Coding my own aftermarket 24x ECU [beta available]
Replies: 182
Views: 14835

Re: Coding my own aftermarket ECU

So, somehow I don't get to use standard base 10 numbers for the temp scaler arrays. I mean, it makes enough sense, bit shifting vs base ten. 256 = no change. Hard to say exactly how bad it's doing at 75,000 RPM Capture.PNG here's 39,000RPM with all the newest changes. 39.PNG Not as good as before. ...
by MPC001
Sat Jun 14, 2025 10:15 pm
Forum: Tool Development
Topic: Coding my own aftermarket 24x ECU [beta available]
Replies: 182
Views: 14835

Re: Coding my own aftermarket ECU

Was wondering how to do an array of bytes as my fractional fixed point numbers while allowing negative values. Apparently simple answer is, you don't. So those arrays of 8 bit values will be stored as 32 bit values... whatever, moving on. If it's the same subject/question, E38 etc does negatives us...