I was wondering if it is possible to allow two PICS to communicate over i2c if the clock frequencies they are using are different?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Mar 15, 2009 12:33 am
Yes, but preferably make the slave have the faster clock.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Thu Mar 19, 2009 1:39 pm
It doesn't matter what clock speed either of the PICs are running at as long as the Master gives the Slave the time it needs to process the different commands that is sent to it. The Master could be running at 20MHZ and the Slave could be running at 4MHZ. The Master would simply need to have delays inserted into it's code because it takes the Slave a certain amount of time to receive a command and then process it to be ready to either receive the next command or have data ready for the Master to read.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum