Search found 67 matches

by ok-home
Thu Sep 12, 2024 7:39 am
Forum: General Discussion
Topic: is it possible to configure an input port? A parallel input on 8 pins that loads a register?
Replies: 4
Views: 594

Re: is it possible to configure an input port? A parallel input on 8 pins that loads a register?

if using esp32s3 there are several options
- dedicated GPIO - cpu controlled transfer
- cam module - dma controlled transfer
- spi octal mode - cpu/dma controlled transfer
by ok-home
Thu Sep 12, 2024 5:44 am
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 10
Views: 50833

Re: Logic analyzer on ESP32 for self-diagnostics

Thank you so much. I am using ESP32 (pico) in my project. Will the same work with that as well? Sorry, on ESP32 (pico) the maximum sample rate is 40 mHz, and it is not so easy (and does not make sense) to connect an external PCLK. The analyzer on ESP32 (pico) can reads any data from any GPIO, with ...
by ok-home
Wed Sep 11, 2024 6:44 am
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 10
Views: 50833

Re: Logic analyzer on ESP32 for self-diagnostics

It sounds good. And can I use the CLK pin of the external sdmmc host as clock source instead of the internal clock? for ESP32S3 analyzer reads any data from any GPIO with sample rate which is set by internal oscillator of CAM module or ledc which is output on GPIO PCLK ( menuconfig ). If you want t...
by ok-home
Tue Sep 10, 2024 12:36 pm
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 10
Views: 50833

Re: Logic analyzer on ESP32 for self-diagnostics

Hi, I would like to use your logic analyzer for capturing CMD pin traffic of sdmmc interface. Is it possible to use CLK pin of sdmmc as clock source? sdmmc runs at 40 MHz in my case. The maximum sample frequency for esp32s3 is 80 mHz, you can see that there are signals, but this frequency is not en...
by ok-home
Fri Jul 05, 2024 11:45 pm
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 1939

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

I have another question. Can the config for transmitter, carrier and encoder be done once at start of program and then just activate the tx function each time to send it (ie. Once encloder etc has been loaded with my data, it does not get blanked out for any reason during use but acts like a normal...
by ok-home
Fri Jul 05, 2024 7:16 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 1939

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Hi, I have written some code based on your simple example. I am getting a clock error when trying to assign the RMT channel. assert failed: rmt_ll_tx_set_channel_clock_div /IDF/components/hal/esp32s3/include/hal/rmt_ll.h:181 (div >= 1 && div <= 256 && "divider out of range") .clk_src = RMT_CLK_SRC_...
by ok-home
Thu Jul 04, 2024 1:56 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 1939

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Does encoder require a const or can it be a variable array? Most of the packet is fixed except some ID bytes that I were sending in a loop and thinking I could place these all into 1 array at init so each time I send I just use the RMT TX function and wait till done. rmt_transmit This function cons...
by ok-home
Thu Jul 04, 2024 1:25 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 1939

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Hi simple way to pass the rmt_item32_t array const rmt_item32_t rmt_data_out[]={ {{{BITPERIOD,1,BITPERIOD,0}}}, {{{BITPERIOD,1,BITPERIOD,0}}}, {{{BITPERIOD,1,BITPERIOD,0}}}, {{{0,0,0,0}}} }; rmt_copy_encoder_config_t tx_encoder_config = {0}; rmt_encoder_handle_t tx_encoder = NULL; rmt_new_copy_encod...
by ok-home
Mon Jul 01, 2024 12:47 pm
Forum: ESP-IDF
Topic: Can we obtain the number of pulses that have already been emitted when using the RMT transmission pulse sequence of EPS3
Replies: 4
Views: 973

Re: Can we obtain the number of pulses that have already been emitted when using the RMT transmission pulse sequence of

I am hoping to use the RMT module of the ESP32-S2 to send a fixed number of PWM waves and use the cyclic transmission mode of the RMT module. When the cyclic transmission mode is activated and the transmission starts, is it possible to get the number of cycles sent in real time from the program? No...
by ok-home
Mon Jul 01, 2024 8:30 am
Forum: General Discussion
Topic: SPI + MCP23S17 + ESP32-S3 Slow for reading BUS. Am I missing something?
Replies: 6
Views: 2209

Re: SPI + MCP23S17 + ESP32-S3 Slow for reading BUS. Am I missing something?

Hi I don't really understand what you want to get 1. capture 16 bits of address + 8 bits of data + r/w flag - address and data are generated by another device ? 2. independently generate 16 bits of address and write/read 8 bits of data to verify memory operability ? for s3 - it is possible to use a ...