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.01 seconds.

  1. You need to connect GND between Teensypower...

    You need to connect GND between Teensy<-->power supply
  2. Write the same value with color = background-color

    Write the same value with color = background-color
  3. Replies
    93
    Views
    7,494

    Are the same build flags used?

    Are the same build flags used?
  4. Replies
    93
    Views
    7,494

    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...
  5. Replies
    41
    Views
    1,584

    @ 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...
  6. Replies
    41
    Views
    1,584

    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...
  7. Replies
    6
    Views
    393

    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) :-)
  8. Replies
    6
    Views
    416

    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.
  9. Replies
    41
    Views
    1,584

    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!...
  10. Replies
    41
    Views
    1,584

    you're welcome :)

    you're welcome :)
  11. Replies
    41
    Views
    1,584

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

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

    the last
  12. Replies
    41
    Views
    1,584

    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.
  13. Replies
    41
    Views
    1,584

    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...
  14. Replies
    41
    Views
    1,584

    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.
  15. Replies
    41
    Views
    1,584

    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
  16. Replies
    102
    Views
    4,896

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

    ... amazing. something like this has been in demand here for more than a decade :)
  17. Replies
    22
    Views
    1,160

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

    ...and, best, sequentially. No random access.
  18. Replies
    41
    Views
    1,584

    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++) {
    ...
  19. Replies
    23
    Views
    1,054

    might be the boards are not soldered together.

    might be the boards are not soldered together.
  20. 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...
  21. Replies
    8
    Views
    541

    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
  22. Replies
    2
    Views
    549

    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)
  23. Replies
    8
    Views
    541

    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...
  24. Replies
    8
    Views
    541

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

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

    ?? 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?
  26. Replies
    8
    Views
    541

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

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

    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.
  28. 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.
  29. Replies
    12
    Views
    991

    yup, in this case is likely that it is faster

    yup, in this case is likely that it is faster
  30. Replies
    12
    Views
    991

    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....
  31. Replies
    18
    Views
    1,244

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

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

    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...
  33. the normal way would be to use a transistor.

    the normal way would be to use a transistor.
  34. Replies
    18
    Views
    1,244

    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.
  35. Replies
    6
    Views
    5,507

    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?
  36. Replies
    6
    Views
    576

    a much better idea is to read the cortex manuals.

    a much better idea is to read the cortex manuals.
  37. Replies
    12
    Views
    991

    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...
  38. Replies
    13
    Views
    2,368

    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...
  39. Replies
    166
    Views
    40,619

    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...
  40. 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...
  41. 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...
  42. Replies
    4
    Views
    418

    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.
  43. Replies
    8
    Views
    665

    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.
  44. Thread: CPU clock read

    by Mcu32
    Replies
    4
    Views
    343

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

    Try delayNanoseconds() first.

    (I wrote that ;- )

    Frank
  45. Thread: CPU clock read

    by Mcu32
    Replies
    4
    Views
    343

    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)
  46. Replies
    31
    Views
    1,885

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

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

    by Mcu32
    Replies
    4
    Views
    343

    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...
  48. Replies
    13
    Views
    1,101

    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...
  49. Replies
    13
    Views
    1,101

    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? ;-)
  50. 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...
Results 1 to 50 of 192
Page 1 of 4 1 2 3 4