Hi All,
Hopefully not a dense question, but I can't seem to get my head around this...
I'm constructing a circuit using a 28X2 PICAXE and would like to use all eight Port C pins as inputs. The project also makes use of a DS1307 RTC, so C.3 and C.4 would be hooked up to the DS1307 hi2c scl and sda lines with the 4K7 ohm pullup resistors. But, if I also want to use C.3 and C.4 as inputs - to detect change of state of a microswitch (micro would feed 5V to the input pin when state changes), wouldn't the 4K7 ohm pullups always make C.3 and C.4 see a logical 'high' ??
Reason I'm asking is I know I saw a diagram somewhere on this forum, where someone's circuit was doing just that. They were using a different chip as I recall, but had a RTC hooked up and at the same time were also using those two lines as current sinks for two lines from a set of common anode 7-seg LEDs in a multiplexing arrangement - I'm still looking for that post, but it eludes me so far...
I've always kept the scl and sda lines dedicated to the RTC in previous circuits, but is it indeed possible to use them for RTC and I/O at the same time ?
Regards, John.
Hopefully not a dense question, but I can't seem to get my head around this...
I'm constructing a circuit using a 28X2 PICAXE and would like to use all eight Port C pins as inputs. The project also makes use of a DS1307 RTC, so C.3 and C.4 would be hooked up to the DS1307 hi2c scl and sda lines with the 4K7 ohm pullup resistors. But, if I also want to use C.3 and C.4 as inputs - to detect change of state of a microswitch (micro would feed 5V to the input pin when state changes), wouldn't the 4K7 ohm pullups always make C.3 and C.4 see a logical 'high' ??
Reason I'm asking is I know I saw a diagram somewhere on this forum, where someone's circuit was doing just that. They were using a different chip as I recall, but had a RTC hooked up and at the same time were also using those two lines as current sinks for two lines from a set of common anode 7-seg LEDs in a multiplexing arrangement - I'm still looking for that post, but it eludes me so far...
I've always kept the scl and sda lines dedicated to the RTC in previous circuits, but is it indeed possible to use them for RTC and I/O at the same time ?
Regards, John.