Commit Graph

14 Commits

Author SHA1 Message Date
giomba d91201dcfd do using polling
actually this does not work, because polling requires:
        in
        andi
        brne
which takes 4 clock cycles, that, on average, means a 2 clock offset,
while interrupts occur during a rjmp, which takes 2 clocks, which means,
on average, only 1 clock cycle of offset

I am not interested in higher or lower overhead: I am just interested in
minimizing its variance.
Being late of a few clock cycles, is not a problem: it just means that
the picture will be slightly shifted toward the right border; but,
starting the picture 1 or 2 clock cycles before (on one line), and 1 or
2 clock cycles after, on another line, means that it just wiggles sligthly
left and right
2021-08-08 22:29:16 +02:00
giomba 53da6b7171 an hardcoded demo
prints "RE", a vertical line, and a counter
2021-07-03 16:42:32 +02:00
giomba 1764a5f2b3 line buffer dynamic update 2021-07-03 15:44:01 +02:00
giomba 9eaf78d6b5 introduced line buffer of 160 pixel 2021-07-03 15:02:01 +02:00
giomba 77b1858311 using a prescaler (eg /64) may lead to horizontal offset errors
because 1cycle off actually means many cycles off (eg 64)
2021-07-03 12:05:49 +02:00
giomba 2abac03779 semi working timer for skipping back porch 2021-07-03 11:54:31 +02:00
giomba 48da25958e back porch skipping, wasting clock cycles, basically 2021-06-28 21:54:25 +02:00
giomba 1f3f3f36f2 line, frame as words (16 bit) 2021-06-28 21:38:39 +02:00
giomba 0448c64be4 do nothing while not in interrupt 2021-06-27 23:08:47 +02:00
giomba f3ce016a06 vertical line, scrolling from left to right
sufficiently handles the back/front porch without disrupting the sync
signal
todo improvement: compute a sensible amount of cycles to waste during
the porch
2021-06-27 22:37:11 +02:00
giomba 14fd0412d4 something strange is happening 2021-06-27 21:57:02 +02:00
giomba 97e0ff26fa "diagonal line"
not the whole screen, but vertically locked
actually it has some issues, there is a single dot (at the
end/beginning of a cycle) that messes up the horizontal sync and moves
all the picture... must be fixed
2021-06-26 23:42:23 +02:00
giomba 29990cd93a "diagonal line"
not vertically locked, just a test
also not the whole screen, just a bit
2021-06-26 22:34:22 +02:00
giomba b7004a0171 first commit
vertical line at about 1/3 of the horizontal line
2021-06-26 19:15:17 +02:00