Table Sequencer to LED
bennettdan
Posts: 614
Hello,
I have written a LED sequencer in pasm that I would like to know if their are any shortcuts or any advice that could be used to optomise this?
This is mainly to get a grasp on how to cycle through a LookUp table and control an led with it. Thanks for any info.
I have written a LED sequencer in pasm that I would like to know if their are any shortcuts or any advice that could be used to optomise this?
This is mainly to get a grasp on how to cycle through a LookUp table and control an led with it. Thanks for any info.
Comments
Sorry about that i was having some trouble uploading and I hope that I just uploaded the wrong one...I have uploaded it again.
I though I had that changed in the one i just uploaded it..was it only sequencing one loop for you?
ok try this one out...Dan_LED_Sequencer.zip
Any particular reason why you picked 7 when you have 8 entries? Also, why do you use movs to grab the LED pattern? Someone may want more than 9bit ... just thinking aloud ...
Just noticed your comment regarding ch. If you set it to the maximum entry then the sequence starts there but doesn't wrap. Also, if offset start isn't important you might want to consider this version:
The ch offset is going to be used in the final code but it will never be more then 50% so i think it should be fine. Thanks again I will try your example out and if might come in handy later.