<?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>Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82190/does-the-nrf52840-only-supports-8n1</link><description>It looks like the nRF52840 only supports: 
 
 8 data bits 
 1/2 stop bits 
 even/no parity 
 
 So 7E1 is not a supportable mode...is this true? is there a possible work around?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jan 2022 11:07:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82190/does-the-nrf52840-only-supports-8n1" /><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/348249?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 11:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7db1d4-b60b-47c5-8b1e-92acb48ce080</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Keegan,&amp;nbsp;&lt;br /&gt;Jared is on vacation so I will take over the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF52840 only support 8 data bits and with even or no parity bit (8E1 or 8N1 we will ignore the 2 stop bit scenario as it&amp;#39;s not relevant).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So it won&amp;#39;t be compatible out of the box with 7E1.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you use 8E1 then the number of bit transmitted or received will not match and it won&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only option is to use 8N1 making it&amp;#39;s the same number of bit on every frame (8 bit per frame)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But still this doesn&amp;#39;t mean you can use 8N1 to communicate 7E1. You will need to add a workaround to translate from 7E1 to 8N1 when receiving the data from the modem. It is to ignore the last bit (the parity bit) and shift the data one bit to the left.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When transmitting you need to do the opposite, shift one bit to the right and then calculate the parity bit to add that in.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1642504014218v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/348080?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 14:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9629e9c-7436-4561-a14d-ab4518b076fa</guid><dc:creator>Keegan Veldsman</dc:creator><description>&lt;p&gt;&lt;span&gt;Sorry about the delay, I was away for a bit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then using this current chip and its built in UART you should be able to take a incoming 7E1 and it will auto configure it to 8E1? Iam I correct? Then my implementation must be incorrect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/342288?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 10:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a24211d-998d-4a89-a2e9-24d283f7aec6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The data buffer should be padded auto if the data buffer isn&amp;#39;t 8 bits since the UART peripheral sends a byte at a time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/341841?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 11:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d8fc138-84da-4f5e-855a-69fd221a7582</guid><dc:creator>Keegan Veldsman</dc:creator><description>&lt;p&gt;This is when using the built in UART so I don&amp;#39;t think it will be possible to do padding since we don&amp;#39;t have control over it.&lt;/p&gt;
&lt;p&gt;Padding would be possible if we were processing the raw serial input ourselves....correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/341805?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 09:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13f83ab7-573a-48de-bff9-88e304652005</guid><dc:creator>Keegan Veldsman</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry&amp;nbsp;if I wasn&amp;#39;t very clear, we developed a modem and we are using the nRF52840 as our processor...so you suggesting when we set 7E1 we should just pad the data bits to make it 8 data bits format and then it will work?&lt;/p&gt;
&lt;p&gt;Does that mean that the config 7E1 by itself doesn&amp;#39;t work on the nRF52840 chip?&lt;/p&gt;
&lt;p&gt;(sorry if my question seems rudimentary, Iam not a experienced programmer yet)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;KR,&lt;/p&gt;
&lt;p&gt;Keegan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the nRF52840 only supports 8N1</title><link>https://devzone.nordicsemi.com/thread/341328?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 14:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98308a3f-751b-4abd-a8aa-27f5690518a7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand the issue 100% correct, but couldn&amp;#39;t you just pad the data bits so that it becomes 8 bits?&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>