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 that 3 is for...
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 sps.
...
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 but I can see it’s...
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 really. It’s moved...
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 is that we read the...
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 may be the issue. I...
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 processor. I’ll run the...
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 those doing the same...
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 unimplemented. I wrongly wrote...
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 had expected the...
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 register to no avail...
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 by its clarity,...
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 recent Pendulum Clock...
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 is and that is good...
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 t3n version of the...
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 from China now, at...
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 500mA USB 2.0 limit....
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 week. But yes the...
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
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 say. I suppose the way...
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 side of both boards to...
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 input on the board...
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. I checked that the...
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 screen flickered a...