The Teensy 4.0 is a powerful microcontroller featuring an ARM Cortex-M7 processor running at 600MHz, supported by an NXP iMXRT1062 chip, making it the fastest microcontroller available today. Despite its power, it retains the same size and shape as the Teensy 3.2, as well as most of the 3.2's pin functions compatibility.
The Teensy 4.0 consumes approximately 100mA current when running at 600MHz and supports dynamic clock scaling. This unique feature allows the clock speed to change without causing issues with baud rates or other functions. Serial baud rates, audio streaming sample rates, and Arduino functions like delay() and millis() continue to work properly even as the CPU speed changes. Additionally, the Teensy 4.0 includes a power shut off feature, allowing the 3.3V power supply to be completely disabled and reactivated with a simple pushbutton. The Teensy 4.0 also has a real-time clock (RTC) that continues to track date and time even when power is off, provided a coin cell is connected to VBAT. For those looking to push the limits, the Teensy 4.0 can be overclocked well beyond 600MHz.
The Cortex-M7 processor brings many powerful CPU features to this real-time microcontroller platform. It is a dual-issue superscaler processor, capable of executing two instructions per clock cycle at 600MHz. Initial benchmarks have shown that C++ code compiled by Arduino can achieve this about 40% to 50% of the time while performing numerically intensive work using integers and pointers. The Cortex-M7 is the first ARM microcontroller to use branch prediction, reducing the overhead of loops and other code branches, allowing the branch instruction to run in only a single clock cycle.
One of the unique features of the Cortex-M7 is the Tightly Coupled Memory, which allows fast single cycle access to memory using a pair of 64-bit wide buses. The ITCM bus fetches instructions, while the DTCM bus performs up to two separate memory accesses in the same cycle. 512K of memory can be accessed as tightly coupled memory, optimized for DMA access by peripherals. This makes the Teensy 4.0 highly efficient for I/O.
The Teensy 4.0's Cortex-M7 processor also includes a floating point unit (FPU) which supports both 64 bit "double" and 32 bit "float". This means that all math functions can be executed with FPU hardware, making the Teensy 4.0 extremely efficient.
Note: Please be aware that the Teensy 4.0 does not include headers. These will need to be purchased separately and soldered on yourself.
Brand | PJRC |
Model | TEENSY40_LOCK |
Length | 19 mm |
Width | 37 mm |
Height | 4 mm |
Weight | 8,4 g |