# mono-1223/aurak-ceng432-embeddedsystemdesignlab architecture

> Architecture diagram of the GitHub repository mono-1223/aurak-ceng432-embeddedsystemdesignlab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab
- Repository: https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab

## Overview

##### Project Type and Purpose
- This project is a set of lab exercises for embedded systems design. Its purpose is to demonstrate various embedded programming and interfacing techniques—from basic digital logic and LED control to more complex tasks such as LCD device drivers and real‐time measurement.
- The labs use the Texas Instruments TM4C123GH6PM microcontroller on the Tiva LaunchPad board and are programmed in both C and Assembly, using the Keil µVision IDE and TivaWare SDK. The project aims to teach how to implement and test embedded systems with real peripherals.

##### File Structure Analysis
- The file tree is organized into lab-specific directories (e.g., Lab 01, Lab 02, … Lab 09) plus a “Practice” directory that contains additional experiments. Each lab directory holds a README, a RAR file with the source (including Keil project files with the .uvprojx extension), and a “Photos” subdirectory.

##### Key Components and Their Roles
- Embedded Hardware (TM4C123G LaunchPad):
- The central element with the TM4C123GH6PM MCU.
- Onboard debugger interface (ICDI) for programming and debugging.
- Software Development Environment:
- Keil µVision IDE: where each lab’s project is built (using .uvprojx project files) and compiled into firmware.
- TivaWare SDK: supplies the driver libraries and sample code essential for peripheral control.
- Peripheral Interfaces (varying per lab):
- Digital logic and LED experiments (Lab 01, Lab 02, Practice examples): show LEDs connected to GPIO ports.
- Switch and Button Interface (Lab 03, Practice): illustrate how button inputs are wired to the MCU.
- Debug and Diagnostic Modules (Lab 04): show heartbeat toggling and memory dump debugging mechanisms.
- More complex peripherals:
- Traffic Light Controller (Lab 05): a dedicated module representing multiple LEDs and switch inputs.
- Digital Piano (Lab 06): involving a Digital-to-Analog Converter interface.
- LCD Device Driver (Lab 07): connecting an LCD (Sitronix ST7735) to the MCU.
- Measurement System (Lab 08) and Embedded System Design (Lab 09): indicating real-time sensor data handling.

##### Architectural Patterns and Design Principles
- Modularity – Each lab experiment is a self-contained module with a specific focus yet uses the same hardware fundamentals.
- Separation of Concerns – The development environment (Keil µVision) is separate from the firmware execution on hardware, and the firmware itself is divided into modules (drivers, control routines, and hardware abstractions).
- Real-time processing and debugging aspects which are central for embedded systems design.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Development Environment
    subgraph "Development Environment"
        IDE["Keil µVision IDE & TivaWare SDK"]:::ide
    end

    %% Central Embedded Hardware Block
    MCU["TM4C123G LaunchPad\n(CPU, Flash, SRAM, EEPROM, ADC, UART, SPI, I2C, PWM, etc.)"]:::hardware

    IDE -->|"flash_firmware"| MCU

    %% Peripheral Interfaces
    subgraph "Peripheral Interfaces"
        LED["LED Modules"]:::periph
        SWITCH["Switch/Button Interface"]:::periph
        DEBUG["Debug & Diagnostic Modules"]:::periph
        TRAFFIC["Traffic Light Controller"]:::periph
        PIANO["Digital Piano (DAC Interface)"]:::periph
        LCD["LCD Device Driver"]:::periph
        POSITION["Real-Time Position Measurement"]:::periph
        EMBED["Embedded System Design"]:::periph
    end

    MCU -->|"controls"| LED
    MCU -->|"inputs"| SWITCH
    MCU -->|"monitors"| DEBUG
    MCU -->|"traffic"| TRAFFIC
    MCU -->|"audio"| PIANO
    MCU -->|"display"| LCD
    MCU -->|"sensor"| POSITION
    MCU -->|"integration"| EMBED

    %% Lab Experiments
    subgraph "Lab Experiments"
        L1["Lab 01: Digital Logic"]:::lab
        L2["Lab 02: LED Control with Loops&Branching"]:::lab
        L3["Lab 03: Switch and LED Interfacing"]:::lab
        L4["Lab 04: Debugging Methods"]:::lab
        L5["Lab 05: Traffic Light Controller"]:::lab
        L6["Lab 06: Digital Piano (DAC)"]:::lab
        L7["Lab 07: LCD Device Driver"]:::lab
        L8["Lab 08: Position Measurement"]:::lab
        L9["Lab 09: Embedded System Design"]:::lab
        PRACT["Practice Exercises"]:::lab
    end

    L1 --> LED
    L2 --> LED
    L3 --> SWITCH
    L4 --> DEBUG
    L5 --> TRAFFIC
    L6 --> PIANO
    L7 --> LCD
    L8 --> POSITION
    L9 --> EMBED
    PRACT --> LED
    PRACT --> SWITCH
    PRACT --> DEBUG

    %% Detailed Practice sub-experiments
    PRACT1["Pushbutton-Controlled LED Toggling"]:::lab
    PRACT2["Switch-Controlled LED Blinking(500ms)"]:::lab
    PRACT3["LED Toggling with Heartbeat Debug"]:::lab

    PRACT --> PRACT1
    PRACT --> PRACT2
    PRACT --> PRACT3

    %% Click Events for Lab Directories
    click L1 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 01 - Digital Logic Implemented on a Microcontroller"
    click L2 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 02 - For-loops, while-loops, if-then branching, subroutines, and time delays"
    click L3 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 03 - Switch and LED Interfacing"
    click L4 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 04 - Minimally Intrusive Debugging Methods"
    click L5 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 05 - Traffic Light Controller"
    click L6 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 06 - Digital Piano using a Digital to Analog Converter"
    click L7 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 07 - LCD Device Driver for the Sitronix ST7735"
    click L8 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 08 - Real-Time Position Measurement System"
    click L9 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Lab 09 - Embedded System Design"
    click PRACT "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Practice"
    click PRACT1 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Practice/External Pushbutton-Controlled LED Toggling and Activation on Port E and Port F"
    click PRACT2 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Practice/External Switch-Controlled LED Blinking and Toggling with 500ms Delay Using 80 MHz Clock"
    click PRACT3 "https://github.com/mono-1223/aurak-ceng432-embeddedsystemdesignlab/tree/main/Practice/Toggling an External LED With an External Switch Using Different Delays and Heartbeat Debugging"

    %% Styling Classes
    classDef ide fill:#f9f,stroke:#333,stroke-width:2px;
    classDef hardware fill:#bbf,stroke:#333,stroke-width:2px;
    classDef periph fill:#cfc,stroke:#333,stroke-width:2px;
    classDef lab fill:#fc9,stroke:#333,stroke-width:2px;
```
