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.
write values directly to ports
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: write values directly to ports
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
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
Who is online
Users browsing this forum: No registered users and 45 guests