How edgarreis/codes-msp430g2 works
This repository is a collection of independent MSP430G2 teaching exercises, not one integrated application. The user chooses an Assembly or C example, runs it on the microcontroller, and observes peripheral behavior such as LED blinking, display output, motor control, ADC/PWM operation, or serial communication. The graph preserves the major documented capabilities and the indexed exercise sources. Most source files were not sampled, so their internal control flow is not inferred; the serial, debouncing, seven-segment, and P21 relationships are grounded in excerpts.
Main entry points: EX26.c Serial Communication · EX18.c Debounced LEDs · P21.c Button and Timers · EX19.c Seven-Segment Counter
Components 20
Assembly Basics
- Assembly Exercises
EX01-Registradores-Assembly/EX01.asm
GPIO and Timing
- LED Timing
EX15-BlinkLEDs3-Assembly/EX15.c - Port Interrupt
EX16-InterruptPort-C/EX16.c - Timer Interrupt
EX17-TimerInterrupt-C/EX17.c - Debounced LEDs
EX18-TimerInterrupt-Debouncing-C/EX18.c - Button and Timers
P21/P21.c
Peripheral Exercises
- Seven-Segment Counter
EX19-Count7Seg-C/EX19.c - Display Variant
EX19-Count7Seg-C/EX19b.c - Stepper Motor
EX20-StepMotor-C/EX20.c - ADC and PWM
EX21-ADCConverter-C/EX21.c - ADC LED Control
EX21a-PWMController-C/EX21A.c - LCD Display
EX23-LCD-Display-C/EX23.c - LCD Variant
EX23-LCD-Display-C/EX23a.c - LCD Example
EX23-LCD-Display-C/Arquivos/ex23.c - LCD Example Variant
EX23-LCD-Display-C/Arquivos/C_ex231.c - Serial Communication
EX26-SerialCom-C/EX26.c
Additional Programs
- P22 Program
P22/P22.c - P22 Variant
P22/p22a.c
Other components
- Learner
- MSP430G2
Connections 10
- Learner → MSP430G2: runs exercises on
README.md - MSP430G2 → Debounced LEDs: runs firmware
EX18-TimerInterrupt-Debouncing-C/EX18.c - Debounced LEDs → MSP430G2: configures timer and port
EX18-TimerInterrupt-Debouncing-C/EX18.c - MSP430G2 → Seven-Segment Counter: runs firmware
EX19-Count7Seg-C/EX19.c - Seven-Segment Counter → MSP430G2: updates display outputs
EX19-Count7Seg-C/EX19.c - MSP430G2 → Serial Communication: runs firmware
EX26-SerialCom-C/EX26.c - Serial Communication → MSP430G2: configures UART
EX26-SerialCom-C/EX26.c - Serial Communication → Serial Communication: sends received bytes
EX26-SerialCom-C/EX26.c - MSP430G2 → Button and Timers: runs firmware
P21/P21.c - Button and Timers → MSP430G2: configures timers and GPIO
P21/P21.c