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

Search:

Type: Posts; User: neutron7

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. I know this is very old, but if you are trying to...

    I know this is very old, but if you are trying to squeeze a few more cycles out of the teensy, I improved the time taken to set a value for the DACs on a teensy 3.6 by moving the instruction that...
  2. It can be done sample at a time, but there are...

    It can be done sample at a time, but there are more "gotcha"'s. I did it with t3.6 on my eurorack module "dust of time" I had to forgo having any floats in the ISR though. that makes it harder to do...
  3. All variables with ASM saturation function.

    I have used this ASM saturation function borrowed from the audio library.


    inline int32_t clampU_rsh(int32_t val, int bits, int rshift)
    {
    int32_t out;
    asm volatile("usat %0, %1, %2, asr...
  4. Thank you. I did have a look at the .lst file in...

    Thank you. I did have a look at the .lst file in the past when i was working on a polynomial sine generator, there was also an asm example i was going to try, but i found the compiler had basically...
  5. Unsigned version of multiply_32x32_rshift32

    I am trying to do an unsigned version of this assembler code in the audio library, but I really have no idea how it works.

    the code is:

    // computes (((int64_t)a[31:0] * (int64_t)b[31:0]) >> 32)...
  6. That explains a lot! Is there any way around it?

    That explains a lot! Is there any way around it?
  7. What is wrong here, High priority IRQ stopped by loop in low priority one. [T4, 4.1]

    I have 2 intervaltimer ISRs, for clarity on the scope when suing sync they are running at:
    "audio_ISR_Timer" 15us set to priority 0.
    "controlLoopTimer" 300us priority 64.

    it is easiest to see on...
  8. Another way, which might be better for...

    Another way, which might be better for procedurally generated waveforms, is oversampling. Say you do 4x oversampling, you use 1/4 the phase increment you normally would, but calculate the oscillator...
  9. I'm glad i found this! using teensy 4.1 with...

    I'm glad i found this! using teensy 4.1 with single reads of several pins assuming 4.1 had "all ADC pins work with all ADCs"
    It was stopping reading when ADC1 read 24/A10 and 25/A11, swapped them...
  10. Replies
    3
    Views
    1,048

    No, you were right, but i had to start at byte...

    No, you were right, but i had to start at byte 100, not 99 and also multiply the float by 2147483648 before saving it as int32.

    Thank you i have wasted a lot of time on that!
  11. Replies
    3
    Views
    1,048

    something different did happen, it looks like a...

    something different did happen, it looks like a +-1 bit wave.
    Doesn't that read the 4 bytes 0-1-2-3? they need to be 3-2-1-0
  12. Replies
    3
    Views
    1,048

    opening 32 bit wave file

    I am trying to load some wavetables from SD to the external PSRAM on teensy 4.1, they are wavetables created with "serum" synthesizer. they are mono 32 bit wav files up to 524288 samples.

    I have...
  13. Replies
    549
    Views
    116,630

    I see that the block diagram for the i.MX1170...

    I see that the block diagram for the i.MX1170 says "1 Gbps ENET with AVB" is that the same AVB "Audio Video Bridge" that is used by comapnies such as MOTU to transfer audio over ethernet, and if so,...
  14. All the different PWM bit depth vs maximum...

    All the different PWM bit depth vs maximum frequency are in the table here. https://www.pjrc.com/teensy/td_pulse.html
  15. This worked well, I even increased the second...

    This worked well, I even increased the second "MISO" frequency to 30000000 and it works.

    Just aside, I was reading about the imx1170 for some reason, and it's page shows it has "pxp pixel...
  16. I don't know if this is the right place to ask,...

    I don't know if this is the right place to ask, please correct me if wrong! but this was the first ILI9341 library i got to work for me.

    I was wondering if there is there a way to have a "fake...
  17. Since the analog inputs work best with a low...

    Since the analog inputs work best with a low impedance driver, I like to use a rail to rail op amp that is powered by 3.3V, so it can never output a higher voltage than the teensy can take. there are...
  18. Replies
    19
    Views
    3,179

    Team Monsoon, not only the "famous" battlebot but...

    Team Monsoon, not only the "famous" battlebot but also "drizzle" antweight you wouldn't want to mess with.
  19. Replies
    19
    Views
    3,179

    No help here, but your name reminds me of a...

    No help here, but your name reminds me of a certain combat robot team from the UK. "get in your house!"
  20. Replies
    81
    Views
    45,239

    there are a few ways to do it, depending on how...

    there are a few ways to do it, depending on how accurate you want, how much memory you have, and how fast you need it to be.

    you can use "POW" function, which is quite slow but the most accurate,...
  21. Replies
    38
    Views
    13,412

    Is there more information about "Use standard...

    Is there more information about "Use standard (not low power) ADC mode"
    is it just teensy 4.x that is affected? or will it change performance of 3.x ADC as well?
  22. I think most of that “off time” is doing the...

    I think most of that “off time” is doing the compare and loop increment, What if you count the loop down to zero? “compare to 16384” probably takes more cycles than “loop if non zero” then you might...
  23. Replies
    5
    Views
    1,453

    The o&c has the DAC and display on the same SPI...

    The o&c has the DAC and display on the same SPI bus, It makes the timing tricky. if you want audio rate out the display might have to do nothing while it is playing.
  24. Replies
    20
    Views
    2,535

    I don't know much about how this works, but there...

    I don't know much about how this works, but there is

    http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0489d/BABJFFGJ.html

    there are comparators,

    could you set one to...
  25. Different behaviour with 2 teensy 3.6 > DAC 8562

    I have 2 boards which are the same, both use a teensy 3.6 and DAC8562. On one of them the DAC would not start. the Sync(CS), Clock, and Data signals to the DAC looked the same on a scope, but the non...
  26. have you got a MIDI monitor software? you could...

    have you got a MIDI monitor software? you could check to see if the buttons are bouncing like crazy and sending enough MIDI data to interfere with Mainstage?
  27. Hmm, i think this must be it then? ...

    Hmm, i think this must be it then?

    HFW8R-1STE1H1LF
  28. That is the cable itself, this is for the...

    That is the cable itself, this is for the connector.
  29. FFC 8 pin, HFW8R-1STE1LF (teensy 4 bottom SD connector) obsolete.

    Can I use this one instead? the data sheet does not have a footprint.

    https://www.mouser.ca/ProductDetail/Amphenol-FCI/HFW8S-2STAE1LF?qs=sGAEpiMZZMs7i6cT6ogu4%252BM5B8TmbFcyy4tps6v3cqo%3D
  30. Replies
    2
    Views
    921

    Thanks! I ended up adapting the code at the...

    Thanks! I ended up adapting the code at the bottom of this page https://www.best-microcontroller-projects.com/rotary-encoder.html one of my encoders was still not so great, but a short delay...
  31. Replies
    2
    Views
    921

    Encoder library with cheap encoders.

    I have had trouble with encoders skipping counts and sometimes even stepping in the opposite direction.
    I am using a teensy 3.6 with the encoder library 1.4.1

    the sketch is the example on the...
  32. Replies
    161
    Views
    43,889

    I just noticed the updated back side graphic, i...

    I just noticed the updated back side graphic, i guess there is no more external AREF? is there a way to get the same sort of performance from the ADCs with potentiometers across a 3 or 3.3v supply?
  33. Replies
    161
    Views
    43,889

    I just ordered 4, i have been looking forward to...

    I just ordered 4, i have been looking forward to this! quick question, the teensy 4 page shows the top side pins in both pictures instead of the usual top and bottom, I just want to confirm that the...
  34. Replies
    3
    Views
    947

    The audio shield goes on top of the teensy.

    The audio shield goes on top of the teensy.
  35. Replies
    6
    Views
    2,382

    Thank you, i tested the timing on the "almost...

    Thank you, i tested the timing on the "almost working" verion (which outputs half a sine) and it did not run any faster, it was worth a try though!
  36. Replies
    6
    Views
    2,382

    On a wild guess i removed the "bx lr" at the end...

    On a wild guess i removed the "bx lr" at the end and now it "works" but not properly.
  37. Replies
    6
    Views
    2,382

    thank you, now it compiles but unfortunately now...

    thank you, now it compiles but unfortunately now the teensy stops when the function is called.


    static inline int32_t iSIN3(int32_t x)
    {
    int32_t out;
    asm volatile (
    "mov %0, %0,...
  38. Replies
    6
    Views
    2,382

    trying to port some assembly.

    I have been working on this thing: there is a teensy 3.6 and some multiplexers and output op amps on the back, not much else except power and supervisor.
    11512


    One thing it does, is generate...
  39. Replies
    30
    Views
    21,890

    here is a "hack" where you can add a MIC803 under...

    here is a "hack" where you can add a MIC803 under the teensy.
    10864
  40. Replies
    7
    Views
    3,798

    ok thanks, its such a minor thing, its not worth...

    ok thanks, its such a minor thing, its not worth wasting too much time on compared to your actual work.
  41. Replies
    30
    Views
    21,890

    I have just installed a MIC803 (2.63 threshold...

    I have just installed a MIC803 (2.63 threshold and >1 second delay but im pretty sure the faster 140ms or 20ms ones will work)
    I have a eurorack module with t3.6 which gets used with various...
  42. Replies
    7
    Views
    3,798

    Make teensyduino window easier to move.

    Hopefully a simple change for a future version of teensyduino!

    this might be sort of dumb, but:
    I have my windows set to a larger font size due to aging eyes and a high resolution monitor, there...
  43. Replies
    30
    Views
    21,890

    what startup behavior do you want to see, the...

    what startup behavior do you want to see, the 3.3v teensy voltage and?
  44. Replies
    30
    Views
    21,890

    please keep us posted how well that chip works, i...

    please keep us posted how well that chip works, i have trouble with a project sometimes not starting as well, and that looks like a nice solution, if you can still program with it.
  45. Thanks, I will leave it as is for now then.

    Thanks, I will leave it as is for now then.
  46. Help converting arm assembler for teensy 3.6

    I have been using this sine approximation by Jasper Vijn as a function, which works well. http://www.coranac.com/2009/07/sines/


    //fast sine approximation by Jasper Vijn
    /// A sine approximation...
  47. Thread: K66 Beta Test

    by neutron7
    Replies
    1,558
    Views
    895,724

    wouldn't the single precision float be able to...

    wouldn't the single precision float be able to speed up emulation of double?
  48. Thread: K66 Beta Test

    by neutron7
    Replies
    1,558
    Views
    895,724

    Just in case anyone is interested, I ran a...

    Just in case anyone is interested,
    I ran a benchmark i found with teensy 3.2 and 3.6 both at 120mhz, to get a sort of "apples to apples" comparison.



    F_CPU = 120000000 Hz teensy 3.2 teensy...
  49. Replies
    2
    Views
    1,345

    i fixed it (on the sample variables which are...

    i fixed it (on the sample variables which are accessed from the ISRs) it has not made any difference though.
  50. Replies
    2
    Views
    1,345

    Trying to read i2s directly from SGTL5000

    I am trying to do some "sample by sample" audio effects without using any DMA or buffers.
    I based this on a drum machine by "kbob" which only has outputs, and the output part is working on my...
Results 1 to 50 of 79
Page 1 of 2 1 2