SPI and I2C mixing
CraigL
Posts: 8
I am attempting to design a data logger with a BS2, DS1302 clock chip, and EEProm 24LC32A.· I think that the 24LC32A requires I2C bus use, and the DS1302 requires SPI bus use.· Is this right?· May I mix them in one set of code?
The only sample code I could find for the 24LC32A was an I2C demo, so perhaps I have the wrong conclusion.
The only sample code I could find for the 24LC32A was an I2C demo, so perhaps I have the wrong conclusion.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I realize you are working on a BS/2, but I recently posted code in the Completed Projects part of the forum then uses SPI and I2C with an SX-28 Chip using the SX-B BASIC compiler.
http://forums.parallax.com/showthread.php?p=659734
I'm using the smaller 24LC16B chip, so most of the stuff should be the same.
Hope this helps,
Dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not scared of your robot. I'm covered by Old Glory (youtube)
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
Thanks for the help.· I'm off and reading to see if I can understand all this stuff.· It took me a while to even recognize the difference between the SPI and I2c approaches.
Craig.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick