Part Number: DAC8565EVM
Other Parts Discussed in Thread: DAC8565
Tool/software:
Hello TI Team,
I am currently working on interfacing the DAC8565 with an ESP32, but I am not observing any output at the expected pin (JMP9 - Out A). Below are the details of my setup, connections, and code:
Connections:
-
MOSI (ESP32) → DIN (DAC)
-
CS (ESP32) → SYNC (DAC)
-
SCLK (ESP32) → SCLK (DAC)
-
AVDD → 5V
-
IOVDD → 3.3V
-
LDAC, VREFL → GND
-
ENABLE → Left as default (not actively driven)
-
RST → Setting as High in the code.
We are measuring the output at JMP9 (OUT A).
I have attached the following for your reference:
-
The SPI timing diagram captured during communication
-
The Arduino code used for communication, using SPI MODE2.
Despite this setup, there is no output observed from the DAC. I would appreciate your guidance on what could be going wrong or what I might be missing.


#include <SPI.h>
// Pin mapping
#define DAC_CS 5 // SYNC
#define DAC_RST 18 // RST
#define SPI_MOSI 19
#define SPI_SCLK 23
void sendDAC8565(uint8_t cmd, uint8_t addr, uint16_t value) {
// Build the 24-bit frame
uint8_t firstByte = (cmd << 4) | (addr & 0x0F);
uint8_t secondByte = (value >> 8) & 0xFF;
uint8_t thirdByte = value & 0xFF;
digitalWrite(DAC_CS, LOW); // SYNC low to start
uint8_t data[]={firstByte,secondByte,thirdByte};
SPI.transfer(data,3);
digitalWrite(DAC_CS, HIGH); // SYNC high to latch
}
void setup() {
// Init SPI
SPI.begin(SPI_SCLK, -1, SPI_MOSI, DAC_CS); // CLK, MISO (unused), MOSI, SS
SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE1));
pinMode(DAC_CS, OUTPUT);
digitalWrite(DAC_CS, HIGH);
pinMode(DAC_RST, OUTPUT);
digitalWrite(DAC_RST, HIGH); // Enable the DAC
Serial.begin(115200);
}
void loop() {
// Send value to channel A, write and update
uint8_t command = 0b0011; // Write and update
uint8_t address = 0b0000; // DAC-A
uint16_t dacValue = 32768; // Mid-scale (2.5V if REF=5V)
sendDAC8565(command, address, dacValue);
Serial.println("DAC value sent.");
delay(1000);
}
Looking forward to your support.
Thanks & Regards,
Amara Rakesh






