-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brittany figured out the logical reason LEDs were flickering and devised this fix, setting the timer count 0. Runnign the ADC and the timer at the same time results in a situation where the timer's CNT isn't correctly reset to 0. The timer was sometimes moving to 0 later, causing a late MINC (memory increment) in the DMA request, and this lateness cascades, causing corrupted data to be written to the LEDs. Manually ensuring CNT is 0 before starting the LED DMA stuff effectively prevents this issue.
- Loading branch information
Showing
2 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters