On 13/05/2012 10:14, Andrew Gillen wrote: > it created some nice patterns, but not quite the patterns I wanted.
Try working from this: http://obo.homeip.net/BorderSAM.zip The visible width is 36 blocks, and each out covers 2 blocks. That means 18 OUTs for the effect plus 6 more for invisible padding between lines. Adding a NOP after an OUT adds a single block for odd widths. There must be an even number of NOPs in each line for timing, with any spare NOP added after the padding OUTs. For every 2 NOPs added you must remove an OUT. Technically, 2 OUTs (8T total) should be needed per extra block, but the ASIC contention alignment during the border write rounds it up anyway. I've kept the number of vertical lines the same as the original code, though you can see more than that on a real SAM. There's also some interrupt re-entrancy with the current code, but it's allowed for in the timing delays. I've just had a chat with Chris on IRC and there may be SAM support in the editor program at some point :) Si
