<?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>How to run 2 baud rates on same UART pins in NRF51?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56968/how-to-run-2-baud-rates-on-same-uart-pins-in-nrf51</link><description>Hello, I am using NRF51822. I want to run UART communication on two different baud rates for 2 different hardware on pin number P09(TX) and P11(RX) respectively. I have to use these two pins only for communicating with my hardware. I have no problem in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 13:56:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56968/how-to-run-2-baud-rates-on-same-uart-pins-in-nrf51" /><item><title>RE: How to run 2 baud rates on same UART pins in NRF51?</title><link>https://devzone.nordicsemi.com/thread/230879?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 13:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145b3590-7e18-4668-b928-643cabed0796</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5734._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;
[quote userid="87131" url="~/f/nordic-q-a/56968/how-to-run-2-baud-rates-on-same-uart-pins-in-nrf51"]sometimes the data is not received. How can I fix this problem?.[/quote]
&lt;p&gt;First of all, you need to work out what the problem actually is!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Try to characterise &amp;quot;sometimes&amp;quot;&lt;/li&gt;
&lt;li&gt;Is it because your code is not listening at all at the correct time?&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Is it because your code is listening at&amp;nbsp;the wrong baud rate at the time?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;ie, is there &lt;em&gt;&lt;strong&gt;no&lt;/strong&gt; &lt;/em&gt;data received, or &lt;em&gt;&lt;strong&gt;partial&lt;/strong&gt; &lt;/em&gt;data received, or &lt;em&gt;&lt;strong&gt;corrupt&lt;/strong&gt; &lt;/em&gt;data received, or ... ?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Are there hardware issues in your switching of the 2 external devices?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;etc, etc, etc, ...&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;On debugging in general:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156"&gt;https://www.avrfreaks.net/comment/2418156#comment-2418156&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On debugging serial comms:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/comment/2336161#comment-2336161"&gt;https://www.avrfreaks.net/comment/2336161#comment-2336161&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lots of tips on how to make your system&amp;nbsp;&amp;quot;&lt;em&gt;debuggable&lt;/em&gt;&amp;quot;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/forum/how-do-i-check-life-signs-scope-atmega2560-standalone"&gt;https://www.avrfreaks.net/forum/how-do-i-check-life-signs-scope-atmega2560-standalone&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>