Bosch 60-2 timing wheel resolution
-
johnc32779
- MegaSquirt Newbie
- Posts: 3
- Joined: Wed May 05, 2004 6:17 pm
- Location: Longwood, Florida
http://frwilk.com/944dme/
The selection text may not be visible. If so click on the 4th selection down from the upper left top.
-
muythaibxr
- MegaSquirt Newbie
- Posts: 11
- Joined: Thu Oct 14, 2004 11:48 am
- Location: Columbia, Maryland
My code at its worst should have around 10-20 usec accuracy... it's only limited to how long an OC timer has to wait when other interrupts run...
So far in my oscilloscope testing, I've seen no more than 10 usec jitter at 8333 rpms... I haven't tested any higher. This was testing on a really nice digital storage scope. The only time I get inaccurate is when a timer is supposed to go off within about 20 usec of a predicted tooth... I just err on the side of timing being a little more retarded, and allow the event to occur on a tooth.
But yeah, it'd be nice to not have to include the code that keeps 2 interrupts from happening that close together... I was under the impression that the processor could handle situations where the interrupts are occuring close together, but it seems not.
Ken
-
johnc32779
- MegaSquirt Newbie
- Posts: 3
- Joined: Wed May 05, 2004 6:17 pm
- Location: Longwood, Florida
I am sure you have triple check this. Never the less so thing must have gone astray. Could the compiler be the culprit? Perhaps the following Freescale forum can help.
[/url]http://forums.freescale.com/freescale/[url]
This replaces the "freegeeks.net" forum.
[/url]
-
baldur
- MegaSquirt Newbie
- Posts: 3
- Joined: Sun May 02, 2004 5:39 pm
- Location: Dublin, Ireland
- Contact:
20uS is a whole degree of timing at 8000rpm, not very precise...muythaibxr wrote:My code at its worst should have around 10-20 usec accuracy... it's only limited to how long an OC timer has to wait when other interrupts run...
So far in my oscilloscope testing, I've seen no more than 10 usec jitter at 8333 rpms... I haven't tested any higher. This was testing on a really nice digital storage scope. The only time I get inaccurate is when a timer is supposed to go off within about 20 usec of a predicted tooth... I just err on the side of timing being a little more retarded, and allow the event to occur on a tooth.
But yeah, it'd be nice to not have to include the code that keeps 2 interrupts from happening that close together... I was under the impression that the processor could handle situations where the interrupts are occuring close together, but it seems not.
Ken
As for interrupts, you really need to use a vectored interrupt controller that allows for interrupts to wait while other interrupts are being served. However you must take care that no interrupt routine takes up so much time that you can get two interrupts on a single source that is waiting meanwhile. Of course you will get jitter in interrupt response time like that but you shouldn't be bit banging time critical I/O anyway.
Successfully running Squirt'N'Spark in Iceland:
1992 Suzuki Vitara offroad truck with a VNT25 turbo
1967 Jeepster offroad truck with 400 SBC
1995 Mitsubishi Eclipse with a T04e turbo