To output the SAI1_MCLK signal to an external pin, you first have to select the appropriate IOMUX option for the signal (the possible options are CSI_DATA01 in ALT6 mode and LCD_DATA00 in ALT8 mode, please refer to the Section 4.1.1 "Muxing Options" on the Page 207 of the i.MX6ULL Reference Manual document), then select the signal direction in the IOMUXC_GPR_GPR1 register (please refer to the Section 32.4.2 of the RM), and then set the signal direction in the I2S1_MCR register (refer to the Section 45.4.19 of the RM).
However, using SAI MCLK as the general-purpose clock output seems not to be a good idea. Better is to use CCM_CLKO1/CCM_CLKO2 signals. The possible IOMUX options for them other than uSDHC1 signals are JTAG_TMS in ALT3 mode for CLKO1 and JTAG_TDO in ALT3 mode for CLKO2, please refer to the Section 4.1.1 on the Page 192 of the RM.
Have a great day,
Artur
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------