PWM on STM32L073RZ

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
rickygee49
Posts: 1
Joined: 18 Apr 2023 08:38

PWM on STM32L073RZ

#1 Post by rickygee49 » 18 Apr 2023 09:06

New to the forum, just starting to play with ARM and the Basic compiler to see if it is a good fit for what I need, if so will pursue it further(previously used ATXMEGA and the BASCAVR compiler)
I am using the STM Nucleo board which supports the STM32L073RZ. Have been looking at the various hardware libraries, simplicity itself getting the SPI working with an ADC(AD7798), but have run into a problem with PWM on TIM2/3. The hardware library does not support TIM3, I could bit bash it if needs be, but why the omission.
Additionally, TIM2 and TIM3 do not have all of the alternate function pins mapped, I had to edit __Lib_GPIO_32L07x_Defs . (The Nucleo board does not have all of the possible hardware pins available)
As I said, new to all of this, so could well be missing something obvious, some comment would be helpful.
Cheers, :)
Richard

Post Reply

Return to “mikroBasic PRO for ARM General”