I have PIC 18f452 with PICC ide and compiler. I have strange behavior of pins that is on master reset if i set their TRIS=0 and put the PIN on Low status. on startup it turns ON one time then behaves like i programmed.
pin output is attached with an external counter(for example) it deforms the results. Is there any program/code setting that it should'nt turn ON on first startup. Best Regards,
Joe.
Check the data sheet page 91, it shows the PORT values on POR.
When you turn the micro on and set the PORT as an output, it is configured as an output with the stated output i-e -1111111. Where as if you will read them on power up than you will get all -x0x0000.