SiFli-Wiki SiFli-Wiki SiFli-Wiki
  • User Guide
  • Examples
  • API Documentation
  • About Us
/
  • English
  • 中文

Quick start

  • Getting Started Guide
  • Chip Manual Summary

Software Development

  • SDK Documentation
  • FAQ
    • Development tool related issues
      • 1 Compilation Related
      • 2 Jlink
      • 3 KEIL
      • 4 Ozone
      • 5 SiFli
      • 6 Trace32
      • 7 SystemView
      • 8 Serial port
      • 9 Source Insight相关
    • Chip related issues;
      • 1 GPIO相关
      • 2 定时器相关
      • 3 Middle;断相关
      • 4 Watchdog;相关
      • 5 RTC相关
      • 6 ADC相关
      • 7 I2C相关
      • 8 低功耗相关
      • 9 PWM
      • 10 系统
      • 11 Bluetooth;
      • 12 USB相关
      • 13 UART相关
      • 14 双核相关
      • 15 I2S;related;
      • 13; SPI related issues;
    • Peripheral driver debugging issues;
      • 1 LCD调试常见问题
      • 2 Sensor调试常见问题
      • 3 flash调试常见问题
      • 4 马达motor调试常见问题
    • Software debugging related issues;
      • 1 Log调试
      • 2 在线调试方法
      • 3 Restore crash scene by dumping memory;
      • 4 Method for saving crash scene;
  • Application Notes
    • SF32LB52X启动与低功耗流程
    • 低功耗开发指南

Hardware Development

  • SiFliModel Selection Manual
    • SiFli Chip Model Guide
    • Module Model Guide
  • Chip Hardware Design Guide
    • SF32LB52x-Hardware Design Guide
    • SF32LB52X-Hardware Design Guide
    • SF32LB56xU-Hardware Design Guide
    • SF32LB56xV-Hardware Design Guide
    • SF32LB58x-Hardware Design Guide
  • Development Board
    • SF32LB52-DevKit-LCD开发板使用指南
    • SF32LB52-DevKit-LCDAdapter board制作指南
    • 立创·黄山派开发板使用指南
    • SF32LB52-DevKit-Nano Development Board User Guide

Software Tools

  • Software and Hardware Tools Collection
    • firmwareburningTool Impeller
    • Graphics ConversionTool
    • Storage Debugging Tools
      • Flash Chipid 和TypeConfiguration Guide
    • Screen module调试
      • screen模组介绍
      • 思澈SDKOf显示框架介绍
      • AdjoinCurrentProjectionBlock
        • 添加新的屏幕驱动
        • AddNew屏幕BacklightDriver
        • Add a new TP driver
        • 为新的屏幕模组添加menuconfig选项
      • Use the new screen module
      • 525添加QSPI-LCD实例
      • 566添加DPI-LCD实例
      • FAQ
      • Appendix
        • 屏驱回调函数
        • Application Layer vs Module Driver Layer Function Correspondence Table
        • List of adapted screen modules
    • sftool

Product Introduction

  • About SiFi

On this page

  • 15.1 MCLK;output;frequency;翻倍
  1. SiFli-Wiki /
  2. FAQ /
  3. Chip related issues; /
  4. 15 I2S;related;

15 I2S;related;¶

15.1 MCLK;output;frequency;翻倍¶

1,The 49.152M frequency division ratio SPCLK_DIV of the PLL changes from 8 to 4, and the MCLK increases from 6.144M to 12.288M;

#ifdef DOUBLE_MCLK;    
    __HAL_I2S;_SET_SPCLK_DIV(hi2s, 4);   // set to 12.288M to i2s (49.152M/4=12.288M)  PLL; 
#else
    __HAL_I2S;_SET_SPCLK_DIV(hi2s, 8);   // set to 6.144M to i2s   PLL;
#endif

2,The corresponding bclk duty and lrck duty are both doubled, so as to ensure that after the MCLK is doubled, other clock frequencies remain unchanged; as follows;,corresponding;structure;中CLK_DIV_T的as follows;value;都increase;一倍

uint16_t  lr_clk_duty_high;   /*!<  LRCK duty cycle high;   */
uint16_t  lr_clk_duty_low;    /*!<  RX LRCK duty cycle low;   */
uint16_t  blck_duty;          /*!<  bit clock duty cycle;   */

The original {48000, 64, 64, 2} is changed to {48000, 128, 128, 4}, and other sampling rate configurations are also modified in the same way;

#ifdef DOUBLE_MCLK;
static CLK_DIV_T  txrx_clk_div[9]  = {{48000, 128, 128,  4}, {44100, 128, 128,  4}, {32000, 192, 192,  6}, {24000, 256, 256, 8}, {22050, 256, 256,  8},
    {16000, 384, 384, 12}, {12000, 512, 512, 16}, {11025, 512, 512, 16}, { 8000, 768, 768, 24}
};
#else
static CLK_DIV_T  txrx_clk_div[9]  = {{48000, 64, 64,  2}, {44100, 64, 64,  2}, {32000, 96, 96,  3}, {24000, 128, 128, 4}, {22050, 128, 128,  4},
    {16000, 192, 192, 6}, {12000, 256, 256, 8}, {11025, 256, 256, 8}, { 8000, 384, 384, 12}
};
Previous
14 双核相关
Next
13; SPI related issues;

2025, SiFli

Made with Sphinx and Shibuya theme.