SLAAEC7 September   2024

 

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