Hi, Volcane

There are two things to consider :

1) at power up ... Pic acts just like if you had forgotten to place it !!! ( all ports are INPUTS )
... so, you must design your power section according to that.

2) you can program the outputs to be High, as soon as processor execute the TRIS command ( after some µsecs, then ....) :

Write :

PORTa = %11110101 ' for example
TRISA = % 00001010 ' "

Here you FIRST set the output latches in the correct state
THEN choose your I/Os.

This is THE classical "bug" for electronic ignitions ... coil is powered at poweron ... then the port is set to de-energize the coil ... results a nice "bang" or crankshaft back kick !!!

Alain