Hi Everyone!
I am planning on building a system with 1 master PIC18F45K22 and 6 slaves PIC16F1704.
My question is, how do I determine the addresses for the slaves? I have checked the datasheet of the PIC16F1704 under the I2C slave mode operation and cant seem to find what address it has (7-bits addressing) or how to give it an address, can I give it any address I want within the range 1 - 128?, I am a bit confused.
Is it possible to address the device by hardware, maybe with DIP switches? Is it possible to make the master scan the bus on start-up and give the slaves addresses?
It is my first time with I2C so go easy on me
I am planning on building a system with 1 master PIC18F45K22 and 6 slaves PIC16F1704.
My question is, how do I determine the addresses for the slaves? I have checked the datasheet of the PIC16F1704 under the I2C slave mode operation and cant seem to find what address it has (7-bits addressing) or how to give it an address, can I give it any address I want within the range 1 - 128?, I am a bit confused.
Is it possible to address the device by hardware, maybe with DIP switches? Is it possible to make the master scan the bus on start-up and give the slaves addresses?
It is my first time with I2C so go easy on me