Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy as I2S Slave-- frame size question.

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    17

    Teensy as I2S Slave-- frame size question.

    Thank you Paul, for switching to 64-bit frame size for I2S master mode. I tried and failed to get that working a few years back.

    Does this change also apply to I2S slave mode? That would be nice.

    Quote Originally Posted by PaulStoffregen View Post
    I've committed a change to the audio library to use 64 bit frame size for I2S master mode. Hopefully this will allow these microphone chips to work "out of the box".

    https://github.com/PaulStoffregen/Au...947343d3beaff4

    Please give the latest code a try, if you're using any of these chips. Or if pulling from github isn't your thing, this change will be in 1.38-beta2 coming in a day or two.

  2. #2
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,999
    Quote Originally Posted by Alex Stahl View Post
    Thank you Paul, for switching to 64-bit frame size for I2S master mode. I tried and failed to get that working a few years back.

    Does this change also apply to I2S slave mode? That would be nice.
    What do you mean by this question?
    If Paul has implemented the change also for I2S slave? I would look into the code to see what Paul has done.
    If someone has successfully used this modification in slave mode? I do not know, but you can easily try.

    I know that the switch from master to slave is not related to the changes implemented by Paul.
    Also note, that the changes does not imply that input_i2s data stream is now 32 bit wide, it is still 16 bit (again check the code).
    if you wanted to have access to all 32 bits of an I2S word, you have to write your own driver, which is easy and has been presented also on this forum.

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    17
    Yes, I am asking if the SCLK/BCLK ratio change was made for I2S slave mode as well as I2S master mode in the current release. Sorry if that was not a clear and simple question to you, @WMXZ.

    If it wasn't addressed, or there are still other known issues using I2S slave mode , it would be nice to hear about that from the forum.

    I'm aware of the 16 bit convention and that is not a problem for my application.

    Thanks,
    ~alex

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •