ESP32输出I2S0_CLK和I2S1_CLK
Posted: Thu Nov 04, 2021 1:48 am
我想吧ESP32的I2S0_CLK输出到GPIO0的CLK_OUT1,吧I2S1_CLK输出到GPIO1的CLK_OUT3,
查找了相关代码,只有APLL输出到GPIO0的CLK_OUT1的代码 REG_WRITE(PIN_CTRL, 6);
手册上的描述对不上
要将I2S0 外设时钟输出到:
CLK_OUT1,配置PIN_CTRL[3:0] = 0x0;
CLK_OUT2,配置PIN_CTRL[3:0] = 0x0 and PIN_CTRL[7:4] = 0x0;
CLK_OUT3,配置PIN_CTRL[3:0] = 0x0 and PIN_CTRL[11:8] = 0x0。
要将I2S1 外设时钟输出到:
CLK_OUT1,配置PIN_CTRL[3:0] = 0xF;
CLK_OUT2,配置PIN_CTRL[3:0] = 0xF and PIN_CTRL[7:4] = 0x0;
CLK_OUT3,配置PIN_CTRL[3:0] = 0xF and PIN_CTRL[11:8] = 0x0。(读/写)
I2S0_CLK输出到GPIO0的CLK_OUT1,吧I2S1_CLK输出到GPIO1的CLK_OUT3,要如何配置PIN_CTRL寄存器
查找了相关代码,只有APLL输出到GPIO0的CLK_OUT1的代码 REG_WRITE(PIN_CTRL, 6);
手册上的描述对不上
要将I2S0 外设时钟输出到:
CLK_OUT1,配置PIN_CTRL[3:0] = 0x0;
CLK_OUT2,配置PIN_CTRL[3:0] = 0x0 and PIN_CTRL[7:4] = 0x0;
CLK_OUT3,配置PIN_CTRL[3:0] = 0x0 and PIN_CTRL[11:8] = 0x0。
要将I2S1 外设时钟输出到:
CLK_OUT1,配置PIN_CTRL[3:0] = 0xF;
CLK_OUT2,配置PIN_CTRL[3:0] = 0xF and PIN_CTRL[7:4] = 0x0;
CLK_OUT3,配置PIN_CTRL[3:0] = 0xF and PIN_CTRL[11:8] = 0x0。(读/写)
I2S0_CLK输出到GPIO0的CLK_OUT1,吧I2S1_CLK输出到GPIO1的CLK_OUT3,要如何配置PIN_CTRL寄存器