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

Search:

Type: Posts; User: Mcu32

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    63
    Views
    5,574

    Are the same build flags used?

    Are the same build flags used?
  2. Replies
    63
    Views
    5,574

    I told you about this new information a long time...

    I told you about this new information a long time ago :) But anyway, I'm glad that a newer toolchain is finally being used. It would be nice to see this for decades old components like the CMSIS or...
  3. Replies
    41
    Views
    1,390

    @ JarkkoL This, for a micro controller quite...

    @ JarkkoL
    This, for a micro controller quite impressive piece of silicon, is however miles away from a modern desktop CPU. It is also helpful to simply compare the orders of magnitude lower number...
  4. Replies
    41
    Views
    1,390

    Even with branch prediction, a register must be...

    Even with branch prediction, a register must be incremented or decremented and a comparison/jump must be performed. This is not without cost. (the jump takes 1 cycle if the prediction is correct. +1...
  5. Replies
    6
    Views
    324

    There are no DSP instructions for float. It's...

    There are no DSP instructions for float.
    It's integer only.
    So, for a float multiplication just use "*" (which is pretty fast) :-)
  6. Replies
    6
    Views
    315

    No, it is tied to the DMA buffer (half-full/full)...

    No, it is tied to the DMA buffer (half-full/full)

    And I'd say yes, it's likely that the code you posted is not the problem.
  7. Replies
    41
    Views
    1,390

    Well, this is a forum for teensy, and I would...

    Well, this is a forum for teensy, and I would guess that it would run on a T4. (btw, the architecture is also known ;-), and is has no "no-overhead loops" like esp32)
    Frankzappa, don't get confused!...
  8. Replies
    41
    Views
    1,390

    you're welcome :)

    you're welcome :)
  9. Replies
    41
    Views
    1,390

    https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-P...

    https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.html

    the last
  10. Replies
    41
    Views
    1,390

    p.s. you know gcc has a #pragma for unrolling?...

    p.s. you know gcc has a #pragma for unrolling? the compiler can do it for you.
  11. Replies
    41
    Views
    1,390

    It will be not _that_ much faster, because the...

    It will be not _that_ much faster, because the count of loops is important, too. an unrolled loop has much less jumps and compares. jumps are a bit expensive, too (not as much as a division)
    But...
  12. Replies
    41
    Views
    1,390

    1 cycle for a div is not even for...

    1 cycle for a div is not even for 16/32-bit-integer true :) udiv is 3 cycle minimum, in most cases more.
    a div is expensive.
  13. Replies
    41
    Views
    1,390

    No, a floating point multiply needs up to 3...

    No, a floating point multiply needs up to 3 cycles, division up to 18.

    https://www.quinapalus.com/cm7cycles.html
  14. Replies
    102
    Views
    4,191

    ... amazing. something like this has been in...

    ... amazing. something like this has been in demand here for more than a decade :)
  15. Replies
    22
    Views
    984

    ...and, best, sequentially. No random access.

    ...and, best, sequentially. No random access.
  16. Replies
    41
    Views
    1,390

    Divisions are slow. I have not tried it, but...

    Divisions are slow. I have not tried it, but maybe it helps to multiply with 1.0f/max instead:


    std::max(max, 10.0f);
    max = 1.0f/max;
    for (int i = 0; i < m_signalLength; i++) {
    ...
  17. Replies
    23
    Views
    927

    might be the boards are not soldered together.

    might be the boards are not soldered together.
  18. Oh.. not a good Idea. Never use a really slow...

    Oh.. not a good Idea. Never use a really slow protocol like I2C in a ISR. This will always slow down your program exactly when you don't want it to.
    Don't do it like that.

    Edit: If you read the...
  19. Replies
    8
    Views
    509

    Here's an article about self-noise :...

    Here's an article about self-noise : http://openaudio.blogspot.com/2017/03/teensy-audio-board-self-noise.html
  20. Replies
    2
    Views
    468

    YOu can get almost any frequency by modifying the...

    YOu can get almost any frequency by modifying the PLL settings (and by probably not using the analog* functions)
  21. Replies
    8
    Views
    509

    Well, the shield is not as bad as your plot...

    Well, the shield is not as bad as your plot shows. There is something wrong. But you simply can't judge that from a song.
    Do you use the linear input? (not mic)


    The user blackadr made a quite...
  22. Replies
    8
    Views
    509

    Also, keep in mind that the shield is consumer...

    Also, keep in mind that the shield is consumer quality. But it's quite ok.
  23. Replies
    8
    Views
    509

    ?? Any song you record is not white noise. Not...

    ?? Any song you record is not white noise. Not sure what you're trying to say. A recorded song will *never* show a linear spectrum.
    Distortions may caused by too high input level?
  24. Replies
    8
    Views
    509

    If you search the forum, you can find...

    If you search the forum, you can find audio-shield spectrum plots.
  25. Replies
    8
    Views
    509

    Your song is probably not very similar to...

    Your song is probably not very similar to https://en.wikipedia.org/wiki/White_noise :) Only in this case you would see a more linear spectrum.
  26. Simple. It's not needed by the firmware on T3....

    Simple. It's not needed by the firmware on T3. You can enable it, of course.
  27. Replies
    12
    Views
    935

    yup, in this case is likely that it is faster

    yup, in this case is likely that it is faster
  28. Replies
    12
    Views
    935

    I was not answering you. For single pins,...

    I was not answering you.

    For single pins, true.
    For more than one: Often, but not always. Depends....
  29. Replies
    18
    Views
    1,184

    still blocking, but as long as it's okay for...

    still blocking, but as long as it's okay for you.... it's good.
  30. Replies
    18
    Views
    1,184

    just remove the loop, do it inside the arduino...

    just remove the loop, do it inside the arduino loop function.
    Replace the delay, by using an interval timer or use millis() or elapsedMillis() or a lib or or....

    (and use 0.1f - just to get used...
  31. the normal way would be to use a transistor.

    the normal way would be to use a transistor.
  32. Replies
    18
    Views
    1,184

    As a mixer is used in almost any audio project,...

    As a mixer is used in almost any audio project, and so far nobody reported a bug, the mixer will do it.
    If not, you're doing something wrong. Simple logic.
  33. Replies
    6
    Views
    5,431

    They're counterfeits. No need to post any hints...

    They're counterfeits. No need to post any hints or tips how to use them.

    How brazen is that to even do that on the PJRC forum?
  34. Replies
    6
    Views
    502

    a much better idea is to read the cortex manuals.

    a much better idea is to read the cortex manuals.
  35. Replies
    12
    Views
    935

    1. don't use "register" - it's outdated and the...

    1. don't use "register" - it's outdated and the compiler knows better what should be a register. ARM Cortex doesn't have so many registers to work with, and declaring something as a "register" will...
  36. Replies
    13
    Views
    2,258

    The gogle coral dev board "micro" with RT1176 is...

    The gogle coral dev board "micro" with RT1176 is still not available.. still, the "pre-order" button is there.
    It has an "rtos" and would be interesting for that reason alone - without considering...
  37. Replies
    166
    Views
    39,845

    The whole thing can also be implemented well with...

    The whole thing can also be implemented well with the RMT device of the esp32, which is actually intended for hardware IR.
    Or with cleverly configured timers on the Teensys (and probably flexio on...
  38. There is also not much to configure with I2S. It...

    There is also not much to configure with I2S. It is also not a BUS with several participants. There is always a "master" that provides the clocks.
    On all Teensys the audio library is configured so...
  39. Could it be that you confuse I2S with I2C? I2C...

    Could it be that you confuse I2S with I2C?

    I2C has one line for both directions. But I2S is very different from I2C RE: use, clock & data lines and speed, and I2S is for data only - no...
  40. Replies
    4
    Views
    356

    Yes, it's something to worry about. Your programm...

    Yes, it's something to worry about. Your programm accesses memory in a way you do not intend. You really should fix it.
  41. Replies
    8
    Views
    625

    No, ideally "direct port manipulation" shouldn't...

    No, ideally "direct port manipulation" shouldn't be needed.
    An, indeed, digitalWriteFast does exactly that, if pin is a constant.
  42. Thread: CPU clock read

    by Mcu32
    Replies
    4
    Views
    312

    Try delayNanoseconds() first. (I wrote that ;-...

    Try delayNanoseconds() first.

    (I wrote that ;- )

    Frank
  43. Thread: CPU clock read

    by Mcu32
    Replies
    4
    Views
    312

    Oh, the compiler produces pretty optimized code....

    Oh, the compiler produces pretty optimized code. It will be hard to beat that. (If you have sucess, please post your code - i'd be interested)
  44. Replies
    31
    Views
    1,716

    Could be noise introduced by a ground loop. Or...

    Could be noise introduced by a ground loop.
    Or just cheap unreliable china wires.
  45. Thread: CPU clock read

    by Mcu32
    Replies
    4
    Views
    312

    1. delay(x) calls yield() and only guaranties...

    1. delay(x) calls yield() and only guaranties that (except for a little rounding that explains the 95999989 value) the delay is minmum x milliseconds.
    (and yield() can use way more cycles that...
  46. Replies
    13
    Views
    1,017

    Examples? The web is full......

    Examples? The web is full...
    https://cdn.hackaday.io/images/2304061397073176914.jpeg
    https://manufacturingreports.com/wp-content/uploads/2019/07/OSH_Park_Dimensions-3.jpg...
  47. Replies
    13
    Views
    1,017

    The last boards I ordered @OSH had "mousebites". ...

    The last boards I ordered @OSH had "mousebites". Each. They were obviously broken out of a larger circuit board by hand.
    What is the price for a 100mm x 100mm board? ;-)
  48. if you think so... it's your project. tx is a...

    if you think so... it's your project.
    tx is a single wire. You can add as many receivers as you want.
    If you want to read both directions, you need two terminals. A teensy, maybe, with two uarts...
  49. Replies
    3
    Views
    294

    Well, the teensy does indeed work without...

    Well, the teensy does indeed work without pullups...
  50. Replies
    13
    Views
    1,017

    An order takes 2-3 weeks from OSH Park to...

    An order takes 2-3 weeks from OSH Park to Germany. Don't be too shocked at the outrageous price for PCBs that don't even have acceptable milling outside and take >1 week to get produced. Was Platinen...
Results 1 to 50 of 190
Page 1 of 4 1 2 3 4