3 ms·
> I'm quite skeptical at the number of microcontrollers that have this protective circuitry It isn't protective circuitry as-such... it's the default way to
by londons_explore 5y ago
> I'm quite skeptical at the number of microcontrollers that have this protective circuitry
It isn't protective circuitry as-such... it's the default way to build an output pin circuit[1].
The MOSFETS in typical use act like switches, but they also have a 'saturation' region[2] where they act like constant current drivers, which is exactly what ought to be used to drive an LED.
The current flow in the saturation region isn't awfully consistent from one microcontroller to another as it typically depends on temperature and various process parameters.
[1]: https://open4tech.com/wp-content/uploads/2019/03/push_pull_schematic-1.jpg https://open4tech.com/wp-content/uploads/2019/03/push_pull_s...
[2]: https://i.stack.imgur.com/GFMrw.png https://i.stack.imgur.com/GFMrw.png