Dear Forum-Member,

i have a problem by receive data over dual port spi, transmit is all ready done,

Configuration

Code:
//SCLK configuration  5.2
    const XMC_GPIO_CONFIG_t SPI_U2C0_sclk_config   = 
    { 
     .mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1,
    .output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH,
    .output_strength = XMC_GPIO_OUTPUT_STRENGTH_MEDIUM
    };  
    
    
//MISO_ 5.0
    const XMC_GPIO_CONFIG_t SPI_U2C0_DATA0   = 
    { 
     .mode = >XMC_GPIO_MODE_OUTPUT_PUSH_PULL,
    };              
    
//MISO_5.1
    const XMC_GPIO_CONFIG_t SPI_U2C0_DATA1 = 
    { 
     .mode = >XMC_GPIO_MODE_OUTPUT_PUSH_PULL,
    };      
    
//CS configuration  5.3
    const XMC_GPIO_CONFIG_t SPI_U0C1_cs0_config   = 
    { 
     .mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1,
    .output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH,
    .output_strength = XMC_GPIO_OUTPUT_STRENGTH_MEDIUM
    };  
    
//SPI U2C0 Konfiguration    
    const XMC_SPI_CH_CONFIG_t SPI_U2C0_config =
    {
      .baudrate = 1000000,                         // 1 MHz                  
      .bus_mode = XMC_SPI_CH_BUS_MODE_MASTER,
      .selo_inversion = XMC_SPI_CH_SLAVE_SEL_SAME_AS_MSLS,
      .parity_mode = XMC_USIC_CH_PARITY_MODE_NONE
    };
Initialisation


Code:
XMC_GPIO_Init(P5_0, &SPI_U2C0_DATA0);                                      
XMC_USIC_CH_SetInputSource(XMC_SPI2_CH0, XMC_USIC_CH_INPUT_DX0, USIC2_C0_DX0_P5_0);  //Setze Input Path
XMC_GPIO_Init(P5_1, &SPI_U2C0_DATA1);                                 
XMC_USIC_CH_SetInputSource(XMC_SPI2_CH0, XMC_USIC_CH_INPUT_DX0, USIC2_C0_DX0_P5_1);  //Setze Input Path
XMC_GPIO_SetHardwareControl(P5_0, P5_0_HWCTRL_U2C0_DOUT0);
XMC_GPIO_SetHardwareControl(P5_1, P5_1_HWCTRL_U2C0_DOUT1);
XMC_GPIO_Init(P5_3, &SPI_U2C0_cs0_config);                                          //Konfiguration SELO0
XMC_GPIO_Init(P5_2, &SPI_U2C0_sclk_config);                                         //Konfiguration sclk
XMC_SPI_CH_SetBitOrderMsbFirst(XMC_SPI2_CH0);
XMC_SPI_CH_SetTransmitMode(XMC_SPI2_CH0, XMC_SPI_CH_MODE_DUAL);
XMC_SPI_CH_Init(XMC_SPI2_CH0, &SPI_U2C0_config);
    
XMC_SPI_CH_Start(XMC_SPI2_CH0);
Does one see why it could not work or has an idea on what to look for. If I put may DUAL SPI SLAVE on the XMC PIN the Pin goes low.

Best regards and thanks in advanced

EbbeSand