Yes, that's my hope... especially coding time!
I'm not ready to think about any new products until Sparkfun has been shipping Teensy 4.0 and Teensy 4.1 for a while. We've been pouring a lot of work into this transition for the last few months...
In theory, yes.
But ChatGPT lacks the practical experience of dealing with signal quality problems due to fast SPI signals on long wires.
Fortunately for you, we did have someone who eventually got 8 SPI displays working. It took a lot of...
Good product photography is much harder than you might imagine. The pictures you see on PJRC with white background are taken inside a small light tent with 2 super bright LED panels on its sides and a custom made white plastic base with LED...
Yes, that is one of the 4 chips that have been tested and are known to work. In fact, that picture looks like someone just copied the photo from the PJRC website.
Yes, that simple kit is all you need to connect ethernet. Teensy 4.1 has an...
Today I ordered this PCB, basically my old MicroMod breakout with LAN8720A ethernet added.
If it actually works, I'll send one to Shawn and publish the files. Will likely have a couple leftovers, if anyone wants them.
Simpler and (usually) better way to assure plenty of power is with a powered USB hub.
Avoid unpowered hubs. They have very limited power output, since they need to power themselves and all the things you plug into them from the USB cable...
I heard back from the PCB vendor we've used for Teensy 4.0 and Teensy 4.1 over the last couple years. Material is 94 V-0. They sent this file for documentation.
For accessing the peripherals at register level, NXP's 3522 page reference manual really is the best info. As far as a I know, nobody has written a more friendly guide.
I can point you to the ADC with DMA code that's inside the audio library...
FlexIO Serial works fine for MIDI at 31250 baud. See msg #5.
In fact, NXP specifically designed FlexIO to be able to implement about a dozen common protocols. Ordinary hardware serial is absolutely one of the many things NXP designed it to be...
Copied it from another example program. ;)
To be honest, it's been quite a while since I've meddled with FlexIO and really don't recall exactly what went into that clock number.
But I do recall (without looking at the code or reference manual)...
This is why it's always wise explain the context of your questions. If you just ask a narrowly focused question about speed, you'll (probably) miss out regarding answers like hardware serial simply not being meant for many Mbit/sec speed data...
Yes, the built in Ethernet on Teensy 4.1 uses efficient bus master DMA and large buffers with QNEthernet library. Many people have reported achieving nearly the full 100 Mbit bandwidth when communicating on a LAN. Speed over the internet with...
Not only is hardware serial physically about 500 times slower, but it also has far more CPU overhead than USB.
The serial ports on Teensy do at least have 4 byte FIFO. I believe we currently configure the interrupt watermark so half the FIFO...
It's mapped to a location in RAM, not at any fixed location as you might expect from simpler microcontrollers which can't dynamically change the interrupt table location.
Normal way to write your ISR address into the table is with...
This is a pretty infrequent question. In fact, I can remember only 1 other time. As I recall, the PCBs used for Teensy meet 94V-0 spec. They are temperature rated Tg170.
I can try asking our PCB vendor for documentation. But the odds of a...
FlexIO used as additional serial ports is easy by using Kurt's FlexIO_t4 library. It's included with Teensyduino install. In Arduino IDE, just click File > Examples > FlexIO_t4 > Serial to get started.
Some of that library's examples are a bit...
Does it show up in Teensy Loader if you press the pushbutton on Teensy. Every Teensy is made a button dedicate to entering Program mode to give you a way to recover from loading bad data.
This "SE Blank" can happen for because the flash memory...
As others mentioned, the hardware can't map the I2S data (normally pins 7 and 8) to pins 28 and 29. But there is hardware support inside the chip to use pins 38 and 39. Remapping the signals requires writing directly to the pin mux registers.
About the PSRAM hardware questions:
As explained on the PJRC page for PSRAM, if using a single 8MB PSRAM chip, it must be soldered to the smaller pads ("A" on your picture). Scroll down to "One PSRAM Chip for 8 MB Memory" for details and a photo...
Please give it another try.
Seems Intuit's card processing system has experienced occasional downtime recently. You'd imagine a huge company that only makes software could keep servers and software running reliably, but apparently not. :(...
Regarding questions about the pins, the 100K resistor (R8) is meant to keep the USB host power off until software explicitly turns it on.
Sorry, I don't have time to write a lengthy explanation about the pins, but you can find full documentation...
If you turn on verbose output during compile and look at the command line used, it has these when compiling for Teensy 4.0 using Arduino 1.8.19 and Teensyduino 1.60 (beta).
-D__IMXRT1062__ -DTEENSYDUINO=160 -DARDUINO=10819 -DARDUINO_TEENSY40...
Should be possible, should be just enough endpoints. You'll need to edit usb_desc.h. Comments in that file explain how to do create your own mix of interfaces.
In usb_desc.h used on Teensy 4, the define JOYSTICK_SIZE appears in 4 places. Did you edit the correct ones? Or all of 4 of them?
As a quick sanity test, try editing them one at a time into something wrong, like a word rather than a number...
I have no idea what you mean by "PMO" and "anti cheat" and other stuff you're saying. Maybe you explained in another thread? I see you've started at least another duplicate thread. That just makes everything more confusing and harder for...
Another small gotcha is printing 64 bit double, or even 32 bit float. While Serial.print() does handle 64 bit double, internally it uses a very simple algorithm that limits the integer portion magnitude to 2^32 and probably doesn't handle round...
Yes, Teensy 4.x has hardware FPU for both 32 bit float and 64 bit double. It's enabled by default. Usage is automatic, just use "float" or "double" variables in your code.
The FPU generally does basic 32 bit float math in 1 cycle, but takes 2...
There's a built in Arduino function called ShiftOut which does most of the work to talk to these chips. This tutorial page explains how to use it and even gives an example controlling LEDs. Pictures show Arduino NG board, but it works exactly...
Partially about right.
I'll try once more, but I don't have a lot of time for writing today.
For MISO in SPI master mode 0 or 3, the transmitter inside Teensy need your data from your ADC chip to arrive at least the setup time before the rising...
Wiring diagram looks ok.
Usually best to keep wires short between 5V power supply and LEDs, with other wires longer if needed. Diagram shows (or kinda implies) power supply near Teensy and the buffer chip. Or maybe the layout of the diagram is...
I'm afraid I don't quite understand your question.
If you didn't read page 177 yet (direct link to the PDF back in msg #21) please do so. It's only 1 page and gives some really good discussion of important issues to keep in mind. I'm really...
First quick answers and non-answers...
Yes, with TDM the word clock becomes a pulse at the beginning (or end) of each frame.
Max number of data pins is 5. SAI1 can have 4 output pins, and SAI2 can have 1 output pin. I'd highly recommend...
If power is from a USB cable, please know the USB 2.0 specification in section 7.2.4.1 "Inrush Current Limiting" on page 177 requires USB devices have no more than 10uF direct capacitive load.
Teensy 4.x already has about 2.6uF directly...
I believe your best option is probably TDM using 4 or 5 data pins. The TDM code in the audio library transmits a 256 bit frame, which was (nearly) the fastest Teensy 3.x hardware was rated to handle. I believe the max bitrate is twice has high...
You can always get back to a working system by just reinstalling. Just download a fresh copy of Arduino's installer and a fresh copy of the Teensyduino installer (scroll down to "Arduino 1.8.x...").
On Arduino's website you might have to click...
Before answering, I have a question about the data you wish to transmit. Is it audio or audio-like, where maintaining a consistent sample rate is of paramount importance? Or is it insensitive to minor timing fluctuations, where small variable...
Probably not.
I'd recommend reading "Power Up Sequence" on the T4 bootloader chip page. Click the little javascript buttons to see the sequence on the schematic. :)
This NXP chip is not like simpler parts where you just apply 3.3V. It has...
Glad you got the USB cable issue sorted.
On the circuit safety question, I'm guessing you mean the photo with a breadboard? If the 5V power were to accidentally short directly to Teensy pin 0 (or any pin other than VIN / VUSB) your Teensy would...
Please remember we can't see your custom PCB over the internet, unless you show us. We can't see this unusual display which incorporates "A resistor is already implemented in my OLED display, which reduces the voltage from 5 volts to 3.3 volts"...