I have RC0 configured as a digital output via TRISC0 = 0 instruction. The only thing I'm not so sure about is controlling this pin ie. setting it high for no sink and low for sink (ie. PUL is ON at that point). I'm pulsing this output to generate a single step movement on the stepper, previously I was setting RC0 to high for 40us and then setting it back to low. With this sink configuration I will have to do the opposite, set it low to generate a pulse and after 40us set it high again. The default state will be then high for this pin, which means on start up I need to set it high and keep it that way. This will be seen on the driver end as a transition from high to low and might cause me some problems. Is there a way around this? ie start up the PIC with the pin in high state straight from boot up?
Regards,
T