That won't work since it will mess up the interrupt handling. Anyway, I'd simply define a relay function which, depending on the current mode, increments one of two variables. Limiting the values to...
Type: Posts; User: luni
That won't work since it will mess up the interrupt handling. Anyway, I'd simply define a relay function which, depending on the current mode, increments one of two variables. Limiting the values to...
Thanks a lot, updated the repository accordingly.
BTW:
Doesn't work without DSB (or other syncing code) for short ISRs because the ISR will be reentered (interrupt flag not yet set after...
That's great. I was afraid that the std::function interface is quite expensive which it obviously isn't :-)
This is weird. The TMR has a combined IRQ for all 4 channels, therefore it needs to...
You need to take into account that you can utilize the time needed for syncing the interrupt flag. Here an example using the code from LAtimes and replacing the callback by this:
void...
Sorry for the delay, I finally found some time trying your code. I can not reproduce the problem. It generates nice 10ms calls here. Do you still have this problem?
Instead of calling your sequencer from loop I'd use an interval timer to generate the calls. You can then simply change the timer period when the encoder value changes. IIRC you are using the...
As Kurt mentioned, you can use the TeensyTimerTool if you need to access more timers with a high level interface. For the T4 you can use it with
2x GPT 32bit
16x TMR 16bit
4x PIT 32bit
20x...
Nice measurement. Fits well with my experiences. A few remarks:
I might be wrong, but, I think that the "150MHz" timer clock speed is not fixed but actually F_CPU / 4.
You do not need to...
Sparkfun now has a MicroMod version of the Pico: https://www.sparkfun.com/products/17720. Looks like the MicroMod form factor is getting traction. Looking forward to the first MM T4 :-) (I already...
Per default the TimerTool runs the GPT and PIT timers at 24MHz. You can easily switch them to 150MHz in the config file. Configuration is described here...
Weird. The library code seems to be quite elaborated. Would be surprised if it has such bugs in it. Maybe you changed something unintentionally while porting stuff?
Yes, but does it print anything later while you are playing with the commands and getting the error? If so, the library might mess up some intervaltimer settings.
The "dsb" is only effective for very short ISRs. The one used by the lib is probably long enough. (But this should be fixed anyway I'd say)
Did you try to look if the library calls the functions...
It wants to include some T4-Powerbutton.h? Not included in the zip...
Wild guess: Can it be that you installed the FNET library to your sketchbook/library folder as well?
I just tried what you described above. Compiles without a single warning here. (TD 1.54, Arduino 1.8.12, T4.1)
....
IB [CC] cipher_wrap.c
LIB [CC] ctr_drbg.c
LIB [CC] ccm.c
LIB [CC]...
I can have a look. Which board are you compiling for?
@weedog: Here here some dotNet examples: https://github.com/TeensyUser/doc/wiki/Serial I tested communication with dotNet up to some 15MByte / sec (T4.0). There also is a corresponding forum thread...
32kHz interrupt frequency is not really a problem for a 600MHz processor.
Most of the timers have a possibility to set/toggle a pin on timer overflow. I don't know if the RTC timer is also able to...
Did a quick check, setting SNVS_HPCR_PI_FREQ to 0 calls the ISR every 1/32'768 s.
23721
Here the relevant section of the manual:
23722
The RTC can generate periodic interrupts. Below an example which toggles the LED every second. You can also set it up for other frequencies derived from the 32'768Hz clock (see code below). I don't...
You can have a look at this library https://github.com/luni64/TeensyTimerTool which provides a high level interface to (some of) the Teensy 3.x and 4.x timers. Documentation can be found here:...
You can not access non static member variables from a static member function. This is quite obvious because a static member function like your Blink() "belongs" to the class not to a specific object....
No, there are only two timer channels on FTM1/2 :-(
However, if you don't need the controllers at the same time it should work. The controllers are supposed to release the timers after the...
The published version of TeensySharp is quite old and doesn't detect all USB Types. There is a much newer version in the development branch which should work with FlightSim, but it still has some...
Looks like you are in the wrong thread? This is TeensyTimerTool, not TeensyStep :-)
Anyway, on a T3.2 FTM1 only has 2 channels. A controller needs one PIT and two FTMs so, you can only use one...
Strange, this is the most simple application and should work of course. I'm currently not at home and don't have a T4 with me for testing I can have a closer look on Friday. Does it work with other...
Thanks, copied your post into the "Connectivity" section of the user WIKI (https://github.com/TeensyUser/doc/wiki/FLEXIO) Feel free to edit and add other stuff to the wiki as you like (the text...
This is a very nice writeup. Mind if I copy it to the user WIKI?
Yes, was quite some fun and turns out to be quite useful. I bought the heater cartridges and the NTC from Amazon. The rest was just stuff lying around.
Thanks, the small size was a design goal...
I'm quite used to soldering small SMD parts on prototype boards but those QFN chips like the Teensy bootloaders are a borderline experience for me and my soldering iron. I therefore wanted to give...
Those reed relays (HE3621) have the flyback diodes integrated and a DC resistance of 500R. Seems to be OK to directly drive them from a processor pin !?!
Isn't this normal? New Teensies come as HID devices, they don't have serial enabled by default. If you expect to see the board as serial device in Windows you need to upload a sketch compiled with...
Interesting! However, linker scripts are definitely not my core competence. But I'm sure someone knowing more about this stuff will jump in to help.
Sounds good.
No, you need this one https://github.com/PaulStoffregen/cores
Let me know if you want me to test your extension.
When I started this project a couple of years ago I was thinking of a plugin as well. I decided to not make a plugin/extension because of two reasons:
I didn't want a dependency on the used...
Don't ask me why but it works without the priority argument. I.e.,
void __attribute__((constructor )) init_foo(void)
{
foo = 5;
}
Something like this? https://github.com/pasqo/Unio
BTW: if you need a MAC address for projects not containing a Teensy, there are small (e.g. sot23) and cheap chips with preprogrammed MAC. E.g.: https://www.microchip.com/wwwproducts/en/11AA02E48. In...
A motor doesn't generate a force but a torque (the rotational equivalent of force). If you have an object with a weight of say F=10N on a lever arm of say L=0.5m length the motor needs to generate a...
You probably mean the torque in newton-meter?
Here some information about dynamometers https://en.wikipedia.org/wiki/Dynamometer, commercial: ...
AFAIK the audio library uses some FTM timers. Should be documented somewhere. Did you try to use another FTM module?
I stumbled over the same issue in one of my libraries a couple of months ago. It looks like the construct was never "legal" but gcc ignored the error in older versions. There are a lot of discussions...
I'm probably missing something but
void setup()
{
while(!Serial);
char test[] = "Hello World\n";
Serial.print(test);
Serial.write() takes byte arrays...
And Serial.printf takes char arrays...
That list looks like some Teensy2 (AVR) stuff. You find the interrupts 4.x interrupt defines in imxrt.h https://github.com/PaulStoffregen/cores/blob/master/teensy4/imxrt.h. You can use...
Actually, TME is my favorite EU seller. They have a very large assortment and deliver fast. (Usually I get my parts in 2-3 days to Germany)
Did you try this: https://www.pjrc.com/teensy/td_libs_FreqMeasure.html ?
TI has a single gate smd logic line. Would a 74HCT1G125 work? Here the datasheet https://www.ti.com/product/SN74AHCT1G125-Q1
Ups, 1 minute to late :-)
I also did one some years ago. It used a T3.2 and transmitted the count data via a Websocket server into the LAN/WLAN. The application was running in a browser (HTML5) so, anything which is able to ...