Thanks guys so far.
It's not a capacive coupling problem, pretty sure of that
The pulses on the 2nd DS1267 (RC1) are around 1mS long and the desired pulse on RC0 is about 3mS long. The pulse on RC1 occurs during the last third of the RC0 pulse, which is really weird.
As if that wasn't enough, when I deliberately try to address the 2nd DS1267, i.e make RC1 go high the pulse is only 1mS long in contrast to the 3mS when I am addressing RC0. Yet the two subroutines do exactly the same thing??
I've attached the entire relevant code for you experts. It's not that long and as I'm not that experienced, isn't very heavy.
It's got to be a stupid coding error but I'm damned if I can spot it.
BTW, whoever asked, no there are no pull-up resistors on the lines between PIC and DS1267. All the literature I've read suggests I don't need it and the PIC ports I'm using are TTL compatable, I think.




Bookmarks