PSoC5 SPI Master SCLK not Oscillating

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
pefa_4425936
Level 2
Level 2
5 replies posted 5 sign-ins First solution authored

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
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes

Okay, I will try this next, thank you!

0 Likes

Thank you, that worked finallly!!!