Skip to main content

2026 ECE 4550 Control System Design — Fall 2026 (Lab #3- General Purpose Inputs and Outputs) Georgia

Page 1

2026 ECE 4550 Control System Design — Fall 2026 (Lab #3- General Purpose Inputs and Outputs) Georgia institute of technology GEORGIA INSTITUTE OF TECHNOLOGY

SCHOOL of ELECTRICAL and COMPUTER ENGINEERING

ECE 4550 — Control System Design — Fall 2026 Lab #3: General Purpose Inputs and Outputs

Contents 1 Background Material 1 1.1 Introductory Comments..............................................................................................................1 1.2 Fundamentals of GPIO Circuits.................................................................................................2 1.3 Relevant Microcontroller Documentation..................................................................................4 1.4 Target Hardware Schematic Diagrams and Data Sheets........................................................4 2 GPIO Module: Step-by-Step Guidelines 5 2.1 Initialize the GPIO Registers....................................................................................................5 2.1.1 Set the Multiplexers........................................................................................................5 2.1.2 Assign the Signal Direction............................................................................................6 2.1.3 Configure the Pull-Up Option........................................................................................6 2.1.4 Configure the Open-Drain Option.................................................................................6 2.2 Utilize the GPIO Pins................................................................................................................6 2.2.1 Read from a GPIO Input Pin........................................................................................6 2.2.2 Write to a GPIO Output Pin........................................................................................7 3 Flash-Based Implementation 8 3.1 Types of Microcontroller Memory.............................................................................................8 3.2 Flash Programming Procedure...................................................................................................9 3.3 Flash Wait States.......................................................................................................................9 3.4 Flash Configuration....................................................................................................................10 4 Lab Assignment 11 4.1 Pre-Lab Preparation..................................................................................................................11 4.2 Tasks..........................................................................................................................................11 4.2.1 Display Status of Pushbutton on an LED...................................................................12 4.2.2 Constant Frequency Counting on Four Header Pins.................................................12 A Switch Interfacing

1

Background Material

1.1

Introductory Comments

12

The versatility of microcontrollers is a consequence of their ability to combine internal numerical computation with external component interaction to achieve some desired function from a single programmable chip. General-purpose inputs and outputs (GPIO) represent the simplest of the various digital interfacing options. The objective of this lab is to introduce GPIO,


Turn static files into dynamic content formats.

Create a flipbook
2026 ECE 4550 Control System Design — Fall 2026 (Lab #3- General Purpose Inputs and Outputs) Georgia by Inter-Educations Hub - Issuu