<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>cromannon's Groups Activities</title><link>https://community.arm.com/members/cromannon</link><description>Recent activity for people in cromannon's group</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>Ask A Question I</title><link>https://community.arm.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Sat, 19 Sep 2020 20:07:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f49fa0fe-9827-4df7-a033-7db48e3a4f71</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>problems with timers and i2c</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/47675/problems-with-timers-and-i2c</link><pubDate>Sat, 19 Sep 2020 20:07:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:783e1c16-40c0-4dfc-85ac-98dd318f89db</guid><dc:creator>cromannon</dc:creator><description>&lt;p&gt;hello, i&amp;#39;m using a stm32f4 discovery to control a dc motor, for this i&amp;#39;ve used different timers for the different actions i have to do in this one, TIM2 is in charge of reading encoder, TIM3 is the pwm generator that goes to a H bridge, TIM4 i use it in Input Capture mode to measure the speed, and the TIM7 I use it to generate an interpolator of order 7, together they work perfectly, but within my application I want to measure the current, for this I am using a module IN219 which communicates by i2c and I am using an adafruit library, separately I made a current control of the motor and it worked perfectly, but when I introduced it in the code with all the timers I mentioned, the I2C communication was taken and stopped sending me data, I tried changing from i2c1 to i2c2 but there was no difference, I also noticed that if I remove the interpolator sequence in the TIM7 the communication was again more stable, but within my application this sequence is important.&amp;nbsp;I also want to comment that TIM7 has lowered the priority 7, but it doesn&amp;#39;t solve things&lt;/p&gt;
&lt;p&gt;is there any conflict between the i2c communication and the timers???&lt;/p&gt;
&lt;p&gt;Besides all this, I had planned to use the interruptions of my timers to make the reading of this sensor since I need to measure only the current peaks when measuring the current in a modulated signal, but the same thing happens, the communication is frozen if I want to make the current request within a timer.&lt;/p&gt;
&lt;p&gt;it is possible to make i2c requests within a timer?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can someone help me to solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>