Switch Inputs and LED Outputs in TM4C123
Revision as of 04:27, 2 January 2019 by Jshankar (Created page with "__NOTOC__ '''Switch Inputs and LED Outputs''' There are four ways to interface a switch to the microcontroller as shown in the following Figure: image:interface_switch_to_uc...")
Switch Inputs and LED Outputs There are four ways to interface a switch to the microcontroller as shown in the following Figure:
We can use either positive or negative logic, and we can use an external resistor or select an internal resistor. Notice the positive logic circuit with external resistor is essentially the same as the positive logic circuit with internal resistance; the difference lies with whether the pull-down resistor is connected externally as a 10 kΩ resistor or internally by setting the corresponding PDR bit during software initialization.