Page 1 of 1

write values ​​directly to ports

Posted: Thu Apr 27, 2023 1:46 pm
by simo1592
Hi everyone,
I'm doing my first project with ESP32 using the Arduino IDE.
I'm trying with ESP32 to see if I can get a better result than the arduino boards.
I connected some parallel DACs to the board and I have a series of int values ​​to execute in sequence, with arduino I used the registers of the gates by directly writing the value in it, obtaining the consequent binary decoding on the pins, can you tell me what are the instructions to execute the same command with ESP32? I haven't found much online.
Thank you
Simone.

Re: write values ​​directly to ports

Posted: Fri Apr 28, 2023 4:52 pm
by lbernstone
arduino-esp32 is designed as a hardware abstraction layer for learning how to use the esp32, and supports multiple architectures. As such, it now uses the APIs and high level techniques to interact with hardware. However, you can look back in the history of the repo to see how the registers were originally coded, or you can pore through the esp-idf and technical references to see how things are done currently.
https://github.com/espressif/arduino-es ... -hal-dac.c
https://www.espressif.com/en/support/do ... -documents
https://github.com/espressif/esp-idf/tr ... driver/dac