Hello famous Skimask,
my LCD is only for controlling the principal of transmission.
I got 3 Pics together:
1. : getting Input, storing freq in VAR "CNT" and sending out with Debug
2. : taking the VAR "CNT" with Debugin, calculating a Delay and sending out a 1ms Pulse
after RB0 gets High + Delay time.
3. : taking the VAR "CNT" and showing on LCD just for control purposes
Showing my extremes:
a)cranking a 4-cyl. engine makes about 180/min. with a fixed 50° before OT input signal we need a delay of 37 ms until Ignition which makes 10° before OT which is great for starting an engine.
b) 4cyl 8000/min: we need only 0.2ms Delay after fixed 50° Input signal to get 40° before OT Ignition which may be great for a racing engine.
The delay has to include the PICs intern calculation delay.
The calculation could be done in the first PIC which measures only 10 times a second
BUT the "Execution PIC" has only about 1.5 ms for receiving the Var and being ready for the next action.
And an 8cyl at 6000/min leaves only 0.8 ms.
thats why I need transmission speed
Bookmarks