Section 5.2 In Class: Design and Practice
Today we’ll design the circuit that lets a GPIO pin switch a load it could never drive on its own. We’ll start by reading each other’s keyboard counter programs and talking about what the USART does with a keypress while
delay_ms() is running. We’ll then replace the hand-counted bit numbers in our register writes with the named macros the CMSIS (Common Microcontroller Software Interface Standard) headers already define, work out what base resistor an NPN low-side driver needs from a 3.3 V pin, look at the MOSFET version of the same switch, and pull the numbers we need out of four transistor datasheets.
