Bizzare
Newbie level 4
Hi guys, I'm putting together a project based on a data acquisition system using a microchip P16F877A, external EEPROM (24LC256) and an accelerometer (ADXL345).
In my code I set up pins C3 and C4 for I2C to transfer data to the external EEPROM and pins C6 + C7 for RS232 to a PC to upload the data for analysis.
My problem is.....after reading the ADXL345 datasheet it says the accelerometer is to be used in SPI or I2C mode. Is that possible considering I'm already using the pins for the EEPROM.
I'm wondering if there is a way around this, but I'm fairly new to coding and understanding PICs, so any advice on what could be done would be helpful, Thanks in advance.
In my code I set up pins C3 and C4 for I2C to transfer data to the external EEPROM and pins C6 + C7 for RS232 to a PC to upload the data for analysis.
My problem is.....after reading the ADXL345 datasheet it says the accelerometer is to be used in SPI or I2C mode. Is that possible considering I'm already using the pins for the EEPROM.
I'm wondering if there is a way around this, but I'm fairly new to coding and understanding PICs, so any advice on what could be done would be helpful, Thanks in advance.