cancel
Showing results for 
Search instead for 
Did you mean: 

Safe multitasking

Wdowa.1
Associate II

What is the best way and safer way to make one led blinked and, at the same time, control one motor?

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
TDK
Guru

You could set the LED on a timer pin and have it generate a PWM signal with no CPU usage. Then you can control the motor.

Pretty high-level question. The "best" approach will depend on the details. Doing multiple things at once are why RTOSs exist, if you can accept the complexity/issues that come with them.

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