Close

Anything Redeeming

A project log for 32 Shades of Grey

Portable NTSC test pattern generator

danjovicdanjovic 05/05/2018 at 03:090 Comments

After some work on the code I have finally managed to make it work as expected!

It is working now!
The color of the bar right after the resolution pattern is correct now

The last bug to fall was the color of the bar right after the resolution pattern. It was a register that should be updated but I was out of spare cycles.

Then I have abandoned the use of a table and a pointer to pick up the color of the current stripe; instead I have used a macro with a parameter which happens to be the color and repeated such macro 31 times along the line.

Macro used to generate a single strip

Then, at the lines which contain the resolution pattern it gets easy to replace some stripes for the pattern simply by commenting  the macro. As long as the cycle count matches the multiples of the width of a stripe everything gets fine!

Generating a line of progressive color stripes

Discussions