Not applicable
May 24, 2016
01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 24, 2016
01:59 PM
Hi,
is it possible to transmit and receive SPI data on the rising clock edge, using the XMC4800 in full duplex mode?
Thanks in advance.
is it possible to transmit and receive SPI data on the rising clock edge, using the XMC4800 in full duplex mode?
Thanks in advance.
5 Replies
May 24, 2016
11:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 24, 2016
11:17 PM
Hello,
The nature of the SPI protocol is that transmit and receive are always done on alternate edges of the clock.
For example, we can have transmission of data on the leading rising clock edge and the reception on the trailing falling clock edge.
Therefore, within one clock cycle, it is possible to transmit and receive to have the full duplex effect.
Regards,
Min Wei
The nature of the SPI protocol is that transmit and receive are always done on alternate edges of the clock.
For example, we can have transmission of data on the leading rising clock edge and the reception on the trailing falling clock edge.
Therefore, within one clock cycle, it is possible to transmit and receive to have the full duplex effect.
Regards,
Min Wei
Feb 20, 2019
07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 20, 2019
07:32 AM
Hi.
I have the same question.
>>The nature of the SPI protocol is that transmit and receive are always done on alternate edges of the clock.
Really?
SPI has 4 modes and everywhere and reception and transmission occur on same front.
https://en.wikipedia.org/wiki/Serial_Peripheral_Interface
It is good that we can get higher speed when working on different fronts. But for this, the slave device must support this feature .
In my case, Wiznet w5500 both receives and sends data on the rising edge
As a result, when I receive data, I receive garbage.
How can i solve this problem
I have the same question.
>>The nature of the SPI protocol is that transmit and receive are always done on alternate edges of the clock.
Really?
SPI has 4 modes and everywhere and reception and transmission occur on same front.
https://en.wikipedia.org/wiki/Serial_Peripheral_Interface
It is good that we can get higher speed when working on different fronts. But for this, the slave device must support this feature .
In my case, Wiznet w5500 both receives and sends data on the rising edge
As a result, when I receive data, I receive garbage.
How can i solve this problem
Feb 20, 2019
11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 20, 2019
11:45 PM
Hi,
From the W5500 datasheet:
"With SPI Mode 0 and 3, data is always latched in on the rising edge of SCLK and
always output on the falling edge of SCLK.The W5500 supports SPI Mode 0 and Mode 3."
See Figure 6. SPI Mode 0 & 3 in the W5500 datasheet.
Regards,
Jesus
From the W5500 datasheet:
"With SPI Mode 0 and 3, data is always latched in on the rising edge of SCLK and
always output on the falling edge of SCLK.The W5500 supports SPI Mode 0 and Mode 3."
See Figure 6. SPI Mode 0 & 3 in the W5500 datasheet.
Regards,
Jesus
Feb 21, 2019
12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 21, 2019
12:12 AM
That is, you answered without even looking at the picture you specified?
The picture confirms that the change of data on both lines occurs on a falling front and reading on an ascending one.
Both for transfer and for reading.
And this does not correspond to the picture from your datasheet
At the moment, the only solution comes to me - to switch modes after each transmission and reception
The picture confirms that the change of data on both lines occurs on a falling front and reading on an ascending one.
Both for transfer and for reading.
And this does not correspond to the picture from your datasheet
At the moment, the only solution comes to me - to switch modes after each transmission and reception
Mar 11, 2019
03:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2019
03:32 PM
Hi,
Maybe I'm wrong but from the W5500 datasheet it seems to me that the device is reading (sampling) on the rising edge and transmitting on the falling edge (toggling).
Check SPI_MASTER APP in DAVE
XMC_SPI_CH_ConfigureShiftClockOutput(XMC_SPI0_CH1,
XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_DISABLED,
XMC_SPI_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK);
XMC_SPI_CH_DataLatchedInTrailingEdge(XMC_SPI0_CH1);
Regards,
Jesus
Maybe I'm wrong but from the W5500 datasheet it seems to me that the device is reading (sampling) on the rising edge and transmitting on the falling edge (toggling).
Check SPI_MASTER APP in DAVE
XMC_SPI_CH_ConfigureShiftClockOutput(XMC_SPI0_CH1,
XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_DISABLED,
XMC_SPI_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK);
XMC_SPI_CH_DataLatchedInTrailingEdge(XMC_SPI0_CH1);
Regards,
Jesus