Lightpen

Peripheral

N/A


Information from Andy Gale taken from the Sam Coupé Scrapbook

Very simple really - the SPEN pin on the lightpen/audio port is usually pulled high internally with a resistor. This means that ports 248 and 504 are constantly updated with the x and y coordinates respectively of the raster beam. If SPEN is held low then those ports ‘stick’ at their current value. So, basically, your lightpen circuit should hold SPEN low and blip it high very briefly when the raster beam passes in front of the photodetector (you could use a photodiode, phototransistor, photodarlington - preferrably a fast one) - this shouldn’t take much more than one i.c.! Note that the x-resolution is not too great, and that line interrupts (often used for palette changes) will not operate. Sorry.


No pen actually ever got released for the Sam.

light gun spliter

any chance of splitting the light gun inputs so that two can be read?

Re: light gun splitter

No - there’s only one counter in the ASIC, so two light guns would have to be implemented with a completely different scheme to the one the Sam internally uses.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.