How to calculate i2s clock?

BORISBRITWA
Posts: 9
Joined: Thu May 03, 2018 10:43 am

How to calculate i2s clock?

Postby BORISBRITWA » Sun Mar 10, 2019 6:32 am

Code: Select all

  // Enable slave mode (sampling clock is external)
    I2S0.conf.rx_slave_mod = 1;
    // Enable parallel mode
    I2S0.conf2.lcd_en = 1;
    // Use HSYNC/VSYNC/HREF to control sampling
    I2S0.conf2.camera_en = 1;
    // Configure clock divider
    I2S0.clkm_conf.clkm_div_a = 1;
    I2S0.clkm_conf.clkm_div_b = 0;
    I2S0.clkm_conf.clkm_div_num = 2;
8.3 The Clock of I2S Module(Reference Manual)
I2Sn_CLK, as the master clock of I2S module, is derived from the 160 MHz clock PLL_D2_CLK or the configurable analog PLL output clock APLL_CLK. PLL_D2_CLK is used as the clock source for I2Sn, bydefault.

I2Sn_CLK =160/(2+(0/1))= 80 MHz :?: :roll:

Who is online

Users browsing this forum: No registered users and 38 guests