<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.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>Forum - Recent Threads</title><link>https://community.element14.com/products/manufacturers/ams_osram/f/forum</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Sun, 10 Nov 2024 09:04:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/products/manufacturers/ams_osram/f/forum" /><item><title>as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/55042?ContentTypeID=0</link><pubDate>Fri, 30 Aug 2024 10:11:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:9e62cc73-949a-4fdf-aa4e-19d8f96544c2</guid><dc:creator>TU1234</dc:creator><slash:comments>6</slash:comments><comments>https://community.element14.com/thread/55042?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to configure the SMUX and ADC gain of the as7421, but the files explaining the configuration specified in the datasheet are missing and the company&amp;#39;s support does not respond to my messages. I have already readout the specified RAM, but have not yet been able to recognize a pattern in the data that has already been entered in order to know where I have to write which values into the RAM. Has anyone solved a similar problem? I would appreciate it.&lt;/p&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/225220?ContentTypeID=1</link><pubDate>Sun, 10 Nov 2024 09:04:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bfe1bf27-c9a3-46ad-8031-e4cc9dd58fcc</guid><dc:creator>Akropolidis</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/225220?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on a sensor library for the AS7421 as well to use for a project and I was just wondering how you decided on the configuration (&lt;span&gt;{0x21,0x21,0x21,0x21,0x43,0x43,0x43,0x43})&amp;nbsp;&lt;/span&gt;for the&amp;nbsp;ram registers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/224237?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 06:35:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3c9a40a5-ba8c-4ec7-a445-cafe8185e33e</guid><dc:creator>TU1234</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/224237?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Thank you very much for the answer. In the meantime, I sorted the photodiodes using the LEDs. I got the same result.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why, but autozero doesn&amp;#39;t seem to have any effect. I have tried autozero with different settings, but the result is always the same as when autozero is off.&amp;nbsp; The channels are only zero, if I write certain values in COMPDAC. So I think I can use COMPDAC as an offset. However, the last 16 bytes of COMPDAC seems to have no effect. The measurements are always the same, no matter what I write in there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/224174?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2024 10:29:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:16c1ef42-91d8-49f3-a35b-cf6825c47269</guid><dc:creator>primalfido</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/224174?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I do not know what P2RAM does. I think COMPDAC is related to temperature compensation but I cannot know for sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You might be missing autozero, enable it and then set all of the SMUX RAM locations to 0 (i.e. ground), and you should see low/zero output from all of them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionally, using the default setup I stated above, you can arrange the channels in wavelength order using this ordering:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1, 48, 2, 34, 16, 32, 18, 51, 4, 49, 3, 35, 17, 33, 19, 54, 0, &lt;/span&gt;&lt;span&gt; 13, 50, 63, 52, 6, 38, 20, 36, 22, 55, 5, 53, 7, 39, 21, 37, 23, &lt;/span&gt;&lt;span&gt; 40, 26, 42, 24, 56, 10, 58, 8, 41, 27, 43, 25, 57, 11, 59, 9, 44, &lt;/span&gt;&lt;span&gt; 30, 46, 28, 60, 14, 62, 12, 45, 31, 47, 29, 61, 15&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is what I have gotten from observing the LEDs on/off and it seems to match the shapes given in the datasheet. The 830&amp;nbsp;photodiodes might not be necessary in the right integration order but you can always average them .&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem</title><link>https://community.element14.com/thread/224015?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 06:33:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:282973b8-3338-44d5-9595-b78090127afa</guid><dc:creator>CorinnaR.</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/224015?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p style="font-family:Calibri;font-size:10.0pt;margin:0in;"&gt;Hello,&lt;/p&gt;
&lt;p style="font-family:Arial;font-size:10.0pt;margin:0in;"&gt;thank you for showing interest in our products.&lt;/p&gt;
&lt;p style="font-family:Arial;font-size:10.0pt;margin:0in;"&gt;Please use the following link for your question.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ams-osram.com/support/technical-support-form" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;Technical support | ams OSRAM (ams-osram.com)&lt;/a&gt;&lt;/p&gt;
&lt;p style="font-family:Arial;font-size:10.0pt;margin:0in;"&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>as7421 problem</title><link>https://community.element14.com/thread/54923?ContentTypeID=0</link><pubDate>Fri, 09 Aug 2024 09:34:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:9381dffa-eade-4b8a-a95b-a0ff7ea012c8</guid><dc:creator>fjj19990227</dc:creator><slash:comments>5</slash:comments><comments>https://community.element14.com/thread/54923?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I am trying to control the as7421 to read spectral data using python&amp;#39;s smbus, but there is a problem that I can&amp;#39;t change the value of LTF_EN on the enable bit 0x60, so I can&amp;#39;t take spectral measurements, has anyone solved a similar problem, I&amp;#39;d appreciate it!&amp;nbsp;&lt;/p&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/224013?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 06:16:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f61c1dc7-82e4-41dd-a464-fdffc2a5b411</guid><dc:creator>CorinnaR.</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/224013?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Hello TU1234,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;thank you for showing interest in our products.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please use the following link for your question.&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;a href="https://ams-osram.com/support/technical-support-form" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;Technical support | ams OSRAM (ams-osram.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/223668?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 10:39:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7557b874-c0a2-4dcd-81c2-11fbd61f7db7</guid><dc:creator>TU1234</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/223668?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Many thanks for the informations. I also noticed that there are 5 LEDs.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you know what the &amp;quot;P2RAM&amp;quot; is for? Does the bit &amp;quot;REG_BANK&amp;quot; have to be set to high for the configuration? I initially read the RAM at the offsets with both variants and there are only a few bits different.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you know what &amp;quot;COMPDAC&amp;quot; is for? Does this RAM section also need to be initialized? I tried changing this section and the channel values ​​seem to change.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The ASETUP seems to work. I tried to set all photodiodes in the SMUX to low in order to then assign individual photodiodes to the ADCs, but some channels still change when all values ​​in the SMUX are low.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem with SMUX and GAIN configuration</title><link>https://community.element14.com/thread/223594?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 20:12:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb3d6f03-1c2b-492f-8629-8bcfd3c2c2dc</guid><dc:creator>primalfido</dc:creator><slash:comments>2</slash:comments><comments>https://community.element14.com/thread/223594?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/55042/as7421-problem-with-smux-and-gain-configuration/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;doing this from my phone so please bear with me. I have spent a good month figuring this chip out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;They&amp;rsquo;re not explained in the datasheet. in fact, much is not explained. Did you know there are 5 LEDS? Not 4!!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The smux is basically junk at boot up and needs to be set properly so there is no pattern.&lt;/p&gt;
&lt;p&gt;From what I&amp;rsquo;ve discovered through reversing it. The ASETUP ram locations are for the GAIN. ASETUPAB correspond to channels in the A and B integration and CD for the C and D integration. Both combined give the full 64 photodiodes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can set the values on eaxh cfg_ram between 0 and 8 giving a gain of 2^x. Setting 6 on CFG_RAM_x gives you a 64x Gain on photodiode x. I usually just fill all ram registers with the same value.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SMUX is a bit harder. On each SMUX_x location. Each of the 32 CFG_RAM register represents 2 photodiodes as 4-bit nibbles. Each of the 4-bit nibbles can be set to either 1,2,3 or 4 representing each of the 4 available ADCs in each integration annd 0 as ground&amp;nbsp;&lt;span style="font-family:inherit;"&gt;Each photodiode can be remapped to any integration cycle using this. However I am not quite sure which photodiode is mapped to which nibble.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;here is my procedure to set the smux with what works for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;go to each smux offset&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;set all cfg_ram to zero&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;then I use the configuration {0x21,0x21,0x21,0x21,0x43,0x43,0x43,0x43}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;set the offset to smux_a&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;write the config only at&amp;nbsp;cfg_ram_0 -&amp;gt; 7&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;smux_b,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;write the config to 8-&amp;gt;15&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;smux_c, config 16-&amp;gt; 23&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;smux_d config 24-&amp;gt; 31&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;now the channel data read out is not in order of the datasheet PD listing and needs to be sorted correctly. I have some indices figured out. I will post them in a reply when I find them&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem</title><link>https://community.element14.com/thread/223445?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 06:41:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ddc1dcb2-9813-4f91-9ef4-db4247e79054</guid><dc:creator>fjj19990227</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/223445?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;thanks it helps me a lot！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem</title><link>https://community.element14.com/thread/223328?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 10:37:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2628f69c-5c08-42e7-a225-26649de7524e</guid><dc:creator>primalfido</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/223328?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;PON must be enabled before LTF_EN can be enabled.&lt;/p&gt;
&lt;p&gt;Additionally there is a library here for Python that you can use which might be helpful:&amp;nbsp;&lt;a href="https://github.com/ahmed-f-alrefaie/as7421" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;github.com/.../as7421&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem</title><link>https://community.element14.com/thread/223210?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 01:25:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c0138b41-608a-4f95-a303-446e5c85d4c1</guid><dc:creator>fjj19990227</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/223210?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;as your suggestion，i check the i2c address.besides 0x64(correct address)，0x50-0x5F also exist at the same time. Weird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: as7421 problem</title><link>https://community.element14.com/thread/223198?ContentTypeID=1</link><pubDate>Sun, 11 Aug 2024 16:02:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:de3758a2-66e3-4cd5-932d-47175f56b5d9</guid><dc:creator>bidrohini</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/223198?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/products/manufacturers/ams_osram/f/forum/54923/as7421-problem/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;The problem may exist somewhere else other than the LTF_EN itself. I think it is better to verify the I2C address with an I2C scanner code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>