SLAAEC7A September   2024  – August 2025

 

  1.   1
  2. Description
  3. Required Peripherals
  4. Design Steps
  5. Design Considerations
  6. Software Flow Chart
  7. Application Code
  8. Hardware Design
  9. Results
  10. Additional Resources
  11. 10Revision History
  12. 11E2E
  13. 12Trademarks

Design Steps

  1. 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.
  2. Separate the GPIO pins into row pins and column pins.
  3. Configure all row and column pins as outputs.
  4. Determine the mask value for the column pins by taking the bit-wise OR of all the column pin GPIO values.
  5. Create the memory table and the memory table update function.
  6. Create an enumeration table for the row update state machine to cycle between rows.
  7. Configure timer interrupts and write application code for the row update state machine and to increment the LED state.
  8. Write application code to set the display period and to update the memory table with new column pin values as the display changes.