新手求教:ESP32 I2S的MCLK怎么处理啊
esp32吧
全部回复
仅看楼主
level 1
时钟初始化中没有MCLK 怎么去配置MCLK
2017年05月31日 02点05分 1
level 1
请问楼主现在问题解决了么,谢谢
2018年01月15日 14点01分 2
level 1
请问楼主解决了吗?我也遇到,不知咋办,能分享一下吗,不胜感激
2018年02月08日 16点02分 3
level 1
*/
typedef struct {
i2s_mode_t mode; /*!< I2S work mode*/
int sample_rate; /*!< I2S sample rate*/
i2s_bits_per_sample_t bits_per_sample; /*!< I2S bits per sample*/
i2s_channel_fmt_t channel_format; /*!< I2S channel format */
i2s_comm_format_t communication_format; /*!< I2S communication format */
int intr_alloc_flags; /*!< Flags used to allocate the interrupt. One or multiple (ORred) ESP_INTR_FLAG_* values. See esp_intr_alloc.h for more info */
int dma_buf_count; /*!< I2S DMA Buffer Count */
int dma_buf_len; /*!< I2S DMA Buffer Length */
bool use_apll; /*!< I2S using APLL as main I2S clock, enable it to get accurate clock */
int fixed_mclk; /*!< I2S using fixed MCLK output. If use_apll = true and fixed_mclk > 0, then the clock output for i2s is fixed and equal to the fixed_mclk value.*/
} i2s_config_t;
最新的sdk中有这样的结构体fixed_mclk,楼主是用这个解决的吗?
2018年03月02日 05点03分 4
level 8
可以省略mclk。
2018年03月09日 19点03分 5
level 1
driver.c
//使用gpio 0 将mclk发出来
i2s_driver_install(I2S_NUM, &i2s_config, 0, NULL);
i2s_set_pin(I2S_NUM, &pin_config);
io_mux_reg.h
#define PIN_CTRL (DR_REG_IO_MUX_BASE +0x00)
#define CLK_OUT3 0xf
#define CLK_OUT3_V 0xf
#define CLK_OUT3_S 8
#define CLK_OUT2 0xf
#define CLK_OUT2_V 0xf
#define CLK_OUT2_S 4
#define CLK_OUT1 0xf
#define CLK_OUT1_V 0xf
#define CLK_OUT1_S 0
2018年04月04日 09点04分 6
你好,我使用i2s_read_bytes,发现返回长度正确的,但内容是0;也就是没有内容,也能读取并返回。这样是否会导致问题 比如对方发送了123456 我接收123000,456000 这样就导致数据不对了。
2018年05月02日 06点05分
gpio0也连着串口自动下载功能,这样使用会影响到串口下载吗
2018年11月22日 06点11分
1