How to generate a 1000Hz signal on PC7 using TIM3 or TIM8 on STM32L476QE 80MHz.
Using a prescaler 1000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 7:03 AM
With the SW generated by MX as example I have a timer that seems to work, but not a signal on PC7.
- Labels:
-
STM32CubeMX
-
STM32L4 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 7:16 AM
As a test, set it as GPIO output and toggle.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 7:27 AM
I suggest that you show main.c and attach .ioc file so people might be able to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 7:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 8:01 AM
My point is, that your hardware might be faulty (bad solder joint, some other problem on your board), and you can easily find it out by toggling the pin as GPIO, exactly as when blinking a LED.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 8:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 8:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 9:18 AM
Read out and check/post the TIM and relevant GPIO registers content.
Note that TIM8 is an Advanced Timer, so it has to have TIMx_BDTR.MOE set.
> CLEAR_BIT(htim8.Instance->CR1, TIM_CR1_CEN);
This will stop the timer.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 12:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-09 2:16 PM
Image paste does not work here, even if it appears that it does.
Please upload it as a file - click on the "image" icon in the bar at bottom of edit window.
Please make sure the values are not displayed as decimal.
JW
