cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WBA: Dual PDM microphones via SPI interface

JFisher-Legato
Associate III

Hello,

Due to limitations with the STM32WBA's silicon & Bluetooth stack we've had to significantly re-engineer our hardware and add an external Bluetooth chip. As part of this, we updated our SAI blocks so that one block is transmit and one is receive, and moved our PDM microphones to a SPI bus.

Since we have two PDM microphones, we've followed AN5027 "Interfacing PDM Digital Microphones":

JFisherLegato_0-1767195968402.png

In our setup, we have SPI2 SCK (mapped to PB10) connected to PA1, and connected PA9 to the DMIC_CLK line. Our plan has been to map PA1 (input) -> TIM17_CH1, which then triggers (via ITR8) TIM3_CH2 which is mapped to PA9 (output).

However, I'm struggling to set up the signals properly. I am able to configure TIM17_CH1 so that I can count SPI2_SCK. However, I am unable to trigger TIM3 to count at all.

I've attached my example project for the NUCLEO-WBA65RI board.

Any insight on this issue?

Thank you,

Jonathan

0 REPLIES 0