3 Replies Latest reply on Apr 5, 2018 10:32 PM by asankita4_2325551

    Unable to get I2S TX working with DMA

    AlexanderBrevig

      Hi everyone! 

      I'm going MAD over this simple hazzle.

      Generally I have a nice time developing things with PSOC. I have a lot of the project done, SPI LCD working, emFile working, interrupts, DMAs etc - but I cannot get this I2S working

       

       

      I'm using CY8CKIT-059 and a Digilent I2S PMOD with the basis in InterIcSound example.

       

      I removed Rx part of the example. Upped the buffer to 2*2*45 (I want to generate a 1kHz square wave for testing, 2 bytes per 16 bit, 2 channels, need 45 samples to generate required wave).

       

      Then I changed the clock to 2.8224MHz as per the I2S datasheet for a sample rate of 44.1kHz.at 16 bit per sample (32bit word select period).

       

      psoc_i2s.PNG

       

      I have wired MCLK to the master clock of the module, LRCLK goes to the word select clock, SCK to the sample clock and SDO to its serial data input.

       

      How am I supposed to configure the DMA for 16 bit transfers? Right now I just split the 16 bit sample using HI8 and LO8. And hope for the best.

       

       

      Any help and pointers are hugely appreciated!