- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! I am trying to use the CY8C4146LQS-S433/QFN-40 with PSOC creater 4 and I want to ensure that the I have configure the SPI correctly.
My configuration:
TJA1128's datasheet:Tja1128's data sheet, SPI's format is on page 33
With this configuration I can send and receive the data, but the data I receive is always equal to what I send . So I want to know whether the SPI I configuration was correct.
thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MashRoom ,
Yes, you need to have the same CPHA and CPOL configuration at both the master and slave devices for SPI to work. The clock signal idles at logic 0, hence CPOL is 0. CPHA is 1 indicating that the data is sampled at the falling edge of the clock, and is passed/shifted on the rising edge.
"With this configuration I can send and receive the data, but the data I receive is always equal to what I send "
Can you explain more about your situation? Are you receiving the same information that is being sent?
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MashRoom ,
Yes, you need to have the same CPHA and CPOL configuration at both the master and slave devices for SPI to work. The clock signal idles at logic 0, hence CPOL is 0. CPHA is 1 indicating that the data is sampled at the falling edge of the clock, and is passed/shifted on the rising edge.
"With this configuration I can send and receive the data, but the data I receive is always equal to what I send "
Can you explain more about your situation? Are you receiving the same information that is being sent?
Regards,
Nikhil