P8X32A QuickStart board LED Fun

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2
Request group membership
Auxiliary Files
By: Rick Nungester, created: 2013-08-23 | updated: 2013-08-23

This short Spin program generates interesting patterns on the board's 8 LEDs that repeat after about 1.7 minutes. As an alternative to leaving your board unused in a drawer, it turns it into a conversation piece. The program implements a 32-bit Linear Feedback Shift Register (LFSR) with seed value 1 and XOR feedback taps at bits 30 and 31, resulting in a 1023-state pseudo-random number generator with attractive bit patterns. The 8 LS bits of the value are mapped to the board LEDs. See the attached video for the result.

Original File Upload
AttachmentSize
Binary Data P8X32A_QuickStart_LED_Fun.spin2 KB