cancel
Showing results for 
Search instead for 
Did you mean: 

spi problem str7xf

blji
Associate
Posted on May 30, 2006 at 07:35

spi problem str7xf

2 REPLIES 2
blji
Associate
Posted on May 25, 2006 at 08:53

Hi

I have a problem in SPI to have communication work from slave->Master.

Use str7 library.

BSPI_BSPI0Conf(ENABLE);

BSPI_Init ( BSPI0 ) ;

BSPI_ClockDividerConfig ( BSPI0, 6);

BSPI_Enable ( BSPI0 , ENABLE );

BSPI_MasterEnable ( BSPI0,ENABLE);

BSPI_ClkActiveHigh(BSPI0,ENABLE);

BSPI_ClkFEdge(BSPI0,DISABLE);

BSPI_8bLEn(BSPI0,ENABLE);

BSPI_TrFifoDepth(BSPI0,9);

BSPI_RcFifoDepth(BSPI0,3);

I do have same functions for slave except

BSPI_MasterEnable ( BSPI0,DISABLE);

When I send byte from slave-> master is not working. But Master->slave works.

Also I have another issue in strxf I am not able to make spi1 function as master and spi0 slave.

Thanks

blji

alain2399
Associate II
Posted on May 30, 2006 at 07:35

Hi, I think that you posted your question in the wrong forum, as it is related to ARM STR7 nad not ST7 you should have posted it in the ''ARM7 STR7'' forum:

http://mcu.st.com/mcu/modules.php?mop=modload&name=Splatt_Forums&file=viewforum&forum=17

Regards