Add new comment

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.

Reply


*

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <b> <i>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]].
  • Insert an html table from [table | cell 2 ...]. Use "|" between cells and a new line between rows.
  • You can use Markdown syntax to format and style the text.