Andrew Cowan
Senior Member
I'm trying to bit-bang I2C on a 14M (with much help from hippy).
His code (designed for the 08M) uses plenty of 'Input pin' commands to set the pin to high impedance.
However, I'm using the 14M, which doesn't support the Input command. Is there anyway of controlling the state of one pin, rather than using Dirsc to do the whole portc bank? At times I don't know what the state of other pins will be, ie I need let Dirsc = %xxxx0xxx where x is don't care.
Thanks,
Andrew
His code (designed for the 08M) uses plenty of 'Input pin' commands to set the pin to high impedance.
However, I'm using the 14M, which doesn't support the Input command. Is there anyway of controlling the state of one pin, rather than using Dirsc to do the whole portc bank? At times I don't know what the state of other pins will be, ie I need let Dirsc = %xxxx0xxx where x is don't care.
Thanks,
Andrew