cancel
Showing results for 
Search instead for 
Did you mean: 

SSP0 reception problem.

rajendrask
Associate II
Posted on December 18, 2007 at 09:02

SSP0 reception problem.

1 REPLY 1
rajendrask
Associate II
Posted on May 17, 2011 at 09:48

Hello,

The code provided with STR910 evaluation board is wrong.

In Below code we need to make enable.

Now i am unable to receive the data on SSP0 in loop back mode.

Please let us know the procedure.

void GPIO_Configuration(void)

{

GPIO_InitTypeDef GPIO_InitStructure;

/* SSP0 and SSP1 pins Config */

GPIO_DeInit(GPIO5);

/*Gonfigure SSP0_CLK, SSP0_MOSI, SSP0_nSS pins */

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_7;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Disable;

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt2 ;

GPIO_Init (GPIO5, &GPIO_InitStructure);

/*Gonfigure SSP0_MISO pin GPIO5.6*/

GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;

GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1 ;

GPIO_Init (GPIO5, &GPIO_InitStructure);

GPIO_DeInit(GPIO3);

/*Gonfigure SSP1_MISO pin */

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Disable;

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt2 ;

GPIO_Init (GPIO3, &GPIO_InitStructure);

/*Gonfigure SSP1_CLK, SSP1_MOSI, SSP1_nSS pins */

GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4| GPIO_Pin_6|GPIO_Pin_7;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;

GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1 ;

GPIO_Init (GPIO3, &GPIO_InitStructure);

}