3 Replies Latest reply on Jan 26, 2020 2:23 AM by pefa_4425936

    PSoC5 SPI Master SCLK not Oscillating

    pefa_4425936

      I am using a PSoC5 LP on a CY8CKIT-059 and an IMU from ST/Adafruit LSM9DS1.

       

      I am having trouble setting up SPI communication. I have determined it is not the IMU because I am not getting the correct output out of the PSoC with the IMU disconnected.

      Here are my issues:

      1. SPI SCLK only oscillates correctly at low frequencies (<100kHz)

      2. At the low frequency, I am seeing correct outputs on MOSI, MISO, SCLK, and SS. However am not polling the correct WHO AM I value from the IMU.

      3. At higher frequencies, SCLK not oscillating at all, MOSI is working correctly, SS is working correctly, but MISO not working because SCLK not working.

       

      Attached is my project. I am using UART for debugging.