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

Search:

Type: Posts; User: SteveW

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    830

    Have pasted some snips from GPT code Im working...

    Have pasted some snips from GPT code Im working on, might help. Some of it inspired by manitou48 here. You can change the line #define GPT_CLOCK_SOURCE 3 to vary the source for the GPT timers. Note...
  2. I bought one of these as a module from eBay....

    I bought one of these as a module from eBay. Havenít played with it yet though. Could make the ADC side a bit more powerful, SPI interface should deal with the bandwidth. Allegedly it can do 30000...
  3. Glad the 31865 code was useful! Also that you...

    Glad the 31865 code was useful! Also that you have added a software spi version to the thread. Hope all the code here is useful for others. Using hardware SPI I found everything worked without delays...
  4. Totally understandable, really clear, and thanks...

    Totally understandable, really clear, and thanks so much for taking the time to write that excellent tutorial. Any asm instructions Iíve pasted in to date have been copying without full understanding...
  5. Might play! At what point can I change the bus...

    Might play! At what point can I change the bus speed with my code, first thing in setup?

    OK so I've run tests using the suggested assembler now. An issue I see with this basic assembler approach...
  6. Ok , that’s really useful, so I doubt it’s...

    Ok , that’s really useful, so I doubt it’s possible to start these timers any closer together then, consecutive asm statements being the best I can hope for. I guess bus speed controlling the timers...
  7. Frank , thanks! Thatís all very useful. The asm...

    Frank , thanks! Thatís all very useful. The asm isnít as nasty as I thought it might be. Thanks so much for the explanation re bus speed, I couldnít figure why things were so slow on a 600MHz...
  8. GPT1/2 interrupt latency and startup for both counters

    I've continued to play with using the GPT timers for frequency counting and am starting to get some working code together. I hope to publish it here as a mini-library when its more formed to help...
  9. Thanks for the thoughts this I’m still slightly...

    Thanks for the thoughts this I’m still slightly working to get my head round the reverse logic. It’s certainly a trap for the unwary. So bit 6..31 for the GPTx_SR registers are currently...
  10. I will look out for that convention in any...

    I will look out for that convention in any further flag registers code for this processor!

    Steve
  11. Please CANCEL my last comment, your code works...

    Please CANCEL my last comment, your code works beautifully now! I am an idiot, I just re read the GPT SR register info again, the rollover flag is essentially *active low* ie 0 after rollover. I...
  12. Thanks so much for the suggestions! Thought that...

    Thanks so much for the suggestions! Thought that was going to fix things but however I play with those lines I still get a consistent freeze at 07min:09. I've switched the code to fully zero the SR...
  13. Thanks so much. Iíve realised that the way...

    Thanks so much. Iíve realised that the way forwards here was to gain a better understanding of the counters and yesterday I downloaded the IMXRT1060 manual from nxp, read a lot since. I was impressed...
  14. Frequency counting using the Teensy 4.1 GPT1 and GPT2 timers

    Just wonder if the experts here could clarify some details for me regarding use of the Teensy 4.1 GPT1/2 timers for a frequency counter I’m making. I was inspired to play with the timers by the...
  15. That size of VFD now seems to retail for about...

    That size of VFD now seems to retail for about 100 ukp here, the ILI is by far the more cost effective option. Just meant was touch sharing the MOSI,MISO and CLK with the display, it’s now clear it...
  16. Looks good. Yea at about 5ukp for a TFT I could...

    Looks good. Yea at about 5ukp for a TFT I could accept the odd dud amongst the Chinese ones . I think your comment re the rejects is correct, particularly from some ebay vendors. Are you using the...
  17. Good news. Such is the nature of electronics :). ...

    Good news. Such is the nature of electronics :). I've checked my board a zillion times. Decided to just build another and see what gives. First supplier sent me a cracked ILI9341, waiting on a bunch...
  18. Thanks I will follow that. Iím waiting on another...

    Thanks I will follow that. Iím waiting on another touch screen to try here,

    Steve
  19. Replies
    0
    Views
    264

    Maximum USB 5V current drain

    I’m making a Teensy 4.1 board that utilises a Noritake CU20029-UW1J VFD. It’s a 5V part, worst case drain 410 mA, plus a Teensy and other small parts will take the drain to a little bit above the ...
  20. Replies
    4
    Views
    807

    Interested that you are concerned about Chinese...

    Interested that you are concerned about Chinese (eBay?) delivery times. Iíve just ordered 5x very low cost Chinese sourced ILI9341s (TFT, SPI) and fully expect them to be here in the UK in about a...
  21. Yes, using a T4.1 , sorry that wasnít clear, I...

    Yes, using a T4.1 , sorry that wasnít clear, I missed that you might not have enough memory. Using the buffer about half of the available memory is in use with a fairly simple program.

    Steve
  22. Thanks again for checking Mark! Yes a late at...

    Thanks again for checking Mark! Yes a late at night typo there sorry, ts CS is definitely connected to Teensy 8, not 2! Itís always possible pin 8 has a fault. I could just switch that one as you...
  23. Hi Mark, thanks so much for tinkering with my...

    Hi Mark, thanks so much for tinkering with my test code. Though I’ve beep tested the connections many times I again retested MOSI,SCK,MISO just now and they are connected fine, checking on the top...
  24. Replies
    6
    Views
    854

    You would first have to decide how bright you...

    You would first have to decide how bright you want the backlight as that uses much of the required current. Also how you are updating the display, constant updates are likely to affect this. The LED...
  25. Touchscreen problem Teensy 4.1, ILI9341t3n library and XPT2046 touchscreen

    Hi all, wonder if the experts here can help me get the ILI9341 touchscreen working. I bought a couple of chinese IL9341 boards from ebay, visually pretty identical to the part sold by PJRC in the US....
  26. I’m a beginner with the ILI9341 but found that...

    I’m a beginner with the ILI9341 but found that the great library from KurtE here was easy to use.

    https://github.com/KurtE/ILI9341_t3n

    Wonder if the t3n library version might work for you. My...
  27. Replies
    9
    Views
    1,293

    I played with one of those too. Very good for the...

    I played with one of those too. Very good for the incredibly low cost. A lot more accurate after I adjusted the trimmer using a 10MHz standard!

    Steve
  28. Replies
    9
    Views
    1,293

    I quite liked this article and have bought the...

    I quite liked this article and have bought the components for when I get round to making a Teensy version. Can be switched between count and period modes. The counting and timing is independent of...
  29. Interesting that the Adafruit library seems to be...

    Interesting that the Adafruit library seems to be fussy about which pins are used. As said I dumped the library in my code, itís almost as easy to just code it using SPI calls,

    Steve
  30. Replies
    20
    Views
    13,434

    Thanks Paul, the FlexCAN library looks as if will...

    Thanks Paul, the FlexCAN library looks as if will be useful!

    Steve
  31. Replies
    20
    Views
    13,434

    I’m about to start out with CAN a on the Teensy...

    I’m about to start out with CAN a on the Teensy 4.1. I’ve got both MCP2515 boards and some 3.3v transceiver chips too. I started out interested in using the 2515 as I found a fair amount of code out...
  32. OK so inspired by both Alan's comment and the...

    OK so inspired by both Alan's comment and the not-fun nature of debugging code using the Adafruit MAX31865 library I decided to switch my design to hardware SPI and to dump the library, reducing code...
  33. Thanks for the input Alan. Maybe I should have...

    Thanks for the input Alan. Maybe I should have gone for hardware SPI, it is a prototype after all... I thought that the Adafruit style breakout could be fed with 3.3 to 5v optional at Vin. I checked...
  34. MAX31865 and Adafruit RTD library on Teensy 4.1 problem

    Hi all, new here, I'm very much an amateur though have some past PIC C programming experience, I wanted to try out the Teensy as it seems ideal for my car project. I'm replacing the 80s retro looking...
Results 1 to 34 of 34