<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Best serial interface to use with nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71483/best-serial-interface-to-use-with-nrf9160</link><description>Hello 
 I studying the nrf9160 , is it better to use the UART interface versus the SPI and do I need to use the flow control ? 
 
 Thanks a lot 
 
 Stephane Boudaud</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Feb 2021 18:11:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71483/best-serial-interface-to-use-with-nrf9160" /><item><title>RE: Best serial interface to use with nrf9160</title><link>https://devzone.nordicsemi.com/thread/293858?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 18:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39600de1-5df1-4429-bf55-8e53a8f4bbff</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Thanks Edvin&lt;/p&gt;
&lt;p&gt;I have a LP UART interface and to prevent receiver buffer overuns and associated data corruption, I will try to get&amp;nbsp; the flow control added.&amp;nbsp; (data rate is 9600bd)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best serial interface to use with nrf9160</title><link>https://devzone.nordicsemi.com/thread/293813?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 14:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3881141-c109-4323-be8d-d3718a08f1fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which one is better totally depends on the use case. Some sensors only support SPI, while others only support UART. They have different pros and cons. Some of them are:&lt;/p&gt;
&lt;p&gt;SPI is usually faster, but requires at least 4 pins.&lt;/p&gt;
&lt;p&gt;UART is slower, but you can manage with 2 pins in some cases (without flow control).&lt;/p&gt;
&lt;p&gt;SPI expands well, meaning you can use several devices on the same SPI bus. One extra device on the bus only requires 1 extra gpio (Slave/Chip Select).&lt;/p&gt;
&lt;p&gt;What are you going to communicate with, and what is the throughput you need? And how about error detection? Is it crucial if you from time to time get a bit flipped?&lt;/p&gt;
&lt;p&gt;You also have TWI (the same as I2C), which can attach a lot more devices using only 2 gpios.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>