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

Search:

Type: Posts; User: gfvalvo

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    99

    @WMXZ, Yes, that's the sequence I mentioned in...

    @WMXZ,

    Yes, that's the sequence I mentioned in my original post. NVIC_TRIGGER_IRQ, NVIC_SET_PENDING, and setting the NVIC_STIR register all do essentially the same thing.

    But, as I mentioned,...
  2. Replies
    5
    Views
    99

    Won't work for my application. I have found a...

    Won't work for my application. I have found a work-around. But, it would be interesting for my own edification to find out if it's possible.
  3. Replies
    5
    Views
    99

    Trigger ISR via Software

    Hi all.

    I have a need to trigger via software the ISR I've attached to fire on the Rising edge of a T3.6 GPIO pin. Essentially, trick it into thinking that the edge occurred on the external...
  4. Replies
    26
    Views
    436

    I don't understand what that means given the...

    I don't understand what that means given the device tops out with a data rate of "5 KHz" per the datasheet. I assume that means 5 Ksamples / second.
  5. Replies
    32
    Views
    448

    That's literally taking a slow boat from China....

    That's literally taking a slow boat from China. May they arrive Coronavirus-free :D
  6. You are incorrectly applying the aliasing concept...

    You are incorrectly applying the aliasing concept to this situation.

    The sampling rate of the Audio Library is ~44 KHz. Imagine that every sampling period you sent bits from the sequence...
  7. Replies
    32
    Views
    448

    And, it seems like every manufacturer that makes...

    And, it seems like every manufacturer that makes an I2S device puts that same picture in their datasheet, many times with no further explanation. It would be so much easier if they just put in...
  8. Yup, once the master pulls the samples from the...

    Yup, once the master pulls the samples from the slave via SPI (every ~2.9 ms), it shoves them into an AudioPlayQueue. That is the FIFO on the master's end, allowing the samples to be sent to the...
  9. Yes, but the Master may not be able to pick a...

    Yes, but the Master may not be able to pick a rate that's close either. Like I said, divider choices are limited. That's solved the synchronization / FIFO technique I proposed. With a FIFO the read...
  10. Correct. I don't consider it a proper design...

    Correct. I don't consider it a proper design unless all the sample rates are exactly frequency-synchronous. You also have an issue in that there's not a great deal of flexibility in setting the SPI...
  11. Replies
    32
    Views
    448

    As I stated above, the PCM1802 will likely work...

    As I stated above, the PCM1802 will likely work with the T3.6 and Audio Library. RTFM.
  12. You can use a port input pin. For T3.5, you can...

    You can use a port input pin. For T3.5, you can find the DMA MUX request sources in Section 3.3.9.1 of the MK64FX512 Manual
  13. @d33k, So, at that data rate (remember 16 bits...

    @d33k,

    So, at that data rate (remember 16 bits each for Left & Right samples) your best choices are I2S or SPI. If you chose the former, you could sync the T3.6's audio sample rate to the source...
  14. That doesn't seem too onerous. The other...

    That doesn't seem too onerous.

    The other option would be run it through an amp block whose gain you change from 1 to 0 to shut down the output.
  15. I don’t understand how aliasing would be an issue...

    I don’t understand how aliasing would be an issue here. That seems more like an ADC sampling problem. Here we’re pushing data out of the DAC. Since the DAC has finite bandwidth, it may not faithfully...
  16. Why not? Seems like this should work too: ...

    Why not? Seems like this should work too:

    #include "Arduino.h"
    #include <Audio.h>

    AudioSynthWaveform sine;
    AudioSynthWaveform square;
    AudioOutputAnalogStereo dacs1;
    AudioConnection...
  17. Thinking about it some more, a MUCH simpler...

    Thinking about it some more, a MUCH simpler solution would be to use one AudioSynthWaveform object to generate the sine wave and another one to generate the square wave the same frequency but with a...
  18. I don't see an easy way to do this. About all I...

    I don't see an easy way to do this. About all I can come up with is to create a new Audio Library class to generate the sine wave (copy AudioSynthWaveform and get rid of everything but sine) and...
  19. Maybe reserve more AudioMemory?

    Maybe reserve more AudioMemory?
  20. Replies
    32
    Views
    448

    Correction: "That doesn't mean BCK has to equal...

    Correction:
    "That doesn't mean BCK has to equal 48 * Fs."
  21. Replies
    32
    Views
    448

    Read the PCM1802 datasheet again. 24 bits is the...

    Read the PCM1802 datasheet again. 24 bits is the resolution of the L & R auto samples. That doesn't mean BCK has to equal 24 * Fs. Sections 7.4.3 and 7.4.4 (master and slave modes respectively) both...
  22. Replies
    8
    Views
    258

    Since the audio nodes are regular C++ classes,...

    Since the audio nodes are regular C++ classes, you can instantiate them dynamically using the standard C++ technique (i.e. 'new'). Then, create the links between them.
  23. Replies
    26
    Views
    436

    I hate when I reread my posts, find errors, and...

    I hate when I reread my posts, find errors, and the window has closed on being able to edit it:
  24. Replies
    26
    Views
    436

    I didn't say that the input/output sampling needs...

    I didn't say that the input/output sampling needs to be Phase synchronous. As you stated, that's easily handled with a FIFO buffer. But, the sampling rate at the input (i.e. from the I2C device) must...
  25. Replies
    26
    Views
    436

    It's still unclear to me how this is going to...

    It's still unclear to me how this is going to work. The clocking and update period of the Audio library's objects is ~44.1 KSamples/s. In this instance that period is set by the AudioOutputI2S object...
  26. I'd be careful of the products explicitly...

    I'd be careful of the products explicitly targeted to Raspberry. This one looked really good for my application: https://www.hifiberry.com/shop/boards/hifiberry-amp2/
    But it requires their Linux...
  27. Replies
    5
    Views
    353

    I've used this board for TOSLINK in and out. It...

    I've used this board for TOSLINK in and out. It does TOSLINK <--> I2S conversion for you. So, it interfaces to the Teensy using I2S....
  28. Replies
    0
    Views
    52

    Implementing I2C Slave on T3.2

    Hi All.

    Got question about implementing an I2C slave on T3.2. One common I2C technique is for the master to start a Read transaction and then proceed to read an arbitrary number of bytes from the...
  29. Replies
    0
    Views
    89

    Switch I2S Timing Source on the Fly

    Hi All.

    I have a need in my project to periodically switch the timing source (on the fly) of the I2S Tx from an externally supplied MCLK to the internal one generated by Fractional Clock Divider...
  30. Replies
    8
    Views
    339

    Here's what I found and ordered:...

    Here's what I found and ordered: http://store.sure-electronics.com/product/AA-AB32255. It looks promising. The TI chip appears capable but quite complex. It has significant Audio DSP abilities that...
  31. Replies
    8
    Views
    339

    So have I. But, it has analog inputs. I'm looking...

    So have I. But, it has analog inputs. I'm looking for I2S.
  32. Replies
    8
    Views
    339

    I already have that. Now I'm looking for an...

    I already have that. Now I'm looking for an integrated, digital-to-the-final-chip solution.


    Already thought of that. But, fabbing the PWB and buying the BoM for a onesie-twosie production run...
  33. Replies
    8
    Views
    339

    It does, just as I mentioned. * There's no...

    It does, just as I mentioned.


    * There's no "buy" button on the web site I linked.

    * I've entered an RFQ on the web site --- no reply.

    * I've sent multiple emails to their "Customer...
  34. Replies
    8
    Views
    339

    20W I2S Audio Amplifier Board

    Anyone know of a ~20W / channel stereo I2S Class D amplifier board? Having I2C control for configuration and volume control would be an extra bonus. A manufacture’s Eval Board showcasing their chip...
  35. Replies
    14
    Views
    474

    Without thinking about it too much, it seems...

    Without thinking about it too much, it seems you'd be better off using one of the K20's FTMs set up for Input Capture mode.
  36. Replies
    0
    Views
    134

    Interfacing 32Fs I2S CODEC

    Hi All.

    I’m thinking about interfacing Adafruit’s MP3 CODEC Breakout to the I2S Input of T3.X boards and the Teensy Audio Library.

    This breakout uses the VS1053B from VSLI Solution. Even though...
  37. Replies
    4
    Views
    241

    Yes, I am familiar. Thank you.

    Yes, I am familiar. Thank you.
  38. Replies
    4
    Views
    241

    Thanks @KurtE. So, looking at the T3.6 schematic...

    Thanks @KurtE. So, looking at the T3.6 schematic (but not yet the code), it seems that using its built-in SD card with the Audio Library will use the chip’s HDSC controller rather than SPI. And, I...
  39. Replies
    4
    Views
    241

    Audio Library, SPI Peripherals, and T3.6

    Hi all.

    So, working on a project using T3.2 that uses both the AudioPlaySdWav class from the Audio library and an nRF24L01+ module. I’m having problems with the code hanging and my conjecture is...
  40. Replies
    9
    Views
    480

    Yes, an array of HardwareSerial pointers works...

    Yes, an array of HardwareSerial pointers works fine as long all “SerialX” objects are instances of that class. The advantage there is that HardwareSerial defines the .begin() method so you can loop...
  41. Replies
    9
    Views
    480

    Something like this. Compiles for a T3.5, but I...

    Something like this. Compiles for a T3.5, but I don't have one to test it.

    Stream *streamArray[] = {&Serial, &Serial1, &Serial2, &Serial3, &Serial4, &Serial5, &Serial6};
    const uint8_t numSerials...
  42. Replies
    2
    Views
    289

    Nice. Thanks Paul.

    Nice. Thanks Paul.
  43. Replies
    9
    Views
    480

    It's probably more flexible to use a an array of...

    It's probably more flexible to use a an array of pointers to Stream objects.
  44. Replies
    2
    Views
    289

    Port Pin Edge Detection

    Hi All.

    I’m wondering if it’s possible to use the edge detect capability of T3.2 Port Pins without actually causing an interrupt. I don’t want to miss the signal edge, but I don’t need the fast...
  45. Replies
    3
    Views
    120

    So, if I'm reading the datasheet and source code...

    So, if I'm reading the datasheet and source code correctly, it looks like the Baud is actually set to 3.75 MHz on a T3.2 (overclocked) when Pin 8 / UART2 is selected. Right?
  46. Replies
    3
    Views
    120

    Thanks Paul. I was just about to post that I...

    Thanks Paul. I was just about to post that I found that info after digging through the datasheet for a while.
  47. Replies
    3
    Views
    120

    WS2812Serial Question

    Hi All:

    Is seen in the example code for the WS2812Serial libary the following line:

    // Teensy 3.2: 1, 5, 8, 10, 31 (overclock to 120 MHz for pin 8)
    Just curious why the need for 120 MHz...
  48. Replies
    2
    Views
    188

    If the duty cycle is fixed at 50%, how is it PWM...

    If the duty cycle is fixed at 50%, how is it PWM (Pulse Width Modulation)?
  49. Thread: DMA llibrary

    by gfvalvo
    Replies
    1
    Views
    151

    Have you looked at the DMAChannel class that...

    Have you looked at the DMAChannel class that comes with the Teensy core?
  50. Replies
    14
    Views
    508

    I'm currently driving APA102 LEDs programmaticly...

    I'm currently driving APA102 LEDs programmaticly with 24 MHz SPI (fastest possible on T3.2) -- no issues. The advantage of DMA is being able to update a buffer with the next display (ping-pong style)...
Results 1 to 50 of 348
Page 1 of 7 1 2 3 4