← concepts · the commons
vertical counter
5 moment(s) that assert this concept — showing 1–5 of 5
single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →Ben Eater · youtube · en-US
1The vertical counter counts from 0 to 628 to track the current line being displayed on the screen.
“we've got another counter here that counts each line on the screen from 0 to 628”
spoken · 43s · 2019-07-13
Ben Eater · youtube · en-US
2Connecting the 16s place bit of the vertical counter to the green signal produces a green color that alternates every 16 lines.
“if I take that bit and hook it up to the the green signal and I'm hooked it up through a resistor”
spoken · 120s · 2019-07-13
Ben Eater · youtube · en-US
3Connecting the 8s place bit of the vertical counter to the red signal produces a red color that alternates every 16 lines.
“if I hooked the red up here to the eights place in the same way”
spoken · 142s · 2019-07-13
Ben Eater · youtube · en-US
4The image is stored in an EEPROM by mapping pixel positions from horizontal and vertical counters to specific memory addresses, where each byte stored at that address represents the color of the corresponding pixel.
“the way this will work is we already have our horizontal and vertical counters giving us an x and a y position and if we feed all of those signals into the addresses of the EEPROM Then the EEPROM will give us a byte stored at that address and that byte could be the color of the pixel for that particular XY location”
spoken · 198s · 2019-07-13
Ben Eater · youtube · en-US
5To reduce pixel repetition and improve resolution, the vertical counter can be modified by removing the last two bits, which divides the counter by four and causes each line to be repeated four times.
“if we lop off that last bit now it goes 0 0 1 1 2 2 and so forth up to 8 and if we lop off another bit Then it repeat each number four times and only counts up to 4 instead of counting to 16”
spoken · 246s · 2019-07-13