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
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks