Help needed, crank signal generator. <solved>
-
AngelMarc
- Posts: 612
- Joined: Sat Apr 08, 2023 11:23 am
- cars: A CB450 running to 8,000RPM with a P59.
Re: Help needed, crank signal generator. <solved>
Looks like plenty of head room.
You do not have the required permissions to view the files attached to this post.
Don't stress specific units.
-
MPC001
- Posts: 174
- Joined: Sat May 05, 2018 11:41 am
Re: Help needed, crank signal generator. <solved>
Thanks for sharing
-
MPC001
- Posts: 174
- Joined: Sat May 05, 2018 11:41 am
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.
-
MPC001
- Posts: 174
- Joined: Sat May 05, 2018 11:41 am
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?MPC001 wrote: Wed Jun 11, 2025 4:31 am
Now to see how stable a 600Mhz Teensy 4.0 can do these waveforms.
-
AngelMarc
- Posts: 612
- Joined: Sat Apr 08, 2023 11:23 am
- cars: A CB450 running to 8,000RPM with a P59.
Re: Help needed, crank signal generator. <solved>
also
AngelMarc wrote: Mon Apr 28, 2025 12: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.
-
MPC001
- Posts: 174
- Joined: Sat May 05, 2018 11:41 am
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: Sun Jun 15, 2025 3:46 pm alsoAngelMarc wrote: Mon Apr 28, 2025 12: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;