<?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: PIC RGB Video &#8211; Technical Details</title>
	<atom:link href="http://mightyohm.com/blog/2008/09/pic-rgb-video-technical-details/feed/" rel="self" type="application/rss+xml" />
	<link>http://mightyohm.com/blog/2008/09/pic-rgb-video-technical-details/</link>
	<description>Join the resistance.</description>
	<lastBuildDate>Mon, 14 May 2012 23:30:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jeff</title>
		<link>http://mightyohm.com/blog/2008/09/pic-rgb-video-technical-details/comment-page-1/#comment-6786</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 20 Sep 2010 07:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://mightyohm.com/blog/?p=235#comment-6786</guid>
		<description>Russel,

The code I wrote is very simple - I am only displaying a few large &quot;pixels&quot; per line (maybe 7 or 8, I&#039;d have to look back at the code).

I can&#039;t remember what the limit for my program was, but it wasn&#039;t very good because I didn&#039;t optimize the code very much.  It was not very impressive, maybe a dozen pixels at most.

The ~300 pixel limit you refer to is based on clock speeds alone and is not easily achievable because many clock cycles are wasted with housekeeping tasks.  Simple things like pointer or loop counter increments eat up precious cycles.  Take a look at the code and start counting cycles - you&#039;ll see what I mean (and maybe come up with some improvements!)

I don&#039;t think C is well suited for generating video because of the timing requirements.  You could write the higher level functions in C and then write an interrupt handler in assembly that actually toggles the IO lines.  This is what is done on some more sophisticated projects - take a look at the Fuzebox.  It uses an AVR but you might get some ideas for the PIC.</description>
		<content:encoded><![CDATA[<p>Russel,</p>
<p>The code I wrote is very simple &#8211; I am only displaying a few large &#8220;pixels&#8221; per line (maybe 7 or 8, I&#8217;d have to look back at the code).</p>
<p>I can&#8217;t remember what the limit for my program was, but it wasn&#8217;t very good because I didn&#8217;t optimize the code very much.  It was not very impressive, maybe a dozen pixels at most.</p>
<p>The ~300 pixel limit you refer to is based on clock speeds alone and is not easily achievable because many clock cycles are wasted with housekeeping tasks.  Simple things like pointer or loop counter increments eat up precious cycles.  Take a look at the code and start counting cycles &#8211; you&#8217;ll see what I mean (and maybe come up with some improvements!)</p>
<p>I don&#8217;t think C is well suited for generating video because of the timing requirements.  You could write the higher level functions in C and then write an interrupt handler in assembly that actually toggles the IO lines.  This is what is done on some more sophisticated projects &#8211; take a look at the Fuzebox.  It uses an AVR but you might get some ideas for the PIC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russel</title>
		<link>http://mightyohm.com/blog/2008/09/pic-rgb-video-technical-details/comment-page-1/#comment-6767</link>
		<dc:creator>russel</dc:creator>
		<pubDate>Sat, 18 Sep 2010 22:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://mightyohm.com/blog/?p=235#comment-6767</guid>
		<description>awesome project!

What kind of resolution can you get with this?    For example if the total time of a horizontal line  (of 262) is 62.us,  how fast can you change the output?  

I suppose in theory with a 20Mhz clock (.2us/inst), the pic could change the dac 325 times during the 62us... or with a 64mhz clock you could have 900 transitions.  Obviously though, there is no way your eye could see &quot;pixels&quot; like this, so what in practice can be the resolution?

Also, if you did run the pic at 64mhz, could the code be done in &#039;c&#039;?</description>
		<content:encoded><![CDATA[<p>awesome project!</p>
<p>What kind of resolution can you get with this?    For example if the total time of a horizontal line  (of 262) is 62.us,  how fast can you change the output?  </p>
<p>I suppose in theory with a 20Mhz clock (.2us/inst), the pic could change the dac 325 times during the 62us&#8230; or with a 64mhz clock you could have 900 transitions.  Obviously though, there is no way your eye could see &#8220;pixels&#8221; like this, so what in practice can be the resolution?</p>
<p>Also, if you did run the pic at 64mhz, could the code be done in &#8216;c&#8217;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

