Just a quick question as I haven't tried it yet (still waiting for my DS1307 to get here). Since the pinout on a 40X2 uses the same pins for the hspi and hi2c communications, is it possible to use an SPI and an I2C device in the same setup?
In other words, I would like to have a MAX7219 and a DS1307 in the same program (to display time and temperature on a LED display). Will this work?
I understand that the SPI communications use a pulsed load signal after the serial data is sent, and the I2C does not. This would keep the SPI device from responding to I2C data, but I can see the I2C device getting confused from the data going to the SPI device.
If it can't I suppose it's not the end of the world, I could do manual SPI (like you would with the 08M) on another pin... just curious if they play nice on the same bus.
Thanks!
In other words, I would like to have a MAX7219 and a DS1307 in the same program (to display time and temperature on a LED display). Will this work?
I understand that the SPI communications use a pulsed load signal after the serial data is sent, and the I2C does not. This would keep the SPI device from responding to I2C data, but I can see the I2C device getting confused from the data going to the SPI device.
If it can't I suppose it's not the end of the world, I could do manual SPI (like you would with the 08M) on another pin... just curious if they play nice on the same bus.
Thanks!