Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


PWM with first pulse different

Hello everyone,
I am just new to stm32 microcontroller. I am starting my first project of stm32 using “STM32F030C6T6” MCU. My project is to drive a “high speed solenoid valve driver”.
In which I have to drive a mosfet with PWM of duty cycle 15%@40Khz. Till this point it is not a problem. but there is a twist that first pulse of PWM output must be of 500ms period i.e. 2Hz with approx. 80% duty cycle means 80%@2Hz. From 2nd pulse it should be then 15%@40Khz
Just Summarizing here:

__1st pulse : Freq. 2Hz, Period 500ms, duty cycle appr. 99%
2nd pulse: Freq. 40Hz, Period .025ms, duty cycle appr. 15%
3rd pulse: Freq. 40Hz, Period .025ms, duty cycle appr. 15%
|
|
|
last pulse: Freq. 40Hz, Period .025ms, duty cycle appr. 15%

Note: Toff of all pulse from first to last should be same.__

Can any one help me how it can be done with timer or how to configure timer for it.
You feedback and suggestions will be highly appreciated.
Thanks in advance.

 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs