This post is a continuation of my first post studying the Remote Control Peripheral (RMT) called: ESP32-WROOM32 DoITDEVKIT V1 as a TV Remote Control
https://rntlab.com/question/esp32-wroom32-doitdevkit-v1-as-a-tv-remote-control/
I was surprised to discover an implementation not discussed in the primary documentation which can easily create several different frequency square waves with a 50% duty cycle.
Code (at both Pastebin and in the PDF) includes:
implementing 7 simultaneous square wave channels, outputting on 7 pins, with frequencies from 250 kHz to 5 MHz.
reading RAM locations where the RMT data is stored for transmission, which visually demonstrates the documentation.
formatting memory and register reads to keep leading zeroes and to output 32-bits as 8 groups of 4 bits, a visually useful format.
CODE at Pastebin ESP32 Square Waves
MY NOTES PDF ESP32 SigGen