<?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/"><channel><title>Renesas Solution Starter Kit for RX23E-A: build and run the Thermocouple application</title><link>/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-build-and-run-the-thermocouple-application</link><description>The thermocouple appnote for Road test: Renesas Solution Starter Kit for RX23E-A comes with example firmware. In combination with the stater kit PC Tool, you get a temperature display. The firmware source is available as an e...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Renesas Solution Starter Kit for RX23E-A: build and run the Thermocouple application</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-build-and-run-the-thermocouple-application</link><pubDate>Mon, 17 Jul 2023 18:57:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8b7b2246-07c6-4d37-a07b-4153e7d1d4ec</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;A few captures while running the code:&lt;/p&gt;
&lt;p&gt;2 DACs read&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;R_Config_DSAD0_Get_ValueResult( &amp;amp;dsad0_reg);&lt;br /&gt;&lt;/span&gt;&lt;span&gt;R_Config_DSAD1_Get_ValueResult( &amp;amp;dsad1_reg);&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;img height="38" src="/resized-image/__size/594x76/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-8b7b2246-07c6-4d37-a07b-4153e7d1d4ec/pastedimage1689619711115v1.png" width="297" alt=" " /&gt;&lt;/p&gt;
&lt;pre&gt;From 2 complement to signed int&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/** Flag mask, Sign extension */&lt;/span&gt;&lt;br /&gt;&lt;span&gt; dsad0_value = (&lt;/span&gt;&lt;span&gt;int32_t&lt;/span&gt;&lt;span&gt;) ((dsad0_reg &amp;amp; 0x00FFFFFFU) &amp;lt;&amp;lt; 8) &amp;gt;&amp;gt; 8;&lt;/span&gt;&lt;br /&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/** Flag mask, Sign extension */&lt;/span&gt;&lt;br /&gt;&lt;span&gt; dsad1_value = (&lt;/span&gt;&lt;span&gt;int32_t&lt;/span&gt;&lt;span&gt;) ((&lt;/span&gt;&lt;span&gt;dsad1_reg&lt;/span&gt;&lt;span&gt; &amp;amp; 0x00FFFFFFU) &amp;lt;&amp;lt; 8) &amp;gt;&amp;gt; 8;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img height="34" src="/resized-image/__size/612x68/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-8b7b2246-07c6-4d37-a07b-4153e7d1d4ec/pastedimage1689619854034v2.png" width="306" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Convert ref junction to temp&lt;/p&gt;
&lt;pre&gt;&lt;br /&gt;float R_RTD_DsadToTemp (float dsad)&lt;br /&gt;{&lt;br /&gt; float rrtd = (D_RTD_GAIN * dsad) + D_RTD_OFFSET; /** Convert DSAD Value to RTD resistance value [ohm] */&lt;br /&gt; uint16_t idx = R_CALC_BinarySearch(s_rtd_table, D_RTD_TABLE_SIZE, rrtd);&lt;br /&gt;&lt;br /&gt;/** Set a temperature range that includes the value of the argument */&lt;br /&gt; float x0 = s_rtd_table[idx]; /** x0:Temperature range lower limit resistance [ohm] */&lt;br /&gt; float x1 = s_rtd_table[idx + 1]; /** x1:Temperature range upper limit resistance [ohm] */&lt;br /&gt;&lt;br /&gt;/** convert idx to temperature */&lt;br /&gt; float y0 = (float) idx + D_RTD_TABLE_TOP_TEMPARATURE;&lt;br /&gt;&lt;br /&gt;/** convert idx + 1 to temperature */&lt;br /&gt; float y1 = (float) (idx + 1) + D_RTD_TABLE_TOP_TEMPARATURE;&lt;br /&gt;&lt;br /&gt;float f_temp = R_CALC_Lerp(x0, y0, x1, y1, rrtd); /** Calculated temperature [degree] */&lt;br /&gt;&lt;br /&gt;return f_temp;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;img height="15" src="/resized-image/__size/632x30/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-8b7b2246-07c6-4d37-a07b-4153e7d1d4ec/pastedimage1689620180314v4.png" width="316" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;etc....&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26261&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas Solution Starter Kit for RX23E-A: build and run the Thermocouple application</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-build-and-run-the-thermocouple-application</link><pubDate>Fri, 23 Jun 2023 15:34:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8b7b2246-07c6-4d37-a07b-4153e7d1d4ec</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Very interesting! The e2studio is also used for Renesas RA microcontrollers too, so it&amp;#39;s good to see that the experience using it is transferrable.&lt;/p&gt;
&lt;p&gt;That Flash Programmer looks neat, it could be useful for in-the-field upgrades. Is that using the bootloader inside the RX chip, or is it some other chip on the development board?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26261&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>