Author |
Message |
Topic: Switching I2C Master to Slave ..possible? |
facosta.ie
Replies: 9
Views: 23636
|
Forum: General CCS C Discussion Posted: Fri Dec 02, 2016 5:14 pm Subject: Switching I2C Master to Slave ..possible? |
http://www.ccsinfo.com/forum/viewtopic.php?p=208613#208613
I had a problem like this, and this post maybe can help if your problem is still waiting for an answer.
Regards |
Topic: Switch from Slave to Master in I2C during execution. |
facosta.ie
Replies: 8
Views: 16056
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 12:25 pm Subject: Switch from Slave to Master in I2C during execution. |
Thank you again for your help Ttelmah, I think that the control line is what I need to sync correctly the devices and avoid collisions.
I'll test the complete system and will tell you the results. ... |
Topic: Switch from Slave to Master in I2C during execution. |
facosta.ie
Replies: 8
Views: 16056
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 10:33 am Subject: Switch from Slave to Master in I2C during execution. |
Thanks for your answers, Ttelmah and jeremiah with the I2C_init() instruction was enough to enable and disable one or another, it works fine.
I was testing the clk pin(C3), for enable the master a ... |
Topic: Switch from Slave to Master in I2C during execution. |
facosta.ie
Replies: 8
Views: 16056
|
Forum: General CCS C Discussion Posted: Tue Nov 29, 2016 5:09 pm Subject: Switch from Slave to Master in I2C during execution. |
Slave works ok, but master is not working, I use the Slave Stream in the interrupt and the Master Stream when I want to read another Slave, any suggestion?
P.S when I quit the Slave USE the mast ... |
Topic: Switch from Slave to Master in I2C during execution. |
facosta.ie
Replies: 8
Views: 16056
|
Forum: General CCS C Discussion Posted: Tue Nov 29, 2016 12:35 pm Subject: Switch from Slave to Master in I2C during execution. |
Hi, I'm trying to change a PIC18F25k80 from slave to master and vice versa during the program execution, is this posible?
My PIC works fine as master and as Slave individualy using the instructions ... |
|