Hi Darrel
Thanks also to you for a timely reply and very thorough as well. Very impressed with your telephathic powers, indeed PORTA.3 is (SCL) and PORTA.4 is (SDA). Nice explanation I see what is going on now, sounds like you have wrestled a bit with I2C and PORTA, can see how PORTA.3 functions as the clk and of course as you say there is no Analogue in on PORTA.4.
Will do as you say and apply what you have said and in light of the read-modify-write issue I may move (SCL) & (SDA) to a couple of bits on PORTB, then I know for sure that the software will be able to decode the entry code recovered from eeprom, to enable opening of the door on my electronics den. Which if the lock did not actuate would, probably have me howling at the moon or resorting to an impression of Jack Nicholson with the Axe in The Shining. many thanks and a great Forum.
Regards Alan