Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Frank B

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    28
    Views
    455

    Ok, i have the cs42488 here. Please post your HEX...

    Ok, i have the cs42488 here. Please post your HEX file! I can test, and perhaps confirm that. If i see the same effect, we'll know it's not your setup and I have some ideas how to debug that.
  2. OK, my guesses are (both 50% probability) -...

    OK, my guesses are (both 50% probability)

    - 11ma are too much
    , or: it's just a serial Monitor problem

    Have read the Datasheet of the ATSAMD09: Max IO current for output LOW is 10mA. The 11mA...
  3. ...and better try this loop: int myCount =...

    ...and better try this loop:



    int myCount = 0;
    void loop() {
    if(!digitalRead(INT_PIN)){
    Serial.println(myCount);
    myCount++;
    }
  4. However, I should read more, too. I'm not that...

    However, I should read more, too.
    I'm not that sure what "When it keeps printing it goes down to 0.80 and stays there until I press again and goes back up." means.

    His code:


    void loop() {...
  5. "The matrix works fine in every other respect...

    "The matrix works fine in every other respect but the interrupt. " tells me that it works?

    And, in the first post: "All works fine with the Adafruit example but the interrupt function ( it works...
  6. Sorry, Paul.. sometimes you should really read...

    Sorry, Paul.. sometimes you should really read the questions (and other posts) with more thought





    There is no I2C problem here. It's just the pullup-resistance, I think.

    Moris526, if you...
  7. Replies
    2
    Views
    64

    These are the alternative pins. i.e. if you want...

    These are the alternative pins.
    i.e. if you want to use Serial1, and pins 26, 27 instead of 0,1

    You would use
    Serial1.setTX(26);
    Serial1.setRX(27);

    This is decribed here:...
  8. Replies
    31
    Views
    1,677

    Here are some instruction and code to print a...

    Here are some instruction and code to print a full stacktrace.
    Found that by accident.

    Might be useful for someone or a future TD version:...
  9. Replies
    28
    Views
    455

    Hm. Wait! I see no codec init code in your...

    Hm. Wait! I see no codec init code in your program.
    - Which TDM chip you are using?
    - Are you sure it does not mix the inputs with the outputs with the default settings?
    - are the inputs connected...
  10. Replies
    28
    Views
    455

    Maybe post the generated HEX file. Then we have...

    Maybe post the generated HEX file. Then we have exactly the binary code you have!
  11. Replies
    28
    Views
    455

    https://forum.pjrc.com/attachment.php?attachmentid...

    https://forum.pjrc.com/attachment.php?attachmentid=26229&d=1634732370&thumb=1
    This image (the circled part) does not look like transmission errors. The circled part shows linearly increasing (green)...
  12. Replies
    4
    Views
    71

    Hm I have a pretty old board and code.. from...

    Hm I have a pretty old board and code.. from 2016... for ESP8266.
    But perhaps it's enough to get the idea: https://github.com/FrankBoesing/FlexiBoard
    It was for WLAN and the ESP "AT MODEM" std...
  13. Replies
    4
    Views
    71

    Yes, use serial.

    Yes, use serial.
  14. Not directly the topic - just to mention. There...

    Not directly the topic - just to mention. There is a great library by ARM ("CMSIS DSP") that does interpolation etc pretty fast. It has a lot of useful things.
    I've used it to interpolate to 352kHz...
  15. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    It's documented now....

    It's documented now.
    https://github.com/FrankBoesing/Teensy-WavePlayer/blob/5cc77153067f907a4b121435028ede3f47878173/play_wav.h#L10
  16. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    Yes, decreasing will not help as it also breaks...

    Yes, decreasing will not help as it also breaks the (time-)order if you add new ones after.
    Simple solution: Don't use it dynamic or don't use the waveplayer. At the moment, these have contrary...
  17. Replies
    8
    Views
    141

    If this was really not meant as spam (paid...

    If this was really not meant as spam (paid consulting etc) I apologize of course.
    It would be fine if he would contribute the algorithm to the Teensy audiolib.
  18. I have a workaround for Littlfs: ...

    I have a workaround for Littlfs:

    https://forum.pjrc.com/threads/67754-WaveplayerEx?p=291833&viewfull=1#post291833
  19. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    Ok, last addition for a while. As Teensy's...

    Ok, last addition for a while.
    As Teensy's LittleFS is not threadsafe and, for NAND Flash, takes way too long to open a file - (I've seen > 12 millisconds!), this can be seen as workaround, too.
    ...
  20. Replies
    280
    Views
    8,387

    Nothing. If you read the my following post: I...

    Nothing. If you read the my following post: I said it will not help.

    Better get your roof done:) That's more important.
  21. Replies
    19
    Views
    268

    ?? School Math :-) 1 / 2 / 8000000Hz = 62.5ns

    ?? School Math :-)
    1 / 2 / 8000000Hz = 62.5ns
  22. Replies
    280
    Views
    8,387

    Eh, no, that will not help much.. it may reduce...

    Eh, no, that will not help much.. it may reduce the pobability for races (if existing) but will not slow down..
  23. Replies
    19
    Views
    268

    See Post#2

    See Post#2
  24. Replies
    19
    Views
    268

    That it is not possible to reach more than 8 MHz.

    That it is not possible to reach more than 8 MHz.
  25. Replies
    19
    Views
    268

    No it's a fundamental law....

    No it's a fundamental law.
    https://en.wikipedia.org/wiki/Nyquist_rate
  26. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    Ok, let's assume we use the...

    Ok, let's assume we use the Nums_7dot1_8_44100.wav file from the examples. There is a voice, counting from 1 to 8 (each number on a different channel - but this is not interesting here)

    There is a...
  27. Replies
    280
    Views
    8,387

    Hm. Not tried - does it help to just make the...

    Hm. Not tried - does it help to just make the timer slower? (That would be the perfect place to create a variable speed - IF that works)
    Tim? Can you test?

    edit:
    It would be a opportunity to add...
  28. Replies
    280
    Views
    8,387

    Yes, that's the challenge. Also, perhaps we have...

    Yes, that's the challenge.
    Also, perhaps we have to keep in mind slow PCs.

    And, a question - there are Tablets etc with Windows. Do they have the same problem? I own no such thing...
    The next...
  29. Not needed here - pressed() takes care of that....

    Not needed here - pressed() takes care of that. It returns true if the state changed.
    It's just the wrong pin.
  30. Replies
    17
    Views
    517

    Could you both post the layout (the USB traces...

    Could you both post the layout (the USB traces should be visible) ?
  31. PIN 19 is used for I2C which is needed for the...

    PIN 19 is used for I2C which is needed for the Audio Shield.
  32. Replies
    8
    Views
    141

    As said, the lib is open source. Good...

    As said, the lib is open source. Good contributions are always welcome.

    And, as this is a commercial site, placing the link here is questionable.
  33. Replies
    8
    Views
    141

    __builtin_popcount(for 32Bit) looks like this on...

    __builtin_popcount(for 32Bit) looks like this on Teensy:


    1c68: 0843 lsrs r3, r0, #1
    1c6a: f003 3355 and.w r3, r3, #1431655765 ; 0x55555555
    1c6e: 1ac0...
  34. Replies
    8
    Views
    141

    The audio lib is open source on Github - he can...

    The audio lib is open source on Github - he can contribute to it anytime. But why do you speak for him?
  35. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    Ok... had too much time today... Some new...

    Ok... had too much time today...
    Some new functions:

    size_t position(); - returns the current sample number. Will increase in steps of 128 (or AUDIO_BLOCK_SAMPLES)
    bool setPosition(size_t...
  36. Thread: WaveplayerEx

    by Frank B
    Replies
    112
    Views
    5,393

    @Paul, I'm adding a "loop" feature. Please give...

    @Paul, I'm adding a "loop" feature. Please give me a few days.


    Other question: Can we use the existing "Resampler.cpp" to adapt to different samplerates?
  37. Yes, when I wrote the reply, I did not remember...

    Yes, when I wrote the reply, I did not remember the "feedback" thing. I edited the post later..
  38. Replies
    28
    Views
    455

    Yes - it works good.

    Yes - it works good.
  39. The Audio lib has resampling code...

    The Audio lib has resampling code (Resampler.h/.cpp) - it's used for S/PDIF.

    Does anyone know if it can be used i.e. for 11kHz - 44kHz or 48kHz->44kHz?
    What is Alexander's username here?
  40. Replies
    28
    Views
    455

    Ok, that's right. Confused that with Kurt`s...

    Ok, that's right. Confused that with Kurt`s version with enabled buffer.
  41. Hi Bill, this does not happen, there is no...

    Hi Bill,
    this does not happen, there is no conversion. Best is to look at the code, it uses a buffer.
    However, from time to time things like this happen:


    // buffer overrun, PC...
  42. Replies
    28
    Views
    455

    I think it is not completely impossible that...

    I think it is not completely impossible that bottlenecks can occur when both fast SPI and TDM are supplied via the slower OCRAM (DMA). Esp, as there not reads only, but writes too and the cache is...
  43. I can't answer this :) But I know - at least on...

    I can't answer this :)
    But I know - at least on windows, you can change the default samplerate to 44100. I *think* no conversion will happen then.
  44. Replies
    28
    Views
    455

    Does it help to reduce the SPI clock? Can you try...

    Does it help to reduce the SPI clock? Can you try that?
  45. An even more simple answer is, that the PSRAM...

    An even more simple answer is, that the PSRAM chips just need power to keep their data. If you lift of the VCC pin and _not solder it to that pad and provide its power by using an other method it...
  46. Replies
    28
    Views
    455

    What just comes to mind: Hardware - different...

    What just comes to mind:
    Hardware - different PCB, different layout, additional inbuilt SD, more pins.
    Software:

    - startup.c detects and initializes PSRAM
    - Different linker file (ok, its just...
  47. Replies
    6
    Views
    1,020

    Anno 2016 I used this to program an ESP8266...

    Anno 2016 I used this to program an ESP8266 through a Teensy - i think that should work for a ESp32, too.
    (But have not tried it)

    You have to comment out the "Flexiboard" things:
  48. Your PC converts the samplerate to 44100Hz before...

    Your PC converts the samplerate to 44100Hz before sending the data to the Teensy.
    The Teensy tells the PC that it can do 44100Hz only.
  49. 0xABCD...

    0xABCD Have you tried to edit the line I mentioned? Does it help for your issue?
  50. Replies
    31
    Views
    1,677

    And exactly this is your understanding problem....

    And exactly this is your understanding problem. The trick is the unsigned arithmetic.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4