TeensyDuino: Please add control for GPIO hardware

Greg-R

Member
I would like to be able to control the GPIO outputs per the Teensy 4.1 description:

Variable Drive Strength
The output impedance of each digital output may be controlled in 7 steps, ranging from 150 ohms (weakest) up to about 21 ohms (strongest).
Adjustable Output Bandwidth
Digital output bandwidth is also programmable, in 4 steps: 50, 100, 150 and 200 MHz.

This would be very useful in the case of a SPI bus which needs to drive a long cable or other load.

Regards,
Greg
 
It already exists.
*(portControlRegister($PIN_NUMBER)) = IOMUXC_PAD_DSE($DRIVE_STRENGTH) | IOMUXC_PAD_SPEED($SPEED);

$DRIVE_STRENGTH = a value from 0 to 7.
$SPEED = a value from 0 to 3.
 
You won’t find detailed documentation for everything. You have the PJRC web pages, Arduino API documentation, this forum, GitHub, google, and the reference manual. It’s sometimes better to use google even to find forum messages.

Edit: Forgot to mention source code.
 
Last edited:
Back
Top