<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>timing error -timer setup</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/40059/timing-error--timer-setup</link><description> 
Hi there, I am very new in programming micro.I am using stm32f100
discovery board and made a small code to turn the stm board led on
for 5 second once hit the user push button.then the led goes off.The
partial code below I have to do the work.The program</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: timing error -timer setup</title><link>https://community.arm.com/thread/106824?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2013 11:14:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:63a19fe2-bf5c-4623-a621-5941d9097a94</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, Bradford didn&amp;#39;t talk about use of tab key contra space key.
Just that if you use the tab key to indent, you should configure the
editor to convert indents into a sequence of spaces. Because source
code that contains the tab character will expand differently
depending on where you post it, or which editor you open the source
code in.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timing error -timer setup</title><link>https://community.arm.com/thread/80946?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2013 10:53:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:516caf48-2a58-45f4-9c30-33bfac1e0ac5</guid><dc:creator>robyn clarke</dc:creator><description>&lt;p&gt;&lt;p&gt;
@Bradford,sorry about that.Next time I will use tab instead the
space bar.Thanks for the suggestion.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timing error -timer setup</title><link>https://community.arm.com/thread/106836?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2013 10:51:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9ae737b6-03ca-4890-92f6-3e2f82a29e5f</guid><dc:creator>robyn clarke</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks a lot. You are right,the clock was still running.I have
reset the clock and it works perfect now. That&amp;#39;s great!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timing error -timer setup</title><link>https://community.arm.com/thread/92963?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2013 04:00:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:09e93333-4817-4384-987c-f3c9d737f0bd</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t work with your processor and haven&amp;#39;t the time to retrieve
a datasheet for it. But are you making sure that the actual counter
register of that timer is reset every time you start the timer. If
the timer is free-running, your delay will depend on where it is in
the count sequence when you press your button.&lt;/p&gt;

&lt;p&gt;
Enabling a timer isn&amp;#39;t normally resetting the timer, making it a
difference when you enable the timer the first time, and when you
enable the timer following times.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timing error -timer setup</title><link>https://community.arm.com/thread/61620?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2013 19:05:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:86e2c70f-aa72-4366-b23c-f4df8e4e9145</guid><dc:creator>doubt that my ISP Al Bradford</dc:creator><description>&lt;p&gt;&lt;p&gt;
Just one quick suggestion. Please set you tab selection to create
spaces instead of tab characters and re-post your code. We might be
able to read you code a bit better.&lt;/p&gt;

&lt;p&gt;
Rgds,&lt;br /&gt;
Bradford&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>