STM32F407VG Timer3 configuration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-19 11:19 AM
Posted on September 19, 2016 at 20:19
I'm new to this microprocessor, and am trying to configure Timer3 with my own code as opposed to that generated by STM32CubeMx / HAL. This is mostly to learn the timer peripheral, but I may want to implement my own code at some point.
I believe I've written my code correctly, but none of the data is getting written to the registers. Is there a register or command that must be unlocked before I can access the Timer3 registers? Where in the documentation is this described?Thanks in advance for any assistance.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-19 4:18 PM
Posted on September 20, 2016 at 01:18
Is there a register or command that must be unlocked before I can access the Timer3 registers?
Well you have to enable the peripheral clock for the synchronous logic to function.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-20 1:57 AM
Posted on September 20, 2016 at 10:57
Hi barnett.andrew,
I recommend you that first you check and run the ready to use example existing in the Library package . You can follow the same configuration flow. For the STM32F407, you find timer example either : - Ready to use with STM32F407-discoveryat this path: STM32Cube_FW_F4_V1.13.0\Projects\STM32F4-Discovery\Examples\TIM - Ready to use with STM32F407x eval-board this path: STM32Cube_FW_F4_V1.13.0\Projects\STM324xG_EVAL\Examples\TIM As well, there is application note that gives a summerise for the main feature and use-cases of STM32 Timer : -Hannibal-