cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create dynamic frequency Signal

IsmailYangui
Associate III

I am trying to create a signal that changes its frequency in dynamic way using timers 

but i am having some issues to do it

can anyone give me some tips for easy implementation to do this task

1 ACCEPTED SOLUTION

Accepted Solutions
Gyessine
ST Employee

Hello @IsmailYangui 

Can you provide more details about your problem, such as the product you are using, the type of timer you want to use (advanced, general-purpose, etc.), and the specific issue you are experiencing?
If you have already attempted this in a project, can you share your .ioc file with us?

However, I have attached a project that uses the NUCLEO-U083RC board to generate a timer signal with a changing frequency during runtime. The signal starts with a 100 ms toggle for one second, then toggles every one second. You can visualize the signal using a logic analyzer, an oscilloscope, or the user LED.Capture d'écran 2026-02-27 153116.png

I hope this helps for now.
We look forward to your feedback.
Gyessine

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

9 REPLIES 9
TDK
Super User

> I am trying to create a signal that changes its frequency in dynamic way using timers 

Please expand on this. You haven't specified enough detail.

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Super User

@IsmailYangui wrote:

I am trying to create a signal that changes its frequency in dynamic way using timers 

but i am having some issues to do it


So what, exactly, have you tried?

And what "issues", exactly, are you having?

You haven't even said what you're using!

 

How to write your question to maximize your chances to find a solution

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Gyessine
ST Employee

Hello @IsmailYangui 

Can you provide more details about your problem, such as the product you are using, the type of timer you want to use (advanced, general-purpose, etc.), and the specific issue you are experiencing?
If you have already attempted this in a project, can you share your .ioc file with us?

However, I have attached a project that uses the NUCLEO-U083RC board to generate a timer signal with a changing frequency during runtime. The signal starts with a 100 ms toggle for one second, then toggles every one second. You can visualize the signal using a logic analyzer, an oscilloscope, or the user LED.Capture d'écran 2026-02-27 153116.png

I hope this helps for now.
We look forward to your feedback.
Gyessine

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

IsmailYangui
Associate III

 

i'm using stm32h7A3

my problem that i dont have any generated signal despite code compiling correctly

im gonna review your project and come back with feedback as soon as possible

 

I'm using stm32h7A3

my problem that i dont have any generated signal despite code compiling correctly

im gonna review your project and come back with feedback as soon as possible

 

I'm using stm32h7A3

my problem that i dont have any generated signal despite code compiling correctly

Note that everyone can see all posts - there's no need to repeat the same thing multiple times for multiple people.

You can use '@' to mention multiple people in one post.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
Super User

> my problem that i dont have any generated signal despite code compiling correctly

Code compiling is a very low bar. It does not mean the code works or is functional in any capacity.

If you feel a post has answered your question, please click "Accept as Solution".

@IsmailYangui wrote:

despite code compiling correctly


As @TDK said, compiling correctly just means that you have no syntax errors - it is no indication at all that your code is functionally correct.

It's like putting a document through a spell checker - it will check that all the words are correctly spelled, but that doesn't mean that those words make any sense!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.