Other Parts Discussed in Thread: CC2540
I have the accelerometer soldered in a protoboard so I can have access to all the pins and I am connecting them to the test pins P1_3 through P1_5 in the same way the on board accelerometer is done.
In the file cma30000d.c I am changing the chip select from:
CS=P1_2 to CS=P0_6 (one pin of the test header)
and the P0DIR |=x40
keeping the rest of the code the same, I am trying to access the external accelerometer instead of the on board one but I am not able to read from it.
3. I would also like to know if I can connect a second
accelerometer and be able to read from both at the same time (the one on
board and the external one).
What I am trying to do is keep the
accelerometer on board and have access to it through USART0 SPI alt2
location as it is by default and in addition connect an external
accelerometer in the debug header pins and have access to this
accelerometer through USART1 SPI alt1 location.
That is:
P0_5 (pin 6 debug header) --- MISO accelerometer pin
P0_4 (pin 5 debug header) --- MOSI accelerometer pin
P0_3 (pin 8 debug header) --- CSB accelerometer pin
P0_2 (pin 10 debug header)--- SS accelerometer pin
P0_6 (pin 1 test header) --- INT accelerometer pin.
Thank you very much for your help