PGM Output behavior
Posted: Wed Jan 12, 2005 11:43 pm
I have just been checking the communications with my MJLJ which I have just completed. I was trying to check if the PGM outputs work but i see from another thread that they will not be updated until it starts recieving the PIP signal from the EDIS.
Is there a way to make it update the outputs when it initialises? The reason I want to do this is that i have an illuminated 'start' button that I was planning to light via the MJLJ so that the PGM1 output is switched to earth below 500rpm to illuminate the button, and as soon as the engine is running the light goes out.
I've had a look at the source code for the latest firmware (even though I don't know any assembly). To me it looks like line 755 calls the update of the outputs:
jsr UPDATE_USER_OUTPUTS ;update the user outputs
Can this line just be put somewhere in with the initialisation section of the code? If yes where can it safely go as no doubt somethings will need to happen before it can update the outputs?
Thanks,
Chris
Is there a way to make it update the outputs when it initialises? The reason I want to do this is that i have an illuminated 'start' button that I was planning to light via the MJLJ so that the PGM1 output is switched to earth below 500rpm to illuminate the button, and as soon as the engine is running the light goes out.
I've had a look at the source code for the latest firmware (even though I don't know any assembly). To me it looks like line 755 calls the update of the outputs:
jsr UPDATE_USER_OUTPUTS ;update the user outputs
Can this line just be put somewhere in with the initialisation section of the code? If yes where can it safely go as no doubt somethings will need to happen before it can update the outputs?
Thanks,
Chris