Search results

  1. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Yes all is cleared up now. Synvox your explanation helped a lot. Though I will leave the code as is, it makes more sense to me to think of it this way: uint8_t writeCommand = 16; SPI.transfer((1 << address) + writeCommand); I will be using the bit shifting SPI.transfer((1 << address) + 16)...
  2. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Hey it works! It was the mode, needs to be SPI_MODE1 or 2 as Synvox suggests (MarkT said it too!). And though I tried all the modes before, I think this was before I had tied the RESET pin to HIGH, an oversight on my part. I understand mode 1 to be: data sampled on the falling edge and shifted...
  3. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Unfortunately, this data type does not work. Still no output. Now it's getting confusing because that should be exactly what that transfer() method expects, right?
  4. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Thank you for these details and suggestions. Turns out I have the B grade! I have changed it to 10Mhz for now. Thanks for pointing out the NXP max, Paul This part still eludes me. So I can pass an int and it is interpreted as byte code? I see there is the SPI.transfer16(val16) method...
  5. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Yes I see what you are saying! I believe this means I need SPI_MODE3 I tried setting this mode via a call to SPI.beginTransaction() in the setup method, so now it looks like this: void setup() { pinMode(ldac, OUTPUT); pinMode(slaveSelect, OUTPUT); digitalWrite(ldac, LOW)...
  6. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Hello friends! I am looking for help figuring out how to use an AD5686R DAC chip with Teensy 4.1 Some details about the project: This is for a hardware synthesizer instrument that has 4 analog oscillators, each of which are independently quantized up to an 11 octave range with at least +/- 1...
Back
Top