<?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>52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70980/52820-lpcom-problem</link><description>Dear friend I checked the data sheet of 52820 and I didn&amp;#39;t see any LPCOMP peripherals. Check the data sheet of 52832, there are LPCOMP peripherals. Comparing COMP and LPCOMP, the registers are basically the same. It is also found that COMP supports low</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2021 09:28:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70980/52820-lpcom-problem" /><item><title>RE: 52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/thread/293264?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 09:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90fd6051-575a-4191-be84-b9be63d6b0df</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The peripherals are not defined inside PRS, the PRS (Peripheral Resource Sharing) library is used to manage shared resources in the chip. For the COMP peripheral, this means allowing COMP and LPCOMP to be used from the same application, while preventing both from being initialized at the same time. Since nRF52820 does not include a LPCOMP peripheral, there is no need to add COMP to PRS.&lt;/p&gt;
&lt;p&gt;NRF_COMP is defined in&amp;nbsp;nRF5_SDK_17.0.2_d674dde\modules\nrfx\mdk\nrf52820.h:2056.&lt;/p&gt;
&lt;p&gt;Can you post the code you used for configuring and initializing the COMP peripheral?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/thread/293232?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 03:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd5854cb-98ea-4a9d-83d4-35503a57aece</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I added the COMP code on sdk17.0.2 and ran it on 52820, but I saw that the interruption had no effect. Check the nrfx_prs.h file. NRF_COMP is not defined on 52820.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1612756489292v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What should I do to use interruption?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Zero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/thread/291724?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 09:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25902fe-8949-44ad-a69e-c2ea55fcc885</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="zero"]1. If COMP is set to low power mode, what is the difference with LPCOMP?[/quote]
&lt;p&gt;Like I said, these are two separate peripherals, with different feature set. COMP will still have the same features, regardless of the configured mode. The mode will affect the propagation delay, causing slower response time. See&amp;nbsp;&lt;a title="COMP Electrical Specification" href="https://infocenter.nordicsemi.com/topic/ps_nrf52820/comp.html?cp=4_3_0_5_4_3_0#unique_1131348320"&gt;COMP Electrical Specification&lt;/a&gt;&amp;nbsp;for details on this.&lt;/p&gt;
[quote user="zero"]2. Can COMP be set to low power to wake up the chip?[/quote]
&lt;p&gt;No, this is a feature of the LPCOMP peripheral only, it is not available from COMP peripheral.&lt;/p&gt;
[quote user="zero"]3. COMP is set to low power mode. Is the power consumption of COMP consistent with that of LOPCOM?[/quote]
&lt;p&gt;No, you can compare the current consumption of the two peripherals in the nRF52832 PS chapters&amp;nbsp;&lt;a title="  COMP Electrical Specification  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/comp.html?cp=4_2_0_37_3_0#unique_1861016617"&gt;COMP Electrical Specification&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="  LPCOMP Electrical Specification  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/lpcomp.html?cp=4_2_0_38_3_0#unique_496437328"&gt;LPCOMP Electrical Specification&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/thread/291624?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 02:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22529666-157b-4f02-ac21-a2a2f8c5b510</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your help, but I still have the following questions:&lt;br /&gt;1. If COMP is set to low power mode, what is the difference with LPCOMP?&lt;br /&gt;2. Can COMP be set to low power to wake up the chip?&lt;br /&gt;3. COMP is set to low power mode. Is the power consumption of COMP consistent with that of LOPCOM?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Zero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52820 LPCOM problem</title><link>https://devzone.nordicsemi.com/thread/291515?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 13:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fde1821-f595-4058-b565-48446a82de6e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no LPCOMP peripheral in the nRF52820, only LPCOMP is available.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The two peripherals is not identical. COMP have more steps on the reference ladder (64 vs 15 for LPCOMP), and more choices of references (including 8 external references, internal reference voltages (1.2, 1.8, and 2.4V), LPCOMP can only use a fraction of VDD as reference, or 2 external reference). COMP also supports differential mode, where you can detect small variances between two input signals.&lt;/p&gt;
&lt;p&gt;LPCOMP can on the other hand be used to wake the chip from System OFF sleep mode, this is not possible with the COMP peripheral.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>