<?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>Using TWI with PPI does not call the TWI handler.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75519/using-twi-with-ppi-does-not-call-the-twi-handler</link><description>Hey! 
 I will post the whole code if necessary but for instance as I thought it would be a little glitch in my code, I tried to explain the basics of my problem for now: 
 - nrf52840 DK v1.1.0 
 - nrf5 SDK v17.02 
 - the template project in the peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 May 2021 10:34:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75519/using-twi-with-ppi-does-not-call-the-twi-handler" /><item><title>RE: Using TWI with PPI does not call the TWI handler.</title><link>https://devzone.nordicsemi.com/thread/311727?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 10:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5279f463-2679-4efb-8b57-fdf01468b6dd</guid><dc:creator>Neuro_Rouh</dc:creator><description>&lt;p&gt;OOPS!&lt;/p&gt;
&lt;p&gt;It seems that the problem is not due to the PPI channel, I had not notice that even in the normal mode, the I2C sometimes returns error, I dont know why!&lt;/p&gt;
&lt;p&gt;After calling the ret_code_t err_code = nrf_drv_twi_rx(), I get ERROR 3 [NRF_ERROR_INTERNAL] , but sometimes it works fine, I should work a bit more on it while any recommendation is appreciated.&lt;/p&gt;
&lt;p&gt;P.S. my target is&amp;nbsp; an LM75 module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using TWI with PPI does not call the TWI handler.</title><link>https://devzone.nordicsemi.com/thread/311628?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 05:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1cad04-b290-4864-b600-471285696b03</guid><dc:creator>Neuro_Rouh</dc:creator><description>&lt;p&gt;&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/75519/using-twi-with-ppi-does-not-call-the-twi-handler/311453#311453"]&lt;p&gt;Are you checking the error code&amp;nbsp;from&amp;nbsp;nrf_drv_ppi_channel_assign() and&amp;nbsp;&amp;nbsp;nrf_drv_ppi_channel_fork_assign()?&lt;/p&gt;
&lt;p&gt;Are you calling&amp;nbsp;nrf_drv_ppi_channel_enable() afterwards?&lt;/p&gt;[/quote]
&lt;p&gt;Yes I do, I dont have problem with the nrf_drv_ppi_channel_assign(), as my PPI channel triggers ADC channel , as it is supposed to.&lt;/p&gt;
&lt;p&gt;and I have called the APP_ERROR_CHECK(err_code); after &amp;nbsp;nrf_drv_ppi_channel_fork_assign(), no error pops up.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/75519/using-twi-with-ppi-does-not-call-the-twi-handler/311453#311453"]Maybe take a look at this example in general:[/quote]
&lt;p&gt;The example you shared is basically on GPIOTE module, as I mentioned I have successfully connected a TIMER event to a SAADC task, so in general I know how to configure a PPI channel, respectfully I need a more specific help on configuring PPI to run a TWI task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using TWI with PPI does not call the TWI handler.</title><link>https://devzone.nordicsemi.com/thread/311453?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 12:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f778a81-e6e2-4d63-929d-03699fa64626</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Are you checking the error code&amp;nbsp;from&amp;nbsp;nrf_drv_ppi_channel_assign() and&amp;nbsp;&amp;nbsp;nrf_drv_ppi_channel_fork_assign()?&lt;/p&gt;
&lt;p&gt;Are you calling&amp;nbsp;nrf_drv_ppi_channel_enable() afterwards?&lt;/p&gt;
&lt;p&gt;Maybe take a look at this example in general:&lt;br /&gt;&lt;a href="https://github.com/bjornspockeli/nRF52_ppi_timper_gpiote_example/blob/master/main.c"&gt;https://github.com/bjornspockeli/nRF52_ppi_timper_gpiote_example/blob/master/main.c&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>