Hi,
I'm using a 16F628A and Picbasic compiler (not Pro), which uses the default pins PortA.0,1 for I2C comms.
When the I2C function is active, should it affect the other PortA pin states?
The program I am working on uses PortA.7 as an output, which needs to be locked when in the "on" state, because it controls power on/off of external equipment
However, I notice that it is interrupted every second ( the I2C is a RTC read function) for a short time, giving it about a 90% duty cycle over one second.
I know that the routine for I2C is in the PBL.inc file - does it read/write to PortA as the full Register or only the two I2C bits?
If the former, is it possible to customise/modify the routine to include an "Or"ing of the necessary locked PortA.7 state?
All other pins are used in both Ports, so I can't reallocate the I2C pins.
Currently I have overcome the problem by trapping the short changes in the external equipment, but in other instances this may not be possible, so it should be cured at the source, if possible.
??

kenmac