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

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    108
    Views
    1,245

    @mjs513, @defragster... I extracted my DMA...

    @mjs513, @defragster... I extracted my DMA processing out of my example sketch and into some external files.

    I think the example app is still working OK... let me know what you think.

    Kurt
  2. Replies
    108
    Views
    1,245

    FYI - I changed over to SDFat Beta... /* ...

    FYI - I changed over to SDFat Beta...


    /*
    This example shows how to use the IntervalTimer library and the ADC library in the Teensy 4.

    It uses the SD library to try to write the data...
  3. Replies
    108
    Views
    1,245

    Yep - I have a hacked up version now, that is...

    Yep - I have a hacked up version now, that is reasonably KISS... It compiles, but I have not tried it yet:

    /*
    This example shows how to use the IntervalTimer library and the ADC library in...
  4. Replies
    34
    Views
    817

    @paulStoffregen and @mjs513 - Yes the Wire change...

    @paulStoffregen and @mjs513 - Yes the Wire change fixed an issue where for BN0055 we cleared the fifos if we entered a new start condition and the fifo had data in it...

    This busted some...
  5. Replies
    322
    Views
    19,203

    Mine arrived to our PMB in town today. So far it...

    Mine arrived to our PMB in town today. So far it looks like I should wait to do anything with it, until this is resolved.
  6. Replies
    108
    Views
    1,245

    @defragster - yep it would make sense to add. I...

    @defragster - yep it would make sense to add. I mainly put in the else stuff including the is Complete as a quick and dirty test to make sure my settings were not screwed up, such that the...
  7. Replies
    108
    Views
    1,245

    I have started playing with an IntervalTimer...

    I have started playing with an IntervalTimer based sketch, that reads in 2 different analog pins for both ADCs. Currently I just stuff them into one array inside the interval timer interrupt...
  8. Replies
    108
    Views
    1,245

    @mjs513 will cleanup... Also may try an...

    @mjs513 will cleanup...

    Also may try an intervalTimer example and see if it works.

    Probably won’t be the same as the main ADC library one, but simpler...
  9. Replies
    4
    Views
    64

    Sorry not at my desk right now, But as...

    Sorry not at my desk right now,

    But as mentioned, there may be solutions, but other than @PaulStoffregen we are all just users like you.

    There are many of us who like to help. Suggestion, you...
  10. You might try: tft.fillTriangle...

    You might try: tft.fillTriangle...
  11. Replies
    10
    Views
    118

    Sorry, hopefully someone else up here can give...

    Sorry, hopefully someone else up here can give you more definitive stuff...

    But I personally have had better luck with +5v to the display an in one case I actually retrofitted their display to use...
  12. Replies
    10
    Views
    118

    Good luck... When it arrives and or if you have...

    Good luck... When it arrives and or if you have additional questions, it might help to put a link in to the exact one you ordered...

    More details about some other experiences with these dsiplays...
  13. Replies
    108
    Views
    1,245

    The question is, do I extract the simple class I...

    The question is, do I extract the simple class I put into the sketch and make it a reasonable library class object. If so should probably clean up, probably remove direct access to variables, but...
  14. Replies
    1
    Views
    49

    It has been a long time since I played in this...

    It has been a long time since I played in this library.

    But the first thing I would do is to turn on DEBUG stuff. Go into USBHost_tt36.h and uncomment the line:

    //#define USBHOST_PRINT_DEBUG
    ...
  15. Or with a Teensy with more memory like T3.6/3.5...

    Or with a Teensy with more memory like T3.6/3.5 or T4, you can use the ILI9341_t3n library and turn on using frame buffer.

    With this you can write the code pretty sloppy and for example each time...
  16. Replies
    108
    Views
    1,245

    @manitou - Thanks for the links. I cloned your...

    @manitou - Thanks for the links. I cloned your Teensy4 test project, as to make it easy to find...

    I saw that you had a few of these sketches.. Will look some more.

    What I am/was curious...
  17. Replies
    108
    Views
    1,245

    @mjs513 - Make sure you picked up the bug fix to...

    @mjs513 - Make sure you picked up the bug fix to enableDMA in adcl_t4.cpp

    void ADCL::enableDMA(int8_t adc_num)
    {
    if (adc_num == 1)
    adc1->enableDMA();
    else
    adc0->enableDMA();
    }
  18. Replies
    10
    Views
    118

    Hard to say with just the datasheet, as there are...

    Hard to say with just the datasheet, as there are lots of configurations of that board, so a lot depends on what options/version did you buy?

    Like: What type of Interface did you choose? And in...
  19. Replies
    108
    Views
    1,245

    @mjs513 - I just updated both sketches ;) Now...

    @mjs513 - I just updated both sketches ;)
    Now have some of the DMA stuff in a class as part of the sketch, where I then created two instances of it, Where I setup two dma operations, one on ADC1...
  20. Replies
    108
    Views
    1,245

    Quick update: I updated the above sketch not to...

    Quick update:
    I updated the above sketch not to use the DestinationCircular and interrupt on half way to instead be a setup of two different buffers, each pointed to by a dmaSetting object and then...
  21. Replies
    108
    Views
    1,245

    @mjs513... Yep coming along. I am doing a...

    @mjs513...

    Yep coming along.

    I am doing a little playing with DMA. So far not updating any of the ADCL class. But here is the start of an example that is continuously doing DMA read...
  22. Replies
    108
    Views
    1,245

    @mjs513 - Hopefully next up figure out what we...

    @mjs513 - Hopefully next up figure out what we should do with the DMA cod with ADC..

    Currently there is code in ADC library called class RingBufferDMA which I am sure started from his RingBuffer...
  23. Replies
    30
    Views
    1,054

    Ok I edited it like you mentioned... You...

    Ok I edited it like you mentioned...

    You might want to take a look, to make sure I did not screw up something.
    https://github.com/PaulStoffregen/cores/pull/406
  24. Replies
    30
    Views
    1,054

    Will do. I for sure would not delete the old...

    Will do.

    I for sure would not delete the old defines. Have two choices, both ways are in imxrt.h.

    That is could redefine all them as reflecting the new structure: like with I2C...



    }...
  25. Replies
    30
    Views
    1,054

    @Paul was wondering about possible additions to...

    @Paul was wondering about possible additions to IMXRT.h. That I have run into as part of the ADC port to T4 Things like:

    ADC structure definition:
    Which I currently have in the ADCL_t4 library:...
  26. Replies
    30
    Views
    1,054

    @PaulStoffregen... :D Sounds great. There were...

    @PaulStoffregen... :D Sounds great.

    There were a few other PR's out in special thread, like fixing some issues for Wire. @mjs513 has a nice version of the ST7735_t3 code base...

    Wondering...
  27. Replies
    10
    Views
    143

    Again others can answer better than I can... ...

    Again others can answer better than I can...

    I do very little Analog stuff, and rarely do I need to write stuff to SDCards...

    Usually just enough to help other fix problems or testing out new...
  28. Replies
    108
    Views
    1,245

    @mjs513... I hacked up my test program on...

    @mjs513...

    I hacked up my test program on T3.5 to generate the sine wave where I use one pot to change the amplitude...
    Again not the cleanest setup, but:

    #include <Audio.h>
    #define...
  29. Replies
    10
    Views
    143

    You can use the ADC library on T3.x (and LC), and...

    You can use the ADC library on T3.x (and LC), and use DMA operations to collect.

    As how fast you can write out to SD Cards... There are several threads and other places on web to find...
  30. Replies
    8
    Views
    120

    Assuming you are using the Teensy version of the...

    Assuming you are using the Teensy version of the Wire library.
    Wire.h and Wire.cpp I believe are only used for AVR boards like Teensy 2.

    WireKinetis.h/.cpp - Are used for Teeny 3.x and LC...
  31. Replies
    108
    Views
    1,245

    @defragster - Will have to remember that later. ...

    @defragster - Will have to remember that later. Luckily not building too much with it here...

    @mjs513 - Pushed up a few more changes/fixes - Playing with the continuous update example. Having...
  32. Replies
    108
    Views
    1,245

    I know there are probably easier ways and maybe I...

    I know there are probably easier ways and maybe I will play around some more with it, but as for test sketch, can always use Audio library. Example one I just setup to run on T3.5 (or 6)...

    ...
  33. In this case they are uint8_t... As if you...

    In this case they are uint8_t...

    As if you look at the start of the T3.2 manual 47.3 it says: Only byte accesses are supported.
  34. Simple question is why not just uses the values...

    Simple question is why not just uses the values in kinetis.h ...

    But Lets look at S1...
    #define UART2_S1 (KINETISK_UART2.S1) // UART Status Register 1

    It is based off of the address of...
  35. Replies
    108
    Views
    1,245

    @mjs513 - fixed (I hope) the problems I mentioned...

    @mjs513 - fixed (I hope) the problems I mentioned in the last message, like adc->analogRead(pin);
    Will now check to see if valid pin on any ADC if so it will use the first valid one (i.e. if in my...
  36. Replies
    108
    Views
    1,245

    @mjs513 - Hopefully I did not screw up...

    @mjs513 - Hopefully I did not screw up everything, but I merged in the DMA branch...

    Still not totally functional yet, but it also has a lot changes for housecleaning.

    That is I moved most of...
  37. Replies
    108
    Views
    1,245

    @mjs513 - I will merge in some of my stuff soon,...

    @mjs513 - I will merge in some of my stuff soon, to master. It has some of the stuff for adc->adc0 (or 1) but so far I have not added in all of the error stuff.

    Made some progress on the DMA...
  38. Replies
    108
    Views
    1,245

    @mjs513 - Hope you are doing well. As for...

    @mjs513 - Hope you are doing well.

    As for new branch/master/DMA.. hard to say, I started new branch as there are at least the two of us, and did not want to break everything yet.

    I am trying...
  39. Replies
    108
    Views
    1,245

    @mjs513 - I see that you added some stuff... ...

    @mjs513 - I see that you added some stuff...

    Note: I just pushed up a new branch DMA_SUPPORT -
    Where I am trying get some of the examples to be able to build and then hopefully work like the...
  40. Replies
    108
    Views
    1,245

    @mjs513 - Still totally distracted :D Hopefully...

    @mjs513 - Still totally distracted :D Hopefully later today I will maybe have the opportunity to concentrate a little.

    I probably should start off hacking something up, but I find myself wanting...
  41. From what I have seen, I think the USB Serial is...

    From what I have seen, I think the USB Serial is working well, and it makes sense to start including some of the non-serial USB types.
  42. Again hard to say what all you need or don't...

    Again hard to say what all you need or don't need. Or what your plans are.

    I personally just use the Arduino setup, which is fine for the things I wish to do.

    Understanding the board. I...
  43. Replies
    108
    Views
    1,245

    @mjs513 - Not a problem, I have been distracted...

    @mjs513 - Not a problem, I have been distracted with other stuff today... Did not get much more done yet. Right now busy with three dog circus
  44. Replies
    108
    Views
    1,245

    @mjs513 - will take a look.. Here is a...

    @mjs513 - will take a look..

    Here is a sublimetext mucked with table for XBar1...

    Wonder this would be valid/reasonable addition for imxrt.h? And if so do I need to do XBAR2...

    // XBAR1...
  45. Replies
    108
    Views
    1,245

    @mjs513, @PaulStoffregen @manitou, ... ...

    @mjs513, @PaulStoffregen @manitou, ...

    Thought I would see how hard it is to do ADC using DMA at some specific sampling rate, Example for trying to guess if an power is running to a well pump,...
  46. Replies
    108
    Views
    1,245

    Hi @mjs513 - Yep more coffee (Feel free to PR...

    Hi @mjs513 - Yep more coffee (Feel free to PR it)! You probably know more about all of this than I do!

    @jonr - DMA does not look too hard to add here... Again @manitou has example app, which I...
  47. Replies
    108
    Views
    1,245

    @mjs513 @manitou... Yep I did clone that project...

    @mjs513 @manitou... Yep I did clone that project down to my disk as well and I am curious about how one sets up to do DMA from the ADC at a specific input rate.

    That is with my always never...
  48. Replies
    108
    Views
    1,245

    @mjs513 - Me too, but when I did not find it in...

    @mjs513 - Me too, but when I did not find it in RM, decided to look.

    Just pushed up a quick and dirty ReadMe.md file which is a copy of pedvide's Readme with a warning at top that this is a WIP...
  49. Replies
    3
    Views
    101

    Others can maybe give you more exact answers to...

    Others can maybe give you more exact answers to this...

    But void* just means it is a pointer to something... So often times with functions like this, I will then cast it to something like...
  50. Replies
    108
    Views
    1,245

    I believe from the IMXRT1060CEC.. pdf Page 62...

    I believe from the IMXRT1060CEC.. pdf Page 62 (at least in the one I have)

    ADC Asynchronous
    Clock Source


    So 10 or 20 mhz
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4