SPI Master | Cypress Semiconductor
I am having problems getting data out of a ADXL362 accelerometer. Here's the datasheet of the ADXL362:
I am using CYBLE-01400-800 running on CY8CKIT-042-BLE. Yet I am not dealing with BLE. I am just trying to get the SPI communication between MCU and ADXL362 working. Also, I am using Miniprog3 to program and debug (since on my final prototype, I can only connect Miniprog3). It delivers 2.5 V to the system (which should be fine for both, PSoC MCU and ADXL362)
I am using the UDB Version of SPI Master. I read lots of forum posts about PSoC SPI Master and its API's. Most of them included answers from Bob Marlowe and hli (both Cypress employees?). In one forum entrance they mention that it's better to manually control the Slave Select of the SPI. I did this (using a control register) --> using my logic analyzer, I found that the SS line is not going high or low at all (even using the control register). I attached a picture of the logic analyzer output as well. So I guess that's the reason why my ADXL362 does not return any data. However, it might also be that the way I use the SPI Master API is still faulty. Anyway, I attached my project. Please have a look at it and tell me if you see where I am going wrong.