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

Search:

Type: Posts; User: maelh

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    800

    Reset Teensy 3.6 from PC side (Windows)

    Hi,

    An Arduino UNO can be reset by just opening a serial connection to it and setting the DTR pin appropriately.
    Windows code to achieve this looks like this:

    //Setting the DTR to...
  2. Ok, I understand. Currently the program is...

    Ok, I understand.

    Currently the program is quite complex and I get stalls/deadlocks that are probably due to some race conditions.
    Somehow DAC0 is reading at the same time Serial is writing.
    I...
  3. To show a couple concrete examples: from...

    To show a couple concrete examples:

    from AudioInputAnalog::init() in input_adc.cpp:

    // set the programmable delay block to trigger the ADC at 44.1 kHz
    #if defined(KINETISK)
    if (!(SIM_SCGC6 &...
  4. This is merely a more concrete reminder of this...

    This is merely a more concrete reminder of this issue.
    There is a very detailed analysis in the thread I linked, including some code samples. So I thought you were aware of the details already,...
  5. Serial options for setting and disabling timeouts

    I have run into the same issues as mentioned in this thread:
    https://forum.pjrc.com/threads/31986-Data-dropouts-in-serial-transfer-over-USB?p=90685&viewfull=1#post90685

    It is more critical for my...
  6. Replies
    1
    Views
    833

    Bug in kinetis.h for Teensy 3.6?

    There is the following define:
    #define DMAMUX_SOURCE_UART5_RXTX 11

    But in the docs for the DMA MUX page 473 it is marked as reserved:
    11 Reserved —

    A comment below the table says "1....
  7. For a simple PDB that should just generate...

    For a simple PDB that should just generate interrupts at a certain frequency it works perfeclty, not matter what I set IDLY to.
    That's why I was wondering about its purpose in the ADC converters.
  8. I am talking about the DAC and ADC code of...

    I am talking about the DAC and ADC code of teensy. Does nobody have an insight on why PDB0_IDLY is 1 and not 0?
  9. Replies
    6
    Views
    1,228

    SetupComm() succeeds as long as the buffers are...

    SetupComm() succeeds as long as the buffers are set to be at least 2 bytes large.

    I did more testing. With an Arduino UNO and Teensy 3.6. They surprisingly behave the same regarding buffer sizes,...
  10. Replies
    6
    Views
    1,228

    Thanks for your reply. Looks like I have quite...

    Thanks for your reply. Looks like I have quite some reading to do.

    Could you comment on SetupComm() in the mean time?
  11. PDB settings on Teensy 3.6 - MOD and IDLY values

    Sorry for the many questions in a row, I hope that's the last one ;)

    I have been reading through the source code employing the PDB, and I noticed that they all set PDB0_MOD to a value that is one...
  12. Replies
    6
    Views
    1,228

    USB-Packet size and buffering/streaming

    I read in other threads that the USB packet size is 64 bytes, and therefore it would be ideal to send at least 64 bytes in one go.
    Is this bytecount the payload, or the size of the entire packet,...
  13. SerialUSB with DMA for streaming data to a DAC - Teensy 3.6

    Hello,

    Currently I am reading data using Serial.read()/readBytes() in loop() until one half of the sampleBuffer is full, while the other half gets copied to DAC0 using DMA.
    This works fine now,...
  14. That would be good approach, if it was to be...

    That would be good approach, if it was to be implemented some day (though I agree, there is no pressing need for it). I was mostly interested in the design decisions/rationale behind the...
  15. Thanks for mentioning the code snippet. I...

    Thanks for mentioning the code snippet. I actually read it but interpreted it wrong. So limited to at most 16 channels it is.

    I wonder what the purpose of 32 DMA channels is when they don't have...
  16. Completion interrupts for DMA channels -- 32 channels but only 16 interrupt vectors

    Hi,

    There are 32 DMA channels, but only 16 dma irqs/interrupt vectors, as can be seen in chapter "3.4 Interrupt channel assignments" of the Teensy 3.6 chip manual (MK66FX1M0VMD18).

    From reading...
  17. Thanks, you gave me some other hints on where to...

    Thanks, you gave me some other hints on where to look for information :)
  18. Where are the chip configuration details (or the "Chip-specific" sub-chapters)?

    Hi,

    I have been looking into PDB, DAC and other internals of the Teensy 3.6 microcontroller chip.
    The "MK66FX1M0 Manual" frequently refers to "chip configuration details", but I cannot find the...
Results 1 to 18 of 18