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

Search:

Type: Posts; User: joepasquariello

Page 1 of 6 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    131

    Looking at the QuadEncoder library, I don't see...

    Looking at the QuadEncoder library, I don't see fields/functions to set up a user function to be called by an interrupt. There are 4 functions named isrEnc1/2/3/4 which are the actual ISRs that get...
  2. Replies
    4
    Views
    131

    I haven't used that feature, but I'll try to help...

    I haven't used that feature, but I'll try to help you get started. Take a look at the source code for the library. There are just two files (QuadEncoder.h/cpp). In the header file, you will see that...
  3. That could work. It's really a question of what...

    That could work. It's really a question of what the OP is trying to do. One thing is clear, there are many options!
  4. Replies
    2
    Views
    185

    Wow, good catch. I see that the date on the rev 3...

    Wow, good catch. I see that the date on the rev 3 manual is 07/21, but it was only released on Nov 11. Appendix B is titled "Substantive Changes for this Revision", but it doesn't provide details...
  5. What I was suggesting is 7 point-to-point serial...

    What I was suggesting is 7 point-to-point serial links, as opposed to a bus. The host T4.1 would dedicate a separate UART to each of the other micros. That could be wired up on a breadboard with no...
  6. I think point-to-point serial links would be so...

    I think point-to-point serial links would be so much easier. You can prototype and develop software with direct connections from Teensy-to-Teensy (no other chips). The host T4.1 can easily support...
  7. You should only have to add the lines shown below...

    You should only have to add the lines shown below to your INO file. You don't need to modify FlashTXX.cpp/h. It contains just the functions required to read/write/erase flash in the process of...
  8. I'm only guessing, Frank, but my guess is what...

    I'm only guessing, Frank, but my guess is what you're seeing is a timing and/or buffering issue. You could try increasing your receive buffer sizes via addMemoryForRead() and addMemoryForWrite(), so...
  9. You could also take a look at...

    You could also take a look at cores\Teensy4\arm_math.h, and search for SMMULR. I've never used these macros, but they appear to do what you want.
  10. Yes, you can use the method described in the...

    Yes, you can use the method described in the thread linked below. Instead of loading firmware via the Teensy bootloader, you can add the capability within your own application to load new firmware...
  11. Thanks very much. Sounds like you're getting a...

    Thanks very much. Sounds like you're getting a lot done.
  12. See 106x manual chapter 11, page ~387 for info on...

    See 106x manual chapter 11, page ~387 for info on registers containing SPEED, DSE, and SRE fields. I have no idea how to use these or whether they can help with what you are doing.
  13. Glad it's working for you. Your hex file exposed...

    Glad it's working for you. Your hex file exposed a bug that got through previous testing, so it was a good thing.
  14. Yes, as long as FLASH_ID is included somewhere in...

    Yes, as long as FLASH_ID is included somewhere in your program, it will work.



    Yes, that's true. Think of FlasherX as just a demonstration of the capability to send new firmware to a Teensy,...
  15. If you are running FlasherX on a T3.6, the...

    If you are running FlasherX on a T3.6, the application does a check to make sure that your hex file was built for the same target. If you send a hex file built for T4.0 to a T3.6, you could brick...
  16. Replies
    15
    Views
    1,052

    I agree thatís a fine work-around, but the...

    I agree thatís a fine work-around, but the missing init of count_prev is a bug.
  17. Replies
    15
    Views
    1,052

    The reason the first reading is wrong is that...

    The reason the first reading is wrong is that static uint32_t count_prev is not initialized. In file util\FreqCountTimers.h, add the line to init count_prev = 0, as shown below. This yields good...
  18. FlasherXv2 -- bug fix in FlashTXX.cpp

    Your hex file had something I hadn't seen before, and it exposed a bug in the buffering logic in flash_write_block(). The hex file contained a record with only 4 bytes, followed by a record with a...
  19. Thank you for the info. The record that begins...

    Thank you for the info. The record that begins with :04 contains 4 bytes for address 3820. The next record begins with :10 and contains 16 bytes for address 3828. This means there is no data for the...
  20. No, those are necessary records. They specify the...

    No, those are necessary records. They specify the "base" address for records that follow. Each of those records specifies the top 16 bits of a 32-bit address. For example, the first one specifies...
  21. Sounds like you're going to have to dig into the...

    Sounds like you're going to have to dig into the details of the T4.1 PWM signals. The lines below are from cores\teensy4\pwm.c, so you can see that in your first 2 sets of signals, most are from...
  22. Without looking carefully at the pins, it seems...

    Without looking carefully at the pins, it seems unlikely they will match up on the same PWM module. You should be able to get the same clock frequency, regardless of PWM source, and the same period,...
  23. . I'm still trying to understand what you want...

    .

    I'm still trying to understand what you want to "synchronize", and exactly what you mean by that. Do you mean that within each set of Red/Green/Blue, you need the start of each PWM period to be...
  24. Replies
    4
    Views
    249

    Others may step with in corrections to this...

    Others may step with in corrections to this reply, but I'll tell you how I think it all works. Updates are an area where Teensy differs from Arduino. They are not written directly from the Arduino...
  25. Replies
    4
    Views
    249

    There is a lot of work going on to add this...

    There is a lot of work going on to add this capability for Teensy. I don't think it exists yet.

    https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC/page20
  26. If you tell us what youíre trying to do, what...

    If you tell us what youíre trying to do, what signals you want to produce on which pins, and what exactly you mean by synchronized, youíll probably get some help.
  27. I'm not sure I understand exactly what you want...

    I'm not sure I understand exactly what you want to do, but probably the simplest way to build/send from a C# program would be to (a) learn how to build/send from the command line, then (b) write a...
  28. Very clever design!

    Very clever design!
  29. Replies
    58
    Views
    5,035

    @mjs513, thanks, and I see that Paul just...

    @mjs513, thanks, and I see that Paul just committed the changes, including the missing end() function.

    @RichardL, you can get the update here.

    https://github.com/PaulStoffregen/FreqCount
  30. Replies
    58
    Views
    5,035

    I see in the library source code that end() is...

    I see in the library source code that end() is not implemented for T4.x, but I'm sure it could be, because there is a timer_shutdown() function for the IntervalTimer. Until that happens, I think this...
  31. I have used file FreqMeasureMultiIMXRT.CPP as a...

    I have used file FreqMeasureMultiIMXRT.CPP as a reference. You will find it in library FreqMeasureMulti, which is included with TeensyDuino. Each of the 4 modules within each FlexPWM has 3 outputs...
  32. A and B pins of the same FlexPWM module...

    A and B pins of the same FlexPWM module definitely can be sync'd. I'm not sure whether pins from 2 different modules can be sync'd. Are the pins already defined?
  33. This is not only a software forum, and people are...

    This is not only a software forum, and people are telling you they are interested. I don't understand why you keep saying collaboration is not possible.
  34. Very impressive. Nice work.

    Very impressive. Nice work.
  35. I am interested, but I did not see this thread...

    I am interested, but I did not see this thread until today. Can you leave it up for a couple of weeks and give people a chance to look at it?
  36. Replies
    10
    Views
    534

    Great. Note that Teensy MM is by Sparkfun, not...

    Great. Note that Teensy MM is by Sparkfun, not Adafruit. There are threads on this forum about designing around TMM. The mapping of Micromod pin numbers onto equivalent T41 pin numbers is a bit...
  37. Replies
    10
    Views
    534

    Do you need Ethernet? If not, perhaps you could...

    Do you need Ethernet? If not, perhaps you could use Teensy MicroMod. The height of the Adafruit ATP board + TeensyMM seems to be less than 6 mm, and you could place the USB and SD connectors where...
  38. Agree. Does DDS stand for Direct Digital...

    Agree. Does DDS stand for Direct Digital Synthesizer? You can try generating your waveforms without interrupts in a loop that uses delayNanoseconds() or reads the ARM cycle counter on each pass and...
  39. Replies
    58
    Views
    5,035

    Just a note that I did my testing without the...

    Just a note that I did my testing without the addition of "count = 0" in read(). As long as read() is not called without first checking available(), there is no issue. However, if read() is called...
  40. Interesting topic. I checked the ADC examples in...

    Interesting topic. I checked the ADC examples in TeensyDuino, and there is one called adc_test that exercises analog inputs with pull-up, pull-down, range, and other options. The setup() function is...
  41. Replies
    58
    Views
    5,035

    Turns out my function generator only goes up to...

    Turns out my function generator only goes up to 3.1 MHz. Everything looks good, though. Tested from 1 Hz to 3.1 MHz.
  42. Replies
    58
    Views
    5,035

    I'll do some testing with a function generator...

    I'll do some testing with a function generator and report back, perhaps not until tomorrow.
  43. Replies
    58
    Views
    5,035

    I still don't see it, and I see no difference in...

    I still don't see it, and I see no difference in results with/without count = 0 in read(). That's good, because setting count = 0 in read() should have no effect on the ISR.
  44. Replies
    58
    Views
    5,035

    I don't think you should set count = 0 in read(),...

    I don't think you should set count = 0 in read(), or at least there is no need to do so.
  45. Replies
    58
    Views
    5,035

    I put in the changes shown below, and it seems to...

    I put in the changes shown below, and it seems to work correctly, i.e. I do get 50000000. High frequencies other than 50MHz are not exact because they are close to the maximum for PWM. Are you...
  46. Replies
    58
    Views
    5,035

    Yes, that's the issue. The delta should be...

    Yes, that's the issue. The delta should be computed in the callback. Let's say counter starts at 0, gate time is 100 ms, and read() is called every 200 ms. When read() is called, timer_callback()...
  47. Replies
    58
    Views
    5,035

    As Paul said, delta = count - prev and prev =...

    As Paul said, delta = count - prev and prev = count should be in the interrupt callback. The delta is computed in read(), so if more than one interrupt occurs between reads, the reported frequency...
  48. Replies
    58
    Views
    5,035

    @RichardL, you're right that this is a problem...

    @RichardL, you're right that this is a problem with FreqCount. It's actually a pretty complex library because there are abstractions for all of the different platforms, from AVR to T4.x, which are...
  49. He just means sprinkling Serial.printf()...

    He just means sprinkling Serial.printf() statements in your code so that you can check values or whatever you want to check. "Serial" is the USB serial port, and the text printed goes to the Arduino...
  50. You know you have the code, right? It's in your...

    You know you have the code, right? It's in your TeensyDuino folder (Arduino\hardware\teensy\avr\cores\teensy3\analog.c). The ADC has 1 configuration bit to enable/disable hardware averaging, and 2...
Results 1 to 50 of 262
Page 1 of 6 1 2 3 4