SLAAEC7
September
2024
-
1
-
1 Description
-
2 Required Peripherals
-
3 Compatible Devices
-
4 Design Steps
-
5 Design Considerations
-
6 Software Flow Chart
-
7 Application Code
-
8 Hardware Design
-
9 Results
-
10Additional Resources
-
11E2E
-
12Trademarks
4 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.