<?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>nRF 52832 Timer Interrupt and Frequency adjustment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54821/nrf-52832-timer-interrupt-and-frequency-adjustment</link><description>Hello, 
 I need my timer to work at 9600 bps frequency. So accordingly my frequency is 16MHz and to get 9600 Hz I calculated the prescaler to be 10.7 ~ 11. But in the timer code (pca10040) I couldnt find any provision to set the prescaler as required</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2019 10:37:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54821/nrf-52832-timer-interrupt-and-frequency-adjustment" /><item><title>RE: nRF 52832 Timer Interrupt and Frequency adjustment</title><link>https://devzone.nordicsemi.com/thread/222050?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 10:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73fdf2db-681e-4ce1-af9b-3ac85bb78646</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, the closest would then be prescaler set to 0, and CC value set to 833.&lt;/p&gt;
&lt;p&gt;That said, you should take a look at the project attached in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40385/nrf52832-bit-band-uart-problem-19200-baudrate/157240#157240"&gt; this post&lt;/a&gt;. It uses&amp;nbsp;&lt;span&gt;the SAADC to implement a UART RX and PWM for UART TX.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alternatively, you could upgrade to nRF52840 to get 2 UART(E) peripherals.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 52832 Timer Interrupt and Frequency adjustment</title><link>https://devzone.nordicsemi.com/thread/222023?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 09:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25b0a250-61af-4c9b-b1b3-57150e489c06</guid><dc:creator>PoojaK</dc:creator><description>&lt;p&gt;I want the interrupt at the frequency of 9600 Hz and not 9600 times each second. So basically I want an interrupt after every 1/9600 seconds. I am trying to implement software uart using GPIOs.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 52832 Timer Interrupt and Frequency adjustment</title><link>https://devzone.nordicsemi.com/thread/221933?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 17:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396c8aed-df67-4d85-92cb-4e2d9d308068</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How often the TIMER will generate an interrupt depends on the prescaler, and the value set in the&amp;nbsp;Capture/Compare register (CC[x]). From the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/timer.html?cp=4_2_0_23#concept_xbd_hqp_sr"&gt;TIMER chapter in the PS&lt;/a&gt;, we have that, &amp;quot;&lt;span&gt;A COMPARE event is generated when the Counter is incremented and then becomes equal to the value specified in one of the capture compare registers.&amp;quot;&lt;/span&gt;&lt;/p&gt;
[quote userid="85087" url="~/f/nordic-q-a/54821/nrf-52832-timer-interrupt-and-frequency-adjustment"]9600 bps[/quote]
&lt;p&gt;You want to generate an interrupt 9600 times each second? If yes, could you explain the use-case, and what you are planning to do in the interrupt handler ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>