Thank you for your suggestion Chris. I tried adding the suggested change, as follows.
// slew rate
CORE_PIN11_CONFIG |= PORT_PCR_SRE;
CORE_PIN12_CONFIG |= PORT_PCR_SRE;
CORE_PIN14_CONFIG |= PORT_PCR_SRE;
CORE_PIN15_CONFIG |=...
Indeed SPI bus to 8 devices can become a signal quality nightmare, especially if the wires are "long" and there is any substantial space between each signal wire and its return GND path.
This would be very welcome on my project as it would save it needing to be placed in probably 40 places across the code (No there's not 40 different interrupts, but different functions that could be called depending on config/state). Having it...
Thanks for your comment. But my data set is small and I should reach the .csv file, that I saved during the mission, after the mission immediately. With the SD card, I can access my data faster. Am I wrong?
As I understand, flash is not integrated into Teensy's MCU, so its interface is not DMA. I researched W25Q64JV. I believe it is using Quad SPI. If I am true about the Quad SPI thing, can you provide the average SD card(4bit SDIO) and...
Hi,
I am looking for some clarity about the AudioAnalyzeRMS function. I am applying it to the mic input and getting fine results but I am curious about what 1.0 scales to in this case. Is the maximum of the normalised value floating or is it...
In answer to question 1): no, pull-up will not help you out. Except maybe just after power on reset while SPI pins (which are also I2C on ST MEMS…) are still floating.
As mentioned in earlier post: unless I2C mode is actively disabled after ST...
you may want to read through this:
Better SPI Bus Design in 3 Steps
Are you using the library or did you roll your own? When I used the library and did see any issues. Not sure what you mean by glitches.
Update :
Sorry for not being active during kast week, I was really busy because of work.
Firstly, a HUDGE thanks to mjs513 as now I have a reliable way to interface my lsm6dsox.
Secondly, I tried the program and got mixed results : it works well...
Looking at my excel document I see:
So it looks like those 16 pins are all on the upper part of GPIO1 (In default mode)
Or GPIO6 in Fast mode. And startup.c changes all of the pins to High speed mode.
You can probably read all of them in...
> Agreed, parallel mode is (probably) simpler. On Teensy 4.1 you can read all 16 bits with a single GPIO register if you connect the data pins to all the "AD_B1_xx" GPIO pins.
What's the name of the register that must be read?
Thanks,
Michael
Turn off Auto mode in the small Teensy Loader window, and keep it visible while you try this test.
Physically unplug the USB cable, and then hold the pushbutton while you plug it back in. While watching the Teensy Loader window, release the...
I don't believe internal exceptions like SVC or PendSV need it because they don't go through the NVIC. But for externally triggered exceptions that require writes to memory-mapped registers to clear their interrupt triggers, especially if those...
For anyone who finds this later:
I can confirm Teensyduino 1.18 works with original Teensy++ and requires Arduino v. 1.0.5 available here: https://www.arduino.cc/en/Main/OldSoftwareReleases
Are you using TeensyDuino 1.18 and Arduino 1.0.5 per...
Thank you for your suggestion Chris. I tried adding the suggested change, as follows.
// slew rate
CORE_PIN11_CONFIG |= PORT_PCR_SRE;
CORE_PIN12_CONFIG |= PORT_PCR_SRE;
CORE_PIN14_CONFIG |= PORT_PCR_SRE;
CORE_PIN15_CONFIG |=...
I proposed this a while back (for other internal handlers too) but Frank B had pointed out that we shouldn’t do this always. I still don’t always know when it’s appropriate. My current mental model is that when the interrupt register is handled...
Hi,
I have found an old Teensy++ 1.0 and don't want to throw it away. I found this Thread with old Software to make it work again: https://forum.pjrc.com/index.php?threads/teensyduino-support-for-teensy-1-0.60870/
But all code examples do not...
IIRC::
Teensy 3.x before 4.x put the time in the hex when building and that would be used to set on starting if 'not set' - even days later.
For T_4.x the better usable solution was to have the Loader Teensy.exe pass the time during programming...
Update to a more recent version of Teensyduino, e.g. https://forum.pjrc.com/index.php?threads/teensyduino-1-59-beta-4.73995/
The errors are caused by wiring.h declaring abs() as a macro, conflicting with the standard library definition.
Hi,
I'm trying to include a library that was not specifically written for Arduino/Teensy in a project.
It compiles perfectly on a Raspberry Pi 5 with gcc/g++, but can not get it to compile for Teensy 4.0.
To me, the weird thing is that I'm...
Thanks! Let me know if you have any problems / questions with anything. Your xr-1 groovebox looks amazing and am enjoying the jams you've posted! I'll be following your progress.
On a related note, I've been screwing around with FM as too. The...
There is startup code that detects if the RTC is uninitialized and sets the current time to Jan 1, 2019: https://github.com/PaulStoffregen/cores/blob/master/teensy4/startup.c#L171
This sets the "initialized" flag so you can't tell if the clock...
I backed up 'usb_desc.c.' and 'usb_names.h' and copied the contents of the attached files above to each respective file. This resulted in multiple errors. A way to fix would be awesome.
Are these changes compatible with Teensy 4.1? I'm new to the Teensy world and would rather not make assumptions that could lead to weird bugs down the road.
calbertoferreira:
Yes, I confirm that you have the correct pins. In addition to these pins, as you said in your earlier post, you will also need to connect GROUND & the 3.3VDC pins. The T4.x has multiple GROUND pins, but the Audio Adapter...
EEPROM write versus SDHC is an odd comparison?
As noted the EEPROM writes are done with the focus on minimizing wear with overhead in each byte written to do that and then when needed and on the fly block format will happen to restart the data...
That is correct, you have only adjusted the first instance in which it is checking the input buttonRecord to see when the handset is lifted. There are many other IF statements used to see when the handset is replaced. You will need to adjust...
Hello, is there a way of getting a "heads up" flag or similar when a teensy 4 firmware update is going to happen? I have some DC motors connected to my Teensy 4 and whenever i engage in a firmware update they go full blast while the update is...
Ah well it gets even weirder. The teensy is outputting this hello world message with the counter. Must be the blink sketch? But it’s writing code directly into arduino sketch file at the cursor position.
Odd . Every time I plug this other teensy in I get this hello world text appears in the ide in my code at the cursor position. The integer increases each time. Still can’t see it as a port, but teensyduino responds to a button press on tge 4.1. I...
So I’m compiling and uploaded to my t4.1. Everything goes weird. The teensy does not boot. I can no longer see it as a port in arduino. I check the pc, leads to a restart. Get a blue screen. Finally manage to get the pc back up. Open up arduino...
When first programmed the Teensy will automatically have the Compile/Date time.
If you wish to get that date/time on subsequent powering of the Teensy you can use the code below:
Serial.print("Compile: Date "); Serial.print(__DATE__)...
Hi!
I've seen in other posts that it's possible to use the USB_MIDI_AUDIO_SERIAL flag to use teensy as a USB soundcard and write to the Serial console. Is it also possible to communicate using OSC on the same USB port? I've tried but I couldn't...
For my project I want to measure the phase between two input signals. The input signals have a sinusoidal shape and the exact same frequency. The frequency can be in the range from 100 Hz to 10 kHz. The AudioAnalyzePhase_F32 object from the...
Sorry I don't know the CYD... Mine are mostly RED...
In some places in the code, I have simply winged it. That is I setup a sketch that echos the raw touch points and figure out MIN/MAX values.
Like in one sketch I have:
#define TS_MINX 337...