<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Interfacing old Commodore 64 printers with Arduino</title>
	<atom:link href="http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/</link>
	<description>Just another blogging geek</description>
	<lastBuildDate>Tue, 03 Aug 2010 11:36:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: trk</title>
		<link>http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/comment-page-1/#comment-537</link>
		<dc:creator>trk</dc:creator>
		<pubDate>Sat, 05 Dec 2009 22:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rantakokko.net/tapani/blog/?p=67#comment-537</guid>
		<description>@Martijn:

Instead of emailing, I&#039;d rather answer here so that others can see it too.

You didn&#039;t mention if you have managed to print anything yet or not. So is it working at all, or are you just trying get everything out of it by testing different modes? Nevertheless, I would first test it without changing anything in the code or moving the DIP switches.

Based on your question I become to think that you have the manual for your printer. In the good old C-64 days manuals contained some pretty useful data, so it might actually contain the information you are asking &quot;between the lines&quot;. Since I don&#039;t have that printer, nor the manual, I can only guess and give some hints.

First, Commodore printers usually use address 4 or 5. Your printer might have a DIP switch for selecting the address. You may need to change the address in the code, or use the switch so that they match, but there&#039;s a good chance that this is OK already.

Second, the timings I used for serial communication are based on information contained in my printer&#039;s manual and web. I believe communication with other printers should work with this code, but I am not sure about it - maybe there are differences. Moreover, I got it working without implementing every last detail of the communication protocol mentioned in the manual, but another printer models might be more strict about that. You just have to test.

Third, different printers probably have different kinds of modes and commands for activating them. I don&#039;t know what exactly the ASCII mode means and how it differs from Commodore mode, but I assume that if you use Commodore mode, the printer should work with this code. Since there is a DIP switch for defaulting to Commodore mode after power-on, things should be easy: just make sure that the switch is set to Commodore mode (it probably is), then you should get something printed with the self test function. In case you want to experiment further, you can try to enable the ASCII mode by modifying my code, since you seem to have the information how the mode can be changed from code.</description>
		<content:encoded><![CDATA[<p>@Martijn:</p>
<p>Instead of emailing, I&#8217;d rather answer here so that others can see it too.</p>
<p>You didn&#8217;t mention if you have managed to print anything yet or not. So is it working at all, or are you just trying get everything out of it by testing different modes? Nevertheless, I would first test it without changing anything in the code or moving the DIP switches.</p>
<p>Based on your question I become to think that you have the manual for your printer. In the good old C-64 days manuals contained some pretty useful data, so it might actually contain the information you are asking &#8220;between the lines&#8221;. Since I don&#8217;t have that printer, nor the manual, I can only guess and give some hints.</p>
<p>First, Commodore printers usually use address 4 or 5. Your printer might have a DIP switch for selecting the address. You may need to change the address in the code, or use the switch so that they match, but there&#8217;s a good chance that this is OK already.</p>
<p>Second, the timings I used for serial communication are based on information contained in my printer&#8217;s manual and web. I believe communication with other printers should work with this code, but I am not sure about it &#8211; maybe there are differences. Moreover, I got it working without implementing every last detail of the communication protocol mentioned in the manual, but another printer models might be more strict about that. You just have to test.</p>
<p>Third, different printers probably have different kinds of modes and commands for activating them. I don&#8217;t know what exactly the ASCII mode means and how it differs from Commodore mode, but I assume that if you use Commodore mode, the printer should work with this code. Since there is a DIP switch for defaulting to Commodore mode after power-on, things should be easy: just make sure that the switch is set to Commodore mode (it probably is), then you should get something printed with the self test function. In case you want to experiment further, you can try to enable the ASCII mode by modifying my code, since you seem to have the information how the mode can be changed from code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Mellema</title>
		<link>http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/comment-page-1/#comment-535</link>
		<dc:creator>Martijn Mellema</dc:creator>
		<pubDate>Fri, 04 Dec 2009 10:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.rantakokko.net/tapani/blog/?p=67#comment-535</guid>
		<description>Hi,

i have a question about the graphics and business charcter set. In my Star NL-10 printer the standaard control codes are: CHR$(145) and business CHR$(17). And it says something about The operating mode 

&quot; your printer has twho basic modes of operation: the Commodore mode and the ASCII mode. Normally you will use the Commodore mode, wich is set automatically whn you turn on the pinter by setting the DIP switch 1-5 on. The ASCII operating mode -- wich has no functional relation to ASCII codes -- provides certain other functions. Operating mode commands:
function
Select ASCII operating mode: CHR$(27);CHR$(93);CHR$(49)
Select Commodore operating mode: CHR$(27);CHR$(93);CHR$(48)

&quot;

Do i have to change anything in the script? and to i have to change the DIP switches?

mail me: i_kill_bombs (AT) hotm ail . co m</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i have a question about the graphics and business charcter set. In my Star NL-10 printer the standaard control codes are: CHR$(145) and business CHR$(17). And it says something about The operating mode </p>
<p>&#8221; your printer has twho basic modes of operation: the Commodore mode and the ASCII mode. Normally you will use the Commodore mode, wich is set automatically whn you turn on the pinter by setting the DIP switch 1-5 on. The ASCII operating mode &#8212; wich has no functional relation to ASCII codes &#8212; provides certain other functions. Operating mode commands:<br />
function<br />
Select ASCII operating mode: CHR$(27);CHR$(93);CHR$(49)<br />
Select Commodore operating mode: CHR$(27);CHR$(93);CHR$(48)</p>
<p>&#8221;</p>
<p>Do i have to change anything in the script? and to i have to change the DIP switches?</p>
<p>mail me: i_kill_bombs (AT) hotm ail . co m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Mellema</title>
		<link>http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/comment-page-1/#comment-534</link>
		<dc:creator>Martijn Mellema</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rantakokko.net/tapani/blog/?p=67#comment-534</guid>
		<description>Hi, i&#039;m using your system to get it working on a Star NL-10 printer.. Thank you for all your information!

With regards,

Martijn (The Netherlands)</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m using your system to get it working on a Star NL-10 printer.. Thank you for all your information!</p>
<p>With regards,</p>
<p>Martijn (The Netherlands)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grearjumdemia</title>
		<link>http://www.rantakokko.net/tapani/blog/2009/06/02/interfacing-old-commodore-64-printers-with-arduino/comment-page-1/#comment-33</link>
		<dc:creator>Grearjumdemia</dc:creator>
		<pubDate>Fri, 05 Jun 2009 17:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rantakokko.net/tapani/blog/?p=67#comment-33</guid>
		<description>Hi, Congratulations to the site owner for this marvelous work you&#039;ve done. It has lots of useful and interesting data.</description>
		<content:encoded><![CDATA[<p>Hi, Congratulations to the site owner for this marvelous work you&#8217;ve done. It has lots of useful and interesting data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
