Iam working with different types of micro controllers,and i am communicating with the slave RTC PCF8523, what ever your saying that is correct I2C is a bi-directional.
But iam configuring the GPIO pin as a output first written the all RTC data i.e sec,min etc.. into the RTC register it is correct, then iam reading the all RTC data from the slave correctly but here point is micro controller reading the data from the slave that means GPIO pin must be input but here iam configuring as GPIO as output only why is it working
i can n't understand please reply me with best answer.
Thanks&Regards
Chandu.Kurapati
- - - Updated - - -
Iam getting one solution for this, when we configuring the I2C or other protocol GPIO configuration is independent on input or output it is depend only on alternative function is it correct or wrong, if it is wrong please suggest me correct solution.
Thanks & Regards
Chandu.Kurapati