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?
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'.
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.