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

Search:

Type: Posts; User: joepasquariello

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Yes, the decimal part is discarded when...

    Yes, the decimal part is discarded when converting the float result to an integer, but 0.5 is added. The modulo value will be <= 64434 as long as 150M/Freq < 65534.5
  2. millis() provides 1 ms accuracy. If you want to...

    millis() provides 1 ms accuracy. If you want to test the accuracy of IntervalTimer, read the ARM cycle counter in your callback function, compute the difference between cycle count values, and then...
  3. elapsedMillis uses millis(), and millis() simply...

    elapsedMillis uses millis(), and millis() simply returns systick_count, which is updated in the ISR for the ARM SysTick timer. The Teensy4 systick_isr() from EventResponder.cpp and millis() from...
  4. Searching in the forum can be hit-or-miss. I knew...

    Searching in the forum can be hit-or-miss. I knew I had seen this question before, so I tried a few times...
  5. Searched the forum for "usb 12mbit" and found...

    Searched the forum for "usb 12mbit" and found this thread

    https://forum.pjrc.com/threads/68347-USB-Output-Force-12mbit-and-change-bPacketSize?highlight=usb+12mbit
  6. Thanks for pointing out that VM/VS uses what has...

    Thanks for pointing out that VM/VS uses what has already been installed for Arduino. I find that much preferable to the PlatformIO approach, and I'll try it again.
  7. I've tried PlatformIO a couple of times, but...

    I've tried PlatformIO a couple of times, but ended up going back to Arduino. Arduino has lots of issues, but I do understand how to install it and maintain it. Can you explain where in the PlatformIO...
  8. You say you looked at this? According to FrankB,...

    You say you looked at this? According to FrankB, it works.

    https://forum.pjrc.com/threads/48430-Program-Teensy-from-another-Teensy?p=289237&viewfull=1#post289237
  9. I recommend installing direct from SD rather than...

    I recommend installing direct from SD rather than via a second T4.1. You need to take what you need from FlasherX and integrate it into your own application. Itís or a plug and play solution.
  10. A few have people have done what you want via...

    A few have people have done what you want via "FlasherX" discussed in the thread below.

    https://forum.pjrc.com/threads/43165-Over-the-Air-firmware-updates-changes-for-flashing-Teensy-3-5-amp-3-6
    ...
  11. Replies
    3
    Views
    119

    Yes, it would.

    Yes, it would.
  12. Check the source. Think there might be only two....

    Check the source. Think there might be only two. Is there any relationship between the 4 frequencies that would allow one time to support more than one frequency?
  13. It's part of the Teensy4 core, not a library (see...

    It's part of the Teensy4 core, not a library (see cores\Teensy4\IntervalTimer.cpp). It's a 32-bit timer, and it has a maximum interval of more than 178 sec.
  14. I'm having a hard time imagining what is your...

    I'm having a hard time imagining what is your objective. Can you say more about what you're trying to do, and why you need nanosecond precision? You may be able to get the 3 x 16-bit timer method to...
  15. Replies
    3
    Views
    119

    Are you trying to determine the time for some...

    Are you trying to determine the time for some number of pulses at 10 MHz? How many?
  16. Have you tried IntervalTimer, as shown below? It...

    Have you tried IntervalTimer, as shown below? It supports a maximum interval of about 178 seconds, so it seems to work fine at 60 seconds. To ensure minimum delay I've shown how to set to highest...
  17. Do you mean that you want to get an interrupt...

    Do you mean that you want to get an interrupt when the timers each have a specific value, such as T0=X, T1=Y, T2=Z? I don't think there is a way to do that.

    Can you say more about what you're...
  18. Replies
    6
    Views
    365

    Didn't see this until after I had posted my...

    Didn't see this until after I had posted my reply. :-)
  19. Replies
    6
    Views
    365

    ARM processors have a running counter of clock...

    ARM processors have a running counter of clock cycles. For T4.x, all you have to do is read ARM_DWT_CYCCNT. Here is an example program that shows how to use it. Cycles are converted to nanoseconds...
  20. The existing code does use the "full...

    The existing code does use the "full not-quite-16-bit" range if the specified frequency allows. What happens is that if the computed modulo is > 65534, the prescaler is incremented and the modulo is...
  21. Okay, that's helpful. The smaller value (2288.82)...

    Okay, that's helpful. The smaller value (2288.82) results in a "modulo" value of 65536, which is too large for the 16-bit counter, so the prescaler is incremented by 1, and the modulo value is...
  22. and from your cross-post The Teensy 4.x...

    and from your cross-post



    The Teensy 4.x PWM code is in cores/Teensy4/pwm.c. The functions for Flex or Quad timer get called as a function of the chosen pin. The code intends to support 16...
  23. Good to know you found it. Is sysConfig a pointer...

    Good to know you found it. Is sysConfig a pointer to an instance of Logger?
  24. It would be interesting to see a small sample...

    It would be interesting to see a small sample program that uses this display and works with Teensy 4.0.
  25. Thanks,@luni. I do use google, but I didn't know...

    Thanks,@luni. I do use google, but I didn't know about this syntax. I'll watch the video, too.
  26. Yes, I saw that, but it seems to limit the...

    Yes, I saw that, but it seems to limit the results to an arbitrary (and relatively small) number of posts, so it's not very useful for looking at history for someone who posts frequently.
  27. When I search for ClickEncoder library, I find...

    When I search for ClickEncoder library, I find quite a few, and I don't see any that support Teensy. Which one are you using and are you sure it supports Teensy? Also, with Teensy, you may want to...
  28. Yes, that's right, and hopefully you won't have...

    Yes, that's right, and hopefully you won't have to disable interrupts.



    Yes, that's my thinking, but it may not be as simple as that.



    There's a lot of good information on this forum. It...
  29. The interrupt would occur after you re-enable...

    The interrupt would occur after you re-enable interrupts.



    The page you linked says...



    ... so it sounds like 1-byte variables are okay. I may be corrected by one of the more senior...
  30. Are you using Teensy's Encoder library, or some...

    Are you using Teensy's Encoder library, or some other Arduino library? I don't see a file named ClickEncoder.h anywhere in the TeensyDuino installation. Anyway, that's the first error that I run into...
  31. I had no internet the last two days, so just able...

    I had no internet the last two days, so just able to respond now. Are you saying that the same FlasherX code was used before and after the changes to your own code? I think that's what you're saying,...
  32. I don't think you want to read "continuously"...

    I don't think you want to read "continuously" (read multiple times). You want to read chan 1/2 once, then read channel 3/4 once, then back to 1/2, 3/4, etc. Reading continuously means starting the...
  33. I'm doing something similar to what you want to...

    I'm doing something similar to what you want to do with a T3.5, which I'll get to below. First, regarding your example code, read "continuous" means start once, and then read many times. You don't...
  34. Testing with T4.1 and T3.2 and it seems good. Can...

    Testing with T4.1 and T3.2 and it seems good. Can you revert to a version of your code where you know for sure it worked?
  35. Without looking at the library itself, I would...

    Without looking at the library itself, I would say the line below in the table at the top of your program indicates the default pin usage for T4.1. There is no line for T4.0, so you might have to add...
  36. Replies
    14
    Views
    181

    What OS are you using means are you developing on...

    What OS are you using means are you developing on Windows, Mac, Linux?? It's unlikely that anyone is going to watch a youtube video to figure out what went wrong. Suggest you uninstall everything and...
  37. Replies
    8
    Views
    503

    Both, perhaps, but thatís a question for Paul.

    Both, perhaps, but thatís a question for Paul.
  38. Replies
    8
    Views
    503

    Maybe others will give their opinion, but I'll...

    Maybe others will give their opinion, but I'll try to answer. Arduino makes it easy for the beginner to get started. You can buy a board and immediately write programs, with little or no knowledge of...
  39. Replies
    8
    Views
    503

    Teensy is a great product, with exceptionally...

    Teensy is a great product, with exceptionally good software and the best support forum/community. If you decide to try to do something with your T4.1, you'll find good resources here.
  40. You havenít really said what is your speed...

    You havenít really said what is your speed requirement. It seems to just be ďfasterĒ. You might be on your own with FlexIO. You could try transfer32() or multiple SPI.
  41. T4.1 digital output signals are 3.3V, so a PWM...

    T4.1 digital output signals are 3.3V, so a PWM signal is switching between ~0 and ~3.3V. What your meter shows will be a function of how it averages, but if you connect that PWM to something else...
  42. Well, yes, easy once you have one. Are T3.2 and...

    Well, yes, easy once you have one. Are T3.2 and LC available?
  43. In order to generate an analog voltage, you need...

    In order to generate an analog voltage, you need a DAC output, which Teensy 4.x does not have. When you use AnalogWrite() on a digital pin, you are creating a PWM signal. The 2nd argument to the...
  44. Teensy 4.x also has transfer16() and...

    Teensy 4.x also has transfer16() and transfer32(). If you can do each DAC with a single 32-bit transfer, that should be a significant improvement over individual 8-bit transfers, even without DMA.
  45. Please try building with no modifications. If...

    Please try building with no modifications. If that works, you can focus on your changes.
  46. You should try with your T4.0, since FreqCount...

    You should try with your T4.0, since FreqCount takes a gate interval in microseconds for T4.x. See the FreqCount library examples Serial_Output (T3) and Serial_Output_T4 in TeensyDuino.
  47. HID is part of the USB specification. There are...

    HID is part of the USB specification. There are people on this forum, Paul and others, who know a lot about USB and HID, so if you go that direction or CAN, you should be able to get help here. I...
  48. I did some googling about electronic drums to see...

    I did some googling about electronic drums to see how they work, and I still don't know much, but it looks like you have done a lot of good work on the project. If you haven't already put multiple...
  49. Yes, as far as I know it's okay to do that. I'm...

    Yes, as far as I know it's okay to do that. I'm not sure of the terminology with respect to read, but my understanding is the processor "translates" accesses to QSPI flash or RAM into the proper QSPI...
  50. Yes, the SPI library has transfer(),...

    Yes, the SPI library has transfer(), transfer16(), and transfer32() for T4.x. See the source code in the SPI library in TeensyDuino.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4