STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Combined PWM mode STM32F334

I need to generate two phase shifted asymmetric clock signals.This should probably be done using Combined PWM mode.What I need Basic clock in TIMx_ARR for simplicity 4MHz , pin 1 with PWM1 , pin 2 with PWM2Clock 1 2 3 4 1 2PWM1 1 0 0 0 1 0P...

Bazalt by Associate
  • 395 Views
  • 0 replies
  • 0 kudos

Resolved! SPI handle structure did not write and shift the register

I have declared my SPI2 base address:#define PERIPH_BASE 0x40000000U #define APB1PERIPH_BASE PERIPH_BASE #define SPI2_BASEADDR (APB1PERIPH_BASE + 0x3800)I have a SPI Handle structure:typedef struct{ SPI_RegDef_t *pSPIx; //This holds the base addr...

WM_IR by Senior
  • 1470 Views
  • 10 replies
  • 0 kudos

How to flush SPI buffer when using SPI over DMA.

I am using STM32G071RBTx on our custom boards. The controller is connected to a Beaglebone Black over SPI. The STM32 controller is working as an SPI slave and the Beaglebone as the master. There are not CS lines defined for the communication. FreeRTO...

SDas.1 by Associate II
  • 1345 Views
  • 2 replies
  • 0 kudos

How to use DMA to change PWM frequency?

Hi! I know overall idea of DMA and i need to use it but i have no idea how to do it. I found one post with same question but i didn't found any helpful info for me. I'm not advanced in case of using registers. I used them to directly change CCR and A...

Caraffa by Associate II
  • 4716 Views
  • 11 replies
  • 0 kudos