Attachments are accessible only for community members.
Mar 10, 2020
07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2020
07:55 AM
Hi,
I'm using the SPI_Master app in Dave 4.42 with a XMC2Go board.
The App-configuration is seen in the attached picture SPI_Master_App_Setup.PNG.
You see that the SPI-Clock is set to High if active, transmit on rising edge.
Looking at the clock and data output pins signals (see attached word document)
it is clear that the data is taken not at the rising but at the falling edge, opposite to what is expected from
the App configuration.
If the App is configured to data at falling edge the data is in reality sampled at rising edge instead.
So it appears thate the clock edge is set opposite to what I choose in the App setup.
Is this an error in the App or are there any other hidden settings that I'm not aware off?
I'm using the SPI_Master app in Dave 4.42 with a XMC2Go board.
The App-configuration is seen in the attached picture SPI_Master_App_Setup.PNG.
You see that the SPI-Clock is set to High if active, transmit on rising edge.
Looking at the clock and data output pins signals (see attached word document)
it is clear that the data is taken not at the rising but at the falling edge, opposite to what is expected from
the App configuration.
If the App is configured to data at falling edge the data is in reality sampled at rising edge instead.
So it appears thate the clock edge is set opposite to what I choose in the App setup.
Is this an error in the App or are there any other hidden settings that I'm not aware off?
5 Replies
Mar 10, 2020
09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2020
09:59 AM
Hi,
You are asking for data shifted out on the rising edge and sampled on the falling edge. This what is visible on your picture, 01010100 or?
Regards,
Jesus
You are asking for data shifted out on the rising edge and sampled on the falling edge. This what is visible on your picture, 01010100 or?
Regards,
Jesus
Mar 10, 2020
10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2020
10:27 AM
Hi Jesus,
we are looking at the transmit data (on MOSI, blue curve) and the clock output (SCLK, yellow curve). There is not slave connectet in this example. I'm yust looking at the SPI Port pins. It looks to me that the data is clearly valid on falling edge, not on rising edge. So
'transmit' is on falling edge, not as it sould be according to the App configuration, where I want 'transmit on rising clock edge'.
we are looking at the transmit data (on MOSI, blue curve) and the clock output (SCLK, yellow curve). There is not slave connectet in this example. I'm yust looking at the SPI Port pins. It looks to me that the data is clearly valid on falling edge, not on rising edge. So
'transmit' is on falling edge, not as it sould be according to the App configuration, where I want 'transmit on rising clock edge'.
Mar 11, 2020
06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2020
06:31 AM
Hi,
In my opinion, your picture shows that the data starts at rising edge and slave have a stable data at the falling edge of the same clock cycle.
Regards,
Jesus
In my opinion, your picture shows that the data starts at rising edge and slave have a stable data at the falling edge of the same clock cycle.
Regards,
Jesus
Mar 11, 2020
08:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2020
08:00 AM
Hi,
So maybe the clock-setting reads as: Master transmits data at rising edge and slave receives at falling edge. So "transmit" does not mean the stable data but the data transition. This interpretation makes sense.
Thanks.
So maybe the clock-setting reads as: Master transmits data at rising edge and slave receives at falling edge. So "transmit" does not mean the stable data but the data transition. This interpretation makes sense.
Thanks.
Apr 01, 2022
07:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 01, 2022
07:28 PM
hi,
I have the same problem as you.I can't change the problem by using functions of XMC_SPI_CH_DataLatchedInLeadingEdge().Have you solved the problem yet?Can you tell me how to do that?
Regards,
Stitch
Stitch