ONDELAY power on delay 0.6 or 1 seconds
ONDELAY2 wait 0.6 second until push button
BUTTON push button for 400 ms
OFFDELAY shut down 0.6 s after ignition off
HARDOFF hard off after 45 seconds
DONE
ONDELAY = 0 sec, no need for a delay.
ONDELAY2 = 1 sec, minimum of 1 sec delay should be enough for the motherboard to settle down
BUTTON = 0.5 sec
OFFDELAY 0 sec, no need for a delay
HARDOFF = 45 sec
I done a delay routine of 0.5 sec...this does all the delay in the controller. So all the delay are 0.5 sec steps.
I have tested it on 16F675, and it seems working all ok. I shall clean it up with all comments and post the source code by saturday. so stay tuned