Search found 3 matches

by 1337ralfy
Wed Feb 08, 2023 3:43 pm
Forum: General Discussion
Topic: ESP32 and AVR UART TX response rate issue
Replies: 0
Views: 774

ESP32 and AVR UART TX response rate issue

Hi, I`m having issue with UART communication between AVR and ESP32. Issue is with TX response rate. Here is what I`m sending with AVR, first 2 bytes are command, last 3 are data: //command Serial2.write(0x01); Serial2.write(0x62); //data Serial2.write(0x69); Serial2.write(0x70); Serial2.write(0x71);...
by 1337ralfy
Wed Feb 08, 2023 2:51 pm
Forum: ESP-IDF
Topic: ESP32 and AVR UART communication issue
Replies: 0
Views: 865

ESP32 and AVR UART communication issue

Hi, so I`m using UART communication between ESP32 and AVR chip. Having issue with TX response rate. AVR is sending 5 bytes, first two are command bytes and last 3 are data bytes: //command Serial2.write(0x01); Serial2.write(0x62); //data Serial2.write(0x69); //high byte Serial2.write(0x70); //low by...
by 1337ralfy
Wed Mar 02, 2022 2:23 pm
Forum: General Discussion
Topic: ESP32 PWM duty cycle measurement from input
Replies: 5
Views: 8910

ESP32 PWM duty cycle measurement from input

I am trying to measure the duty cycle interval (from falling to rising edge) in microseconds of an incoming PWM signal of 20 KHz. I made a test PWM signal on a GPIO pin (50% duty) and connected it to input pin. Up to 80 microseconds it is all good and stable, but if I raise the PWM frequency, below ...