Hi Pieter
I tried to insert the signed division implementation into the C++ example (for unsigned division):
Implementation of Signed Division by a Multiple of Two
constexpr unsigned int K...
Type: Posts; User: xenington
Hi Pieter
I tried to insert the signed division implementation into the C++ example (for unsigned division):
Implementation of Signed Division by a Multiple of Two
constexpr unsigned int K...
@Nominal Animal
Brilliant answer, thank you so much for your time. My understanding is a lot clearer now. Also, I swapped your implementation for the one I was using and it works much better (I...
Hello everyone
I am using an exponential moving average to smooth the readings from an LSM303DLHC compass module and it seems to work. However, I do not understand how it works. Here is the code...
I tried it on my Windows 7 partition and it worked perfectly - even opening, editing and saving directly to the sd card.
So, having already gone through an epic battle to get the T4.0 MTP to work...
Thank you. Found them.
So, the 1003 at line 7 in my serial output means "MTP_OPERATION_CLOSE_SESSION" and then 1002 at line 8 is "MTP_OPERATION_OPEN_SESSION", i.e. an attempt to re-open the...
Thank you. That gives me somewhere to start investigating.
Here is some more serial output when mtp-test is run:
MTP test
1002 16 1 0: 1 0 0
1001 12 1 1: 1 0 0
1004 12 1 2: 1 0 0
1007 24 1...
Hi everyone
I am trying to get this to work on T4.1, Ubuntu 18.04, IDE 1.8.12, td 1.52 and need some help please.
I have the latest MTP-t4, USB2 and sdFat libraries and have modified Storage.h,...
Thank you. If you like, I can go through the datasheet and double-check for you.
Hi KurtE
As far as you know, is this pinout up to date and correct now? I found a Kicad schematic on Github which has many different pin assignments. I guess the schematic is old, but would like...
Yes, it does. Very interesting - thank you. :)
Yes, I understand, the query was intended to be general. Thank you for trying to help anyway. Incidentally, I now think that the problem might be caused by the screen I am using (RA8875), but that...
Ignore that last post. I haven't had my morning coffee yet. :o
Compiling the program using the 'smallest' option leaves nearly 30KB of ITCM free:
ITCM: 64kB, DTCM: 448kB, OCRAM: 0(+512)kB...
Sorry for resurrecting this thread, but I have suddenly found it very interesting.
My program is randomly dropping sensor readings and copying over variables with strange numbers. I think it might...
@HallMark
Yes, I have thanks. the TeensyTimerTools clashed with the flexPWM timer I was using to measure input frequencies. I found a way round it though with FreqMeasureMulti_X:
...
Hello all
Attached is the final version of FreqMeasureMulti_X. The version attached to message #12 above is now redundant.
This new version measures the period of 4 digital signals at a...
Thank you for the reply and link.
Is it possible to have multiple interrupt requests, e.g. IRQ_PIT[1], IRQ_PIT[2], etc, which can have different priorities?
Hi
I was thinking about PIT timers and attaching and prioritising IRQ's (as you do).
For example:
attachInterruptVector(IRQ_PIT, example_ISR);
NVIC_ENABLE_IRQ(IRQ_PIT); ...
Oh, and it only works on pins 2, 4, 6 and 8.
Thanks
Hi KurtE (and everyone else)
Unfortunately, I was right about FreqMeasureMulti being a cycle counter and not a cycle measurer.
So, I had a go at writing my own! It doesn't have the broad...
Hi KurtE
Thanks for the info. It was very useful in getting started in understanding how this works.
One thing I have discovered is that it appears (I may be wrong) that freqmeasuremulti for T4...
@KurtE
Hi Kurt
Can you please explain how FreqMeasureMulti for the Teensy 4 actually works? Regarding rising edges only.
Does it measure the time between 2 edges? Take an average of several...
Hello, hopefully just a quick one :)
My understanding of interrupts is that most have their flags reset when the interrupt is started. Am I correct in thinking that this means the interrupt won't...
If I use the output of pin10, this is printed:
59.97(2:2490368:16.60 2:2490368:16.60 2:2555904:17.04 2:2490368:16.60 )
60.03(2:2490368:16.60 2:2490368:16.60 2:2490368:16.60 2:2490368:16.60 )...
I tried them all: TCK, GPT and TMR.
The example sketch you gave above in post #3 prints the following:
41981.53(2:4294967295:0.00 2:4294967295:0.00 2:0:0.00 2:4294967295:0.00 )...
@ KurtE
Excellent work. The library works very well. I can take readings from 4 sensors producing square wave frequencies around 50KHz in less than 1 microsecond! Using pulseIn() or digitalRead()...
Thank you, thank you, thank you, thank you, thank you.
This has been doing my nut in for ages. I will do some testing tomorrow and report back.
You didn't have to install Linux, I don't mind checking for such things (there's probably only me that uses it anyway). It is nice to know you care though.
Hi Luni
The latest version (downloaded yesterday) will not compile for me without the files src/Teensy/GPT/GPTchannel.h and src/Teensy/TMR/TMRchannel.h being renamed GPTChannel.h and TMRChannel.h...
The TXB0108 level shifter was producing loads of interference so I replaced it with resistor voltage dividers instead (10k + 15k).
OK. So I have had look into porting FreqMeasureMulti for the t4 and it is all very confusing. Can someone give me some pointers please?
I am not sure which timer to use: flexpwm or GPT? Both can...
OK. So I have had look into porting FreqMeasureMulti for the t4 and it is all very confusing. Can someone give me some pointers please?
I am not sure which timer to use: flexpwm or GPT? Both can...
OK. So I have had look into making FreqMeasureMulti work for the t4 and it is all very confusing. Can someone give me some pointers please?
I am not sure which timer to use: flexpwm or GPT? Both...
Genius. Thanks Kurt
It's alive!
The problem turned out to be embarrasingly simple - the cable I was using was too long (about 1m). Swapped to a 50cm cable and everything burst into life. I feel pretty stupid. Or...
Sorry to resurect this thread, but this information may be useful to the people in the UK.
uk.rs.online have free postage and sells these FPC connectors:
...
OK, getting mighty peeved now. Another day wasted trying to get this to work.
I have installed everything: libmtp, mtp-tools, gvfs-mtp, go-mtp, jmtpfs, gmtp and python-pymtp. I fiddled some more...
>KurtE Thanks I'll give it a go. I have tried various mtp software on the ubuntu side which makes me think my problem might be old teensy libs.
When updating ide and teensyduino, are the included...
Yes the sdfat-beta examples all work. I have to keep renaming sdfat-beta.h > sdfat.h to do it though.
I don't mind the empty tab in mtp-test.
Sdio via the pads underneath. # define use_sdio is set to 1.
Will investigate serial1 tomorrow.
Teensy 4, ide 1.8.10, teensyduino 1.49. The pc is running ubuntu 18.04. Unfortunately, Serial doesn't work in mtp experimental mode. Is there another way to get the logs?
In an earlier post you...
Been trying to get this working on Linux all day. Getting fed up now.
By fiddling with the udev rules, nautilus now displays 'Teensy MTP Disk' but is unable to access it ("no MTP devices found"). ...
Is anyone working on this?
How difficult might it be? I may have a go if not too bad....
Got a 'file not found' compile error which was corrected by changing /src/Teensy/TMR/TMR.h : line 3
#include "TmrChannel.h"
to
#include "TMRchannel.h"
I still can't get MTP to work on Linux with the t4.
The t3.6 worked using yoongmh's library, wolfmanjm's edits and SdFat, but then I upgraded to IDE 1.8.10 and Teensyduino 1.49 and it all went...
Making some progress.
All compilation errors disappear after making the following changes:
MTP_storage.cpp....line137....change "File" to "FsFile"
MTP_storage.cpp....line180....change...
Many thanks to wolfmanjm for getting this to work on Linux. I had all but given up!
Also, thank you to WMXZ for trying it with Teensy 4. I can't get it to work yet, but hopefully will soon.
...
Many, many thanks for your help.
It works! I would never have figured it out for myself. Here is what I came up with:
byte lengthName = strlen(surveyName);
byte widthChar[lengthName];...
Hi
Thank you for the reply. I have tried some things based on your suggestion, but can't get it to work. Could you explain the following a bit more please?
MagUbuntuCond_36_array[c - '...
Hi All,
I am trying to determine the width in screen pixels of a character array. The character array can be any length up to 25 characters and is input by the user.
The font data table...
Thank you for confirming that.
I really appreciate the wisdom and time that you guys give.