Search results

  1. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    And actually you don't need to use the "power of"- function to achieve just a 2^n result. You can also just left shift a value of 1 by n; that gives you the same result but is much faster. void setDacChannelLevel(uint8_t address, uint16_t value) { SPI.beginTransaction(AD5686R)...
  2. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    No, you're wrong. In both modes data is sampled on the falling and shifted out on the rising edge. That's the reason why both modes work. The only difference between SPI_MODE1 and SPI_MODE2 ist the Clock Polarity at start and end of each transfer. In SPI_MODE1 it is LOW (0), and in SPI_MODE2 it...
  3. S

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Hello, the SPI Mode should be SPI_MODE1 or SPI_MODE2 (either should work), so either CPOL=0 AND CPHA=1 or CPOL=1 AND CPHA=0 but not both 0 or both 1. In the Datasheet they do not state if /RESET has an internal Pullup, so i would tie it with a 10k resistor to VLogic. (ah ok, i see, you solved...
  4. S

    PT8211 with irregular clocking signals (non I2S) from T4

    Many thanks for all the tests and the idea in general. For me these tests indicate that the PT8211 with it's ability of asynchronous communication (no need for a steady data stream) will be perfectly suited as a cheap 16 Bit R2R DAC (actually two in one package) for Control Voltage generation in...
  5. S

    SPISlave_T4

    Hello, in SPISlave_T4.tpp as well as in SPI_MSTransfer_T4.tpp there is this part of code which enables the an LPSPI-Interrupt: SLAVE_IER = 0x1; /* RX Interrupt */ This sets Bit 0 of the IER to 1, but according to chapter 48.5.1.6.4 of the IMXRT1060 reference manual this Bit (Bit 0) is TDIE and...
  6. S

    Alternative to band limited waverforms for antialiasing oscillators

    Many thanks Paul for your answer. Yes, i'm afraid you're absolutely correct on this. I've now read several papers and writeups on antialiased oscillators, and none of them mention low pass post-filtering as a viable method of antialiased waveform generation. Virtually all of them describe band...
  7. S

    Alternative to band limited waverforms for antialiasing oscillators

    I'm sorry. I just saw that i posted this thread in the wrong sub-category. Can it be moved to "Audio Projects"?
  8. S

    Alternative to band limited waverforms for antialiasing oscillators

    Hello, this question is regarding the usage of the Audio library on a Teensy 4.0 or 4.1. i know there are already some threads on band limited waveform generation etc. here in the forum, but i have a specific question, which hopefully will suffice as a reason to create a new thread. Is it...
  9. S

    Possible bug in effect_freeverb.cpp in the current release of Teensyduino (1.56)

    In the Audio Library of the current Teenyduino version 1.56 i may have found a bug in the code for the Freeverb object (Stereo version). In effect_freeverb.cpp in the function definition for "AudioEffectFreeverbStereo::update()" right at the bottom there is this block of code: bufout =...
Back
Top