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

Search:

Type: Posts; User: LukasFun

Search: Search took 0.00 seconds.

  1. OK, so this works if you want to use only one...

    OK, so this works if you want to use only one interrupt per timer (which is two in total). Is there a way to attach three different routines to the three output-compare events of one timer?
  2. The overhead of digitalWriteFast() is nothing...

    The overhead of digitalWriteFast() is nothing compared to the problem here (3 ns = 150 MHz). Here is what your code produces:

    18748
  3. Here is what the reading of the oscilloscope...

    Here is what the reading of the oscilloscope looks like:
    18746
  4. Update: With the 150 MHz clock it only takes...

    Update: With the 150 MHz clock it only takes about 80 ns. But that is still way too long for just setting or reading a value.

    This is the sketch I used for testing this:



    #include...
  5. But I am using the peripheral clock, which runs...

    But I am using the peripheral clock, which runs at 150 MHz...
  6. Reading from and writing to the GPTx_SR register takes incredibly long

    I have been working on a project where I use timer controlled interrupts. One of the things necessary for that is to reset the respective bits in the GPT Status Register. Reading a value from that...
  7. It seems that the Pins are connected to GND via a...

    It seems that the Pins are connected to GND via a 100 kOhm resistor by default. It is possible to disconnect them though using


    pinMode(pin, INPUT_PULLUP);

    See also...
  8. How to pull down an input pin on the Teensy 4.0

    Is there any way to pull down an input pin on the Teensy 4.0 other that manually connecting it to GND via a resistor?
  9. Thanks manitou for the inspiration. I've been...

    Thanks manitou for the inspiration. I've been working on the project for some time now and was able to get it working the way I wanted it to (I'd still like the structure to be a bit better, but...
  10. How to use the general purpose timer (GPT) output conpare interrupt

    I am trying to create multiple interrupts that use the gpt.
    The project should look something like this:



    // compare values that will trigger the interrupts
    uint32_t ocvalue1 = 1000;...
Results 1 to 10 of 12