Search found 290 matches

by ESP_morris
Thu Jun 09, 2022 2:39 am
Forum: ESP-IDF 中文讨论版
Topic: MCPWM
Replies: 15
Views: 7166

Re: MCPWM

BTW, I only tested the code on the master branch. The code doesn't need to alter any default configuration from menuconfig.
by ESP_morris
Wed Jun 08, 2022 8:55 am
Forum: ESP-IDF 中文讨论版
Topic: MCPWM
Replies: 15
Views: 7166

Re: MCPWM

I can get the 1KHz waveforms without issue with the following code snippet /* * SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ #include <stdio.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "...
by ESP_morris
Tue Jun 07, 2022 3:15 am
Forum: 全国大学生物联网设计竞赛乐鑫答疑专区
Topic: 串口初始化时,设置了多个时钟源,选择这些时钟源根本性的作用是什么?
Replies: 1
Views: 2238

Re: 串口初始化时,设置了多个时钟源,选择这些时钟源根本性的作用是什么?

不同的时钟源,精度和稳定性不同,功耗也不同,比如想要工作在light sleep场景下,就得选择一个在light sleep下不会被关闭的时钟源。
by ESP_morris
Wed Jun 01, 2022 2:16 am
Forum: General Discussion
Topic: dedicated IO bundles issue with more than 8 bits
Replies: 1
Views: 1372

Re: dedicated IO bundles issue with more than 8 bits

See the SOC_DEDIC_GPIO_OUT_CHANNELS_NUM defined in this file: https://github.com/espressif/esp-idf/bl ... soc_caps.h
by ESP_morris
Sat May 21, 2022 4:09 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-S3 GPIO翻转速度怎么这么慢呢?
Replies: 3
Views: 3820

Re: ESP32-S3 GPIO翻转速度怎么这么慢呢?

另外,真不建议使用gpio去模拟任何协议,尤其是在一个RTOS环境下。你可以看看能否用RMT硬件构造出你要的时序:https://docs.espressif.com/projects/esp ... s/rmt.html
by ESP_morris
Sat May 21, 2022 4:07 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-S3 GPIO翻转速度怎么这么慢呢?
Replies: 3
Views: 3820

Re: ESP32-S3 GPIO翻转速度怎么这么慢呢?

可以试试用CPU指令去翻转GPIO:https://docs.espressif.com/projects/esp ... _gpio.html

想要活的最高的翻转速率,记住直接写内联汇编
by ESP_morris
Fri May 20, 2022 4:28 am
Forum: ESP-IDF
Topic: LEDC PWM Synchronization
Replies: 1
Views: 1512

Re: LEDC PWM Synchronization

by ESP_morris
Tue May 17, 2022 10:17 am
Forum: ESP-IDF 中文讨论版
Topic: 单元测试的使用问题
Replies: 3
Views: 2697

Re: 单元测试的使用问题

应该可以在这里添加你自己的component
https://github.com/espressif/esp-idf/bl ... sts.txt#L5