I have scanned the posts for similar problems to the one I am detailling below but to be honest I'm not exactly sure what to look for.
I am using a 16F876 (4Mhz) to drive two DS1267 digital pots on Port C. The two RST (chip select lines) of the Ds1267's are connected to RC0 and RC1 respectively. The clock (CLK) and data (DQ) lines are paralleled and connect to RC2 and RC3.
The program selects the appropriate DS1267 by sending either RC0 or RC1 high then uses SHIFTOUT to write the data.
When RC0 goes high a pulse appears on RC1 that is sufficiently long enough to confuse the hell out of the other DS1267. However, the reverse is not true, i.e. when RC1 goes high no pulse appears on RC0 so it works fine.
This extra pulse is driving me nuts!
I suspect it has something to do with Timer1 or even CCP2 that are multiplexed on these two ports. I must admit that even after reading the datasheet for the 876 I am not proficient enough to understand how to ensure these functions are off. Of course there's a very real chance it has nothing to do with these functions and I'm barking up the wrong proverbial tree.
There must be someone who knows where these extra pulses come from and how I can stop them.
Thanks.
Bookmarks