2025-01-16 02:39 PM
Hello,
I am considering the STM32H7 for a new project I'm working on.
I'd like to configure the MCU to output 10 audio channels at 96khz using TDM, all synchronized. Some variants of the STM32H7 come with up to 4x SAI peripherals and support TDM.
I'd like to connect those SAI peripherals to DACs using TDM. Any combination would work 2x TDM4 + 1x TDM2 or 1x TDM8 and 1x TDM2.
Each SAI peripheral seems to have 2 subblocks: SAI-A and SAI-B, and there seems to be an option to switch between stereo and mono. Here is where I get a little confused:
1) Does this mean I can configure SAI1-A and SAI1-B to both be TDM4 and SAI2-A be TDM2? What is the difference between two SAI subblocks within the same peripheral and subblocks from different peripherals?
2) Is the output mode (stereo vs mono) still applicable when configuring for TDM? In other words if an SAI subblock is configured to have 4 slots, does this mean those are 4 individual slots or 4 stereo slots?
3) Will the 'H7 be capable of outputting 10 channels at 96khz simultaneously as specified? Even up to 32bit-PCM? Each output channel will transmit continuously 4096 samples from a assigned RAM buffer.
Thanks in advance
Alex