Actions

EmSys

Switch Inputs and LED Outputs in TM4C123

From EdWiki

Revision as of 04:27, 2 January 2019 by Jshankar (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Switch Inputs and LED Outputs There are four ways to interface a switch to the microcontroller as shown in the following Figure:

Interface of a switch to a microcomputer input

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.