Search found 290 matches

by ESP_morris
Fri Dec 30, 2022 8:27 am
Forum: ESP-IDF 中文讨论版
Topic: esp32 有几个rmt信道?
Replies: 1
Views: 1498

Re: esp32 有几个rmt信道?

32有 8个tx通道,s3有4个,但是这个通道会被你设置的mem_block_symbols 的大小影响,因为各个通道实际上是share一块内部RAM的,如果其中一个通道把他们都占了,哪怕你还剩7个通道,实际上你也已经申请不到了。
by ESP_morris
Wed Nov 30, 2022 6:48 am
Forum: ESP-IDF
Topic: Using same pin as MCPWM output and PCNT input on ESP32-S3
Replies: 5
Views: 2297

Re: Using same pin as MCPWM output and PCNT input on ESP32-S3

BTW, if you want to drive the stepper motor in an open-loop, then the RMT peripheral is more suitable. It can generate the precise number of pulses you want. See example https://github.com/espressif/esp-idf/tree/master/examples/peripherals/rmt/stepper_motor But if you want to do that in a close loop...
by ESP_morris
Thu Nov 24, 2022 2:43 am
Forum: ESP-IDF 中文讨论版
Topic: 使用ESP32-C3 RMT外设驱动W2812
Replies: 2
Views: 1585

Re: 使用ESP32-C3 RMT外设驱动W2812

主要原因是用RMT电灯会频繁进入RMT的传输半满中断,wifi的中断优先级非常高,会抢占掉rmt中断,直接导致rmt因为没有及时响应中断而导致发送错误。

解决办法就是使用带DMA的外设去模拟这个时序,比如SPI.

另外,S3上的RMT带有DMA,所以如果你用S3上的RMT(驱动中开启DMA)的话,也不会有问题
by ESP_morris
Mon Nov 14, 2022 9:26 am
Forum: ESP-IDF 中文讨论版
Topic: 乐鑫 有没有出 chipinfo 类似的软件啊 自动识别 芯片或者 模组型号?!
Replies: 4
Views: 2720

Re: 乐鑫 有没有出 chipinfo 类似的软件啊 自动识别 芯片或者 模组型号?!

esptool 可以读取chip_id 的,可以自动识别芯片型号

esptool.py --help 查看具体的
by ESP_morris
Thu Oct 27, 2022 2:32 am
Forum: ESP-IDF
Topic: Does RMT loop implementation use Interrupt ?
Replies: 1
Views: 847

Re: Does RMT loop implementation use Interrupt ?

By hardware.
by ESP_morris
Fri Oct 14, 2022 10:21 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32如何记录MCPWM输出的脉冲个数
Replies: 1
Views: 1494

Re: ESP32如何记录MCPWM输出的脉冲个数

MCPWM没有这个硬件能力,但是有些芯片的RMT外设可以做到,官方有example的:

https://github.com/espressif/esp-idf/tr ... pper_motor
by ESP_morris
Fri Oct 14, 2022 10:19 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32S3 GPIO36配置成Dedicated 写入值后没有输出信号
Replies: 2
Views: 1428

Re: ESP32S3 GPIO36配置成Dedicated 写入值后没有输出信号

看这个write函数的第二个参数:mask – [in] Mask of the GPIOs to be written in the given bundle, 指的是你要操作的gpio在这个bundle中的位置,不是实际的gpio号了。你应该试试传0x01