cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone interface the STM32 µp withe a nxp SC16IS72 uart bridge in SPI??

daviddavid97
Associate
Posted on February 08, 2010 at 09:20

Does anyone interface the STM32 µp withe a nxp SC16IS72 uart bridge in SPI??

3 REPLIES 3
swhite2
Associate III
Posted on May 17, 2011 at 13:39

I've written code for the NXP SC16IS750 I2C/SPI UART which is probably similar but that was on a different uP not a STM32. I found the SC16IS750 easy to get working with both SPI and I2C so I'm betting the issue is on the STM32 end. I have written SPI code on the STM32 but not I2C although I'm about to...

daviddavid97
Associate
Posted on May 17, 2011 at 13:39

Hello thanks for the reply,

Which kind of µp did you use with the SC16IS750

You said a the end of your message that you write SPI code on STM32 can you post it  that could help me !  which peripheral did you interface in SPI? 

From: StuartMW

Posted: Monday, February 08, 2010 2:35 PM

Subject: Does anyone interface the STM32 µp withe a nxp SC16IS72 uart bridge in SPI??

I've written code for the NXP SC16IS750 I2C/SPI UART which is probably similar but that was on a different uP not a STM32. I found the SC16IS750 easy to get working with both SPI and I2C so I'm betting the issue is on the STM32 end. I have written SPI code on the STM32 but not I2C although I'm about to...

sgomes
Associate II
Posted on May 17, 2011 at 13:39

I just recently had trouble with doing SPI over the USART on the STM32.  My trouble was that the SPI bus is a MSB first bus and the USART is a LSB first bus.  You have to reverse the order of your data bits before putting them in the transmit register.  Why they didn't provide a MSB/LSB first bit in the control register is beyond me.