Associate III
June 1, 2023
Question
TIM I2S using SPI
- June 1, 2023
- 5 replies
- 2947 views
Hello Everybody,
I am trying to emulate I2S using the SPI interface on the STM32F103.
I have looked at the AN5086, but setting up the timer correctly is still unsuccessful.
The SPI-CLK is connected to the TIM2 via Channel configured as "input capture direct mode".
The timer itself is clocked from "internal clock" source.
Channel 3 is configured as "output compare CH3".
What am I missing?
With a logic analyser I can the SPI transmitting. But no toggle from TIM2/CH3
The TIM2 is started in the code with: "HAL_TIM_Base_Start(&htim2);"
Please find attached the .ioc file
Kind regards,
pieterg!
