Search found 33 matches

by greycon
Sat Nov 09, 2024 7:40 pm
Forum: General Discussion
Topic: Design question - sampling a relatively low frequency protocol
Replies: 1
Views: 347

Design question - sampling a relatively low frequency protocol

Hi, I need to sample and decode a proprietary protocol. It consists of packets arriving at about 700 bits/ Second, and I will need to capture pulses about 500 uS in duration. (Either a single High pulse, 2 High pulses , or 4 High pulses.) I will likely use an ESP32-C6, running at 160Mhz. (I want to ...
by greycon
Thu Oct 03, 2024 4:15 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 2872

Re: run a task every 0.25 us

I see your point - sounds like you are on top of this. I look forward to reading your solution - I think you are more experienced here than I am.
by greycon
Thu Oct 03, 2024 3:32 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 2872

Re: run a task every 0.25 us

From the Espressif Docs: The LEDC can be used for generating signals at much higher frequencies that are sufficient enough to clock other devices, e.g., a digital camera module. In this case, the maximum available frequency is 40 MHz with duty resolution of 1 bit. This means that the duty cycle is f...
by greycon
Thu Oct 03, 2024 3:01 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 2872

Re: run a task every 0.25 us

On a 240MHz core, I would have expected that I could easily enter an ISR, toggle a Port Pin and return in 60 cycles, but it's a gut feeling based on other SOCs. But you won't be doing much else with that core. Perhaps the LED PWM Controller could be programmed to do the job - so no CPU load. But OP ...
by greycon
Thu Oct 03, 2024 1:20 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 2872

Re: run a task every 0.25 us

I would just use one of the ESP32 timers, set to contintually countdown, and reload. Have it setup to generate an interrupt every time it reaches 0, and then in the ISR toggle the GPIO Pin, directly. This will be short enough to be an acceptable ISR. Do you know how to use the Timers in this manner?...
by greycon
Thu Oct 03, 2024 1:12 pm
Forum: General Discussion
Topic: Help With Esp32
Replies: 6
Views: 2198

Re: Help With Esp32

Hi, OK, which pin did you connect the +5v to when you used the external PSU? What you are doing should work perfectly well, I do it all the time.
by greycon
Tue Oct 01, 2024 11:20 pm
Forum: General Discussion
Topic: run a task every 0.25 us
Replies: 10
Views: 2872

Re: run a task every 0.25 us

Hi, since you talk about running a task, I assume you are programming for an RTOS In which case, you would never do this - you would have an interrupt handler (Or callback) pick up date from the SPI, and do something with it - write it to an RTOS Queue for example. Can you give a little more context...
by greycon
Tue Oct 01, 2024 9:48 pm
Forum: General Discussion
Topic: Help With Esp32
Replies: 6
Views: 2198

Re: Help With Esp32

Hi, can you take a step back? Flash a very simple program into the ESP32 which blinks an LED (And outputs a debug string on the Serial port) Then power it from your breadboard. Does that work? Apologies if this is in any way offensive - but not knowing your skill level - it's best to start at basics...
by greycon
Tue Oct 01, 2024 9:37 pm
Forum: General Discussion
Topic: ESP32 Reboting
Replies: 1
Views: 841

Re: ESP32 Reboting

Not sure what your question is, exactly, but I am guessing you aren't happy about your ESP32 rebooting. Looking at your logs: rst:0x7 (TG0WDT_SYS_RESET) This shows you that your first reset was because of the TG0 Timer Watchdog reset. Google that - maybe check https://esp32.com/viewtopic.php?t=7980 ...
by greycon
Tue Oct 01, 2024 9:23 pm
Forum: General Discussion
Topic: HTTPS ESP-IDF
Replies: 6
Views: 1573

Re: HTTPS ESP-IDF

Hi, are you storing a Public Key in your certificate? So you are verifying the identity of an SSL partner? Or are you storing a private key, so you are using this key to sign some data, or to send a client-cert in an SSL handshake?