Help needed, crank signal generator. <solved>
Re: Help needed, crank signal generator. <solved>
Looks like plenty of head room.
- Attachments
-
- Capture.PNG (124.66 KiB) Viewed 297 times
Don't stress specific units.
Re: Help needed, crank signal generator. <solved>
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 noisy engine bay. Maybe why the MPC56x series superceded so effectively with a 10+ year reign.
Re: Help needed, crank signal generator. <solved>
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 that factory code crunching, or IDE abstraction code?
Re: Help needed, crank signal generator. <solved>
also
AngelMarc wrote: ↑Mon Apr 28, 2025 10:47 am EDIT:
833333 divided by TPS number equals RPM. Roughly, there's decimals not accounted for.
Edit sketch with the following to use RPM numbers directlyAttached an updated version. Expect rounding errors in target vs measured. Those errors will get larger at higher RPM.Code: Select all
int RPM = 9000; int TPS = (2500000 / RPM) / 3;
Don't stress specific units.
Re: Help needed, crank signal generator. <solved>
Thankyou. Certainly the instability gets worse at high rpm numbers depending on the delay setting. If TPS at 100uS pretty stable with minimal jitter. Change to 99us & it jumps around a lot more.AngelMarc wrote: ↑Mon Jun 16, 2025 1:46 am alsoAngelMarc wrote: ↑Mon Apr 28, 2025 10:47 am EDIT:
833333 divided by TPS number equals RPM. Roughly, there's decimals not accounted for.
Edit sketch with the following to use RPM numbers directlyAttached an updated version. Expect rounding errors in target vs measured. Those errors will get larger at higher RPM.Code: Select all
int RPM = 9000; int TPS = (2500000 / RPM) / 3;