SLAAEC7A
September 2024 – August 2025
1
1
Description
2
Required Peripherals
3
Design Steps
4
Design Considerations
5
Software Flow Chart
6
Application Code
7
Hardware Design
8
Results
9
Additional Resources
10
Revision History
11
E2E
12
Trademarks
3
Design Steps
Determine the number of LEDs used in the matrix as well as the matrix dimensions. The matrix dimensions determine the number of GPIO pins needed.
Separate the GPIO pins into row pins and column pins.
Configure all row and column pins as outputs.
Determine the mask value for the column pins by taking the bit-wise OR of all the column pin GPIO values.
Create the memory table and the memory table update function.
Create an enumeration table for the row update state machine to cycle between rows.
Configure timer interrupts and write application code for the row update state machine and to increment the LED state.
Write application code to set the display period and to update the memory table with new column pin values as the display changes.