cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3 Discovery Counter

mattfox
Associate II
Posted on July 16, 2013 at 06:52

I'm working with a quadrature decoder that I set up on timer 8.  I'm having trouble because the counter on timer 8 only seems to count up to 16 bits.  I really need it to count up to 32 bits.  Is it possible to configure the counter to do this?

I tried doing this:

TIM_TimeBaseStructure.TIM_Period = 0xFFFFFFFF;

But it hasn't worked for me.  Any ideas?  Thanks in advance for the help!

#know-your-tools
21 REPLIES 21
Posted on March 27, 2015 at 19:38

Yes, the video is using Keil's libraries, not ST's libraries which I cited in response to your question. Use the ST library, build the project under the ''Project'' tree there, and use the example templates (clone them, copy them, ..) provided by ST

Here's the link without the ''STM32F3-DISCO'' name, bottom of the page, red download button. This is the Standard Peripheral Library

http://www.st.com/web/en/catalog/tools/PF258154

C:\Keil4\ARM\Examples\ST\STM32F3-Discovery_FW_V1.0.0\Project\Peripheral_Examples\CRC_8BitsMessage\MDK-ARM\CRC.uvproj

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
adriano
Associate II
Posted on March 30, 2015 at 16:48

- Edit: my mistake, sorry -