{"id":672,"date":"2013-03-28T18:50:53","date_gmt":"2013-03-29T02:50:53","guid":{"rendered":"http:\/\/www.pagetable.com\/?p=672"},"modified":"2013-03-28T18:50:53","modified_gmt":"2013-03-29T02:50:53","slug":"why-is-my-ti-994a-in-black-and-white","status":"publish","type":"post","link":"https:\/\/www.pagetable.com\/?p=672","title":{"rendered":"Why is my TI-99\/4A in Black and White?"},"content":{"rendered":"<p style=\"text-align: left;\" dir=\"ltr\"><em>by James Abbatiello<\/em><\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">My first computer was a Texas Instruments <a href=\"http:\/\/en.wikipedia.org\/wiki\/Texas_Instruments_TI-99\/4A\">TI-99\/4A<\/a>.  Longtime readers may remember a previous article where we implemented <a href=\"http:\/\/www.pagetable.com\/?p=288\">TI-99\/4A BASIC as a Scripting Language<\/a> for modern computers.  Recently I got nostalgic for the actual hardware so I got my 99 out of the closet where it had been for a decade or more.  I hooked it up to the TV and turned it on.  I was expecting to see something like this:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/ti994a_original_unmodified_title_screen.gif\" alt=\"TI-99\/4a title screen\" width=\"272\" height=\"208\" \/><\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">Instead I was greeted by this:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_lcd_before.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_lcd_before_s.jpg\" alt=\"\" width=\"440\" height=\"253\" \/><\/a><\/p>\n<p dir=\"ltr\">Well, that&#8217;s not right!  It is in black and white.  And what&#8217;s with all these vertical black lines?  Clearly something&#8217;s wrong but what could it be?<\/p>\n<h2 dir=\"ltr\">New Meets Old<\/h2>\n<p style=\"text-align: left;\" dir=\"ltr\">At first I suspected that it was my TV, which is a fairly new LCD.  Old computers or game consoles sometimes played a bit fast and loose with the NTSC standard and it seemed unlikely that a new TV would ever have been tested with something as old as a TI-99\/4A.  Perhaps the TV just couldn&#8217;t interpret output from the 99.  So I tried with a CRT TV:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_crt_before.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_crt_before_s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p dir=\"ltr\">Well the black bars are gone (or at least not as apparent) but it is still in black and white.  Something must be wrong with the computer itself.<\/p>\n<h2 dir=\"ltr\">All About Video Signals<\/h2>\n<p dir=\"ltr\">The output from the back of the computer is a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Composite_video\">composite video<\/a> signal but using a 5-pin <a href=\"http:\/\/en.wikipedia.org\/wiki\/DIN_connector\">DIN<\/a> connector (that also carries audio and power) instead of the usual <a href=\"http:\/\/en.wikipedia.org\/wiki\/RCA_connector\">RCA<\/a> jack.  Back when this computer was new that signal would usually to go an <a href=\"http:\/\/en.wikipedia.org\/wiki\/RF_modulator\">RF modulator<\/a> which was then connected to a TV via a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Twin-lead\">300-ohm<\/a> connector.  Nowadays you can still do the same thing but since most TVs don&#8217;t have screw terminals on the back anymore it can be more convenient to take the composite video signal and hook it directly into the composite input on the TV.  All that is required is a simple adapter cable that can be <a href=\"http:\/\/www.stageselect.com\/N174-make-a-composite-video-cable-genesis-ti994a.aspx\">created yourself<\/a> or <a href=\"http:\/\/www.ebay.com\/sch\/i.html?_nkw=ti-99%2F4a+composite\">purchased<\/a> <a href=\"http:\/\/www.iec-usa.com\/cgi-bin\/iec\/fullpic?rhQ4ZpLU;L1133;40\">online<\/a>.<\/p>\n<p dir=\"ltr\">I thought that perhaps the video circuitry was generating separate <a href=\"http:\/\/en.wikipedia.org\/wiki\/Luminance\">Luminance<\/a> (Y) and <a href=\"http:\/\/en.wikipedia.org\/wiki\/Chromanince\">Chrominance<\/a> (C) signals and then combining them into the final composite output.  If this were the case then it would suggest something was wrong in the C amplifier or the final combining stage.  It turns out that this is not the case.  The video chip in the TI-99\/4A is referred to as the Video Display Processor (VDP) and is a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Texas_Instruments_TMS9918\">TMS9918A<\/a>, TMS9928A or TMS9929A depending on the region the computer was originally intended for and the television standard in use there (e.g. <a href=\"http:\/\/en.wikipedia.org\/wiki\/NTSC\">NTSC<\/a> or <a href=\"http:\/\/en.wikipedia.org\/wiki\/PAL\">PAL<\/a>).  My computer was made for the US market and outputs NTSC signals using the TMS9918A.  This chip has a single video output pin that supplies composite video directly with the Y and C already mixed.  So if something was wrong with just the C generation circuitry then it was something broken inside the VDP and my only recourse would be to try to find a replacement chip.<\/p>\n<h2 dir=\"ltr\">Mad Scientist Equipment<\/h2>\n<p style=\"text-align: left;\" dir=\"ltr\">The VDP still seemed to work correctly in all other respects so I was hopeful that the true problem lay elsewhere.  I thought I&#8217;d take a look at the signal on an oscilloscope.  We&#8217;d expect to the see the NTSC <a href=\"http:\/\/en.wikipedia.org\/wiki\/Colorburst\">colorburst<\/a> and if it was missing that would explain why no color was showing up on the TVs.  Here&#8217;s what it looked like:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_before_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_before_1s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">And here&#8217;s a closeup of the interesting portion:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_before_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_before_2s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p dir=\"ltr\">I&#8217;m no expert but that looks like a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Analog_television#Structure_of_a_video_signal\">horizontal sync pulse<\/a> followed by a colorburst to me.  But there was still no color on the TV.<\/p>\n<p dir=\"ltr\">The composite video signal that the VDP generates is sent to a simple 2-transistor amplifier and then to the output jack.  I didn&#8217;t think it was likely but perhaps something in the amplifier had given out and Y was still strong enough to get picked up by the TV but C wasn&#8217;t.  To test this I took the computer apart and tapped the signal right as it came out of the chip and before it went through the amplifier.  It was still black-and-white.  This suggested that the problem was not in the amplifier.<\/p>\n<h2 dir=\"ltr\">The Healing Power of Crystals<\/h2>\n<p style=\"text-align: left;\" dir=\"ltr\">At this point I knew that the VDP was mostly working correctly.  It generated the right pattern on the screen so it must be able to communicate with both the video RAM and the CPU.  That accounts for most of the pins on the VDP, the ones handling digital signals.  The remaining pins are mostly for power and the connection to the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Crystal_oscillator\">quartz crystal<\/a> that provides the timing.  I checked the power and that seemed fine.  So let&#8217;s take a closer look at the crystal:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/crystal_before.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/crystal_before_s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p dir=\"ltr\">The crystal is the gray-colored component in the middle.  To the right is the VDP, covered in thermal paste.  Just behind the crystal is a variable inductor.<\/p>\n<p dir=\"ltr\">A variable inductor: now that&#8217;s interesting!  It is connected to the crystal and apparently used for fine tuning the frequency.  Could the fix be as simple as turning an adjustment screw?<\/p>\n<p dir=\"ltr\">Alas, no.  I turned it as far as it would go in both directions with no improvement to the video output.  If the frequency was off it was beyond the ability of this adjustment to correct.  I don&#8217;t have any equipment to allow precision measuring of the actual frequency this crystal was producing, but I do have the internet.  A little Googling brought me to <a href=\"http:\/\/tech.groups.yahoo.com\/group\/ti99-4a\/message\/67337\">this post<\/a> on the <a href=\"http:\/\/tech.groups.yahoo.com\/group\/ti99-4a\/\">TI-99\/4A mailing list<\/a>.  Yes, there&#8217;s still an active mailing list for a computer that hasn&#8217;t been manufactured in almost 30 years!<\/p>\n<p dir=\"ltr\">That post describes the symptoms that I was experiencing and indicated that the solution was to replace the crystal.  This was somewhat surprising to me.  I&#8217;d heard of electrolytic capacitors going bad in old equipment but a quartz crystal?  They&#8217;re usually quite reliable.  But you can&#8217;t argue with real-world experience.<\/p>\n<p dir=\"ltr\">The VDP takes the frequency of this crystal (10.738635 MHz) and divides it by 3 to produce the NTSC colorburst frequency (3.579545 MHz).  If the frequency of the crystal was off then the generated colorburst would also be off and the TV wouldn&#8217;t be able to sync to it.  Without seeing a valid colorburst the TV isn&#8217;t going to produce any color.  That would certainly explain our symptoms!<\/p>\n<p dir=\"ltr\">So after deciding to replace this crystal we have to actually find a replacement part.  We want a crystal that runs at exactly 10.738635 MHz.  We also need it rated for the proper &#8220;load capacitance&#8221;.  Running a crystal with the wrong capacitance will shift the frequency from the rated frequency.  That would be bad since our entire goal is to get the frequency back to the ideal.  The original crystal was rated for a load capacitance of 32pF (you can just make out the 32 in the above picture although it is partially obscured by the blue wire).  So we want a replacement crystal that&#8217;s also rated for 32pF.<\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">Let&#8217;s go internet shopping for 10.738635 MHz crystals.  <a href=\"http:\/\/www.jameco.com\/\">Jameco<\/a> doesn&#8217;t carry any.  <a href=\"http:\/\/www.digikey.com\/product-search\/en?x=0&amp;y=0&amp;lang=en&amp;site=us&amp;KeyWords=10.738635\">Digikey has some<\/a> but didn&#8217;t have any in stock with a 32pF load capacitance.  Luckily <a href=\"http:\/\/www.mouser.com\/Search\/Refine.aspx?Keyword=10.738635\">Mouser<\/a> came through for me!  A few days later and I had a replacement crystal:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/new_crystal.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/new_crystal_s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">And after a little surgery on the motherboard:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/crystal_after.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/crystal_after_s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p style=\"text-align: left;\" dir=\"ltr\">Now for the moment of truth:<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_lcd_after.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/title_lcd_after_s.jpg\" alt=\"\" width=\"440\" height=\"250\" \/><\/a><\/p>\n<p dir=\"ltr\">Success!  Now to play some <a href=\"http:\/\/en.wikipedia.org\/wiki\/Parsec_%28video_game%29\">Parsec<\/a>!<\/p>\n<h2 dir=\"ltr\">Bonus Oscilloscope Image<\/h2>\n<p style=\"text-align: left;\" dir=\"ltr\">If you&#8217;re wondering what the colorburst looks like with the new crystal then wonder no longer.<a href=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_after_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.pagetable.com\/docs\/ti99_bw\/oscope_after_2s.jpg\" alt=\"\" width=\"440\" height=\"330\" \/><\/a><\/p>\n<p dir=\"ltr\">Looks pretty similar to my eyes but apparently it makes a world of difference to a TV.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>by James Abbatiello My first computer was a Texas Instruments TI-99\/4A. Longtime readers may remember a previous article where we implemented TI-99\/4A BASIC as a Scripting Language for modern computers. Recently I got nostalgic for the actual hardware so I got my 99 out of the closet where it had been for a decade or &#8230; <a title=\"Why is my TI-99\/4A in Black and White?\" class=\"read-more\" href=\"https:\/\/www.pagetable.com\/?p=672\" aria-label=\"Read more about Why is my TI-99\/4A in Black and White?\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-672","post","type-post","status-publish","format-standard","hentry","category-archeology"],"_links":{"self":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=672"}],"version-history":[{"count":0,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/672\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}