cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

pefa_4425936
New Contributor II

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.

0 Likes
1 Solution
MotooTanaka
Esteemed Contributor

Hi,

According to the CY8CKIT-059 Kit Guide Table 4-2

P0.2 is GPIO/BYPASS CAP.

How about trying to use other pins with the description "GPIO" only?

000-EVB-PINS.JPG

A 1.0uF capacitor is connected to P0_2

002-pin-sch.JPG

moto

View solution in original post

0 Likes
3 Replies
MotooTanaka
Esteemed Contributor

Hi,

According to the CY8CKIT-059 Kit Guide Table 4-2

P0.2 is GPIO/BYPASS CAP.

How about trying to use other pins with the description "GPIO" only?

000-EVB-PINS.JPG

A 1.0uF capacitor is connected to P0_2

002-pin-sch.JPG

moto

View solution in original post

0 Likes
pefa_4425936
New Contributor II

Okay, I will try this next, thank you!

0 Likes
pefa_4425936
New Contributor II

Thank you, that worked finallly!!!