Software for Eric Michaud’s home-built video digitizer for the TS2068, from the second part of his series. The driver POKEs 512 bytes from DATA to 38912, checks their total, and then calls the routine at 39296 over and over: it reads the digitizer on port 0 and builds a high-contrast still picture from a video source on the screen, one vertical line per TV frame, about five seconds a picture.
With this short version the picture has to be synchronised by hand: turn the SYNC and BRIGHTNESS knobs until the image forms from left to right. The download also has the two-line hardware test from the article, which prints the values read from port 0 (usually 252 to 255 with a video source connected). Both need the digitizer: without it the test prints 255 and the driver waits for a sync signal for ever, with interrupts off. The full driver, with grey-scaling, cleaning, flips and cut and paste, was in the club library.
Published in Sinc-Link March-April 1987 (Digital Imagizing, Part 2).
Source Code
Hardware test
10 OUT 0,255
20 POKE 23692,255: PRINT IN 0;" ";: GOTO 20
Digitizer listing
5 REM DIGITIZER LISTING by Eric Michaud
10 CLEAR 38911: LET t=0
20 FOR x=38912 TO 39423
30 READ n: POKE x,n: LET t=t+n
40 NEXT x
50 IF t=49564 THEN GO TO 100
60 PRINT "Error": STOP
100 RANDOMIZE USR 39296: BEEP .01,30: GO TO 100
3000 DATA 0,64,0,65,0,66,0,67,0,68,0,69,0,70,0,71,32,64,32,65,32,66,32,67,32,68,32,69,32,70,32,71,64,64,64,65,64,66,64,67,64,68,64,69,64,70,64,71,96,64,96,65,96,66,96,67,96,68,96,69,96,70,96,71,128,64,128,65,128,66,128,67,128,68,128,69,128,70,128,71,160,64,160,65,160,66,160,67,160,68,160,69,160,70,160,71
3010 DATA 192,64,192,65,192,66,192,67,192,68,192,69,192,70,192,71,224,64,224,65,224,66,224,67,224,68,224,69,224,70,224,71,0,72,0,73,0,74,0,75,0,76,0,77,0,78,0,79,32,72,32,73,32,74,32,75,32,76,32,77,32,78,32,79,64,72,64,73,64,74,64,75,64,76,64,77,64,78,64,79,96,72,96,73,96,74,96,75,96,76,96,77,96,78,96,79,128,72,128,73,128,74,128,75,128,76,128,77,128,78,128,79
3020 DATA 160,72,160,73,160,74,160,75,160,76,160,77,160,78,160,79,192,72,192,73,192,74,192,75,192,76,192,77,192,78,192,79,224,72,224,73,224,74,224,75,224,76,224,77,224,78,224,79,0,80,0,81,0,82,0,83,0,84,0,85,0,86,0,87,32,80
3030 DATA 32,81,32,82,32,83,32,84,32,85,32,86,32,87,64,80,64,81,64,82,64,83,64,84,64,85,64,86,64,87,96,80,96,81,96,82,96,83,96,84,96,85,96,86,96,87,128,80,128,81,128,82,128,83,128,84,128,85,128,86,128,87,160,80,160,81,160,82,160,83,160,84,160,85,160,86,160,87,192,80,192,81,192,82,192,83,192,84,192,85,192,86,192,87
3040 DATA 224,80,224,81,224,82,224,83,224,84,224,85,224,86,224,87,243,62,8,0,0,0,211,0,33,0,0,34,165,153,22,38,205,229,153,21,32,250,30,128,22,192,205,229,153,33,0,152,78,35,70,229,33,32,0,9,219,0,203,71,32,250,203,79,40,8,123,238,255,71,126,160,24,2,126,179,119,225,35,21,32,222,203,27,48,210,58,165,153,60,50,165,153,254,32,32,197,62,0,211,0,6,4,14,255,62,255,61,32,253,13,32,248,16,244,251,201,219,0,203,71,32,250,62,4,61,32,253,219,0,203,71,32,239,6,4,62,150,61,32,253,16,249,201Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
