Color Computer 1/2/3 Hardware Programming, Chris Lomont, V0.82

Total Page:16

File Type:pdf, Size:1020Kb

Color Computer 1/2/3 Hardware Programming, Chris Lomont, V0.82 Color Computer 1/2/3 Hardware Programming, Chris Lomont, v0.82 Color Computer 1/2/3 Hardware Programming Chris Lomont, Aug 2007, version 0.82 This document collects and details hardware programming information for the TRS-80 Color Computer, versions 1, 2, and 3. Although it has some tutorial information in it, it is designed to be a reference. Many areas also apply to the Color Computer Clones such as the British Dragon 32/64. It is compiled and edited by Chris Lomont, www.lomont.org. Send comments, corrections, and errors to CoCo3 at the above domain. Please don't repost this on the web, but point to this copy, so eventually all information is corrected and integrated. This document is compiled from many sources, listed in the Bibliography. If you feel this infringes any of your copyrighted material, email me with your material, and I will remove or rewrite from scratch the offending sections. Hex numbers start with a $, as in 255=$FF. Addresses like $FFFE (65534) give the decimal in parentheses. 16-bit addresses like $B0F1 are in 6809 CPU address space. On the Color Computer 3, 20-bit addresses like $70FFF are in GIME address space. Also on the Color Computer 3, the Memory Mapping Unit (MMU) maps eight 8K pages from the GIME space into CPU space. Many sections (marked TODO) need a lot more work, which I will do given time. DISCLAIMER: All information provided as is, etc. Use at your own risk. Version History 0.8 June 2006 Initial version and organization of material. 0.81 July 2007 One pass of cleanup and some new material added. 0.82 Aug 2007 Rewrite, reformat, complete overhaul. 1 Color Computer 1/2/3 Hardware Programming, Chris Lomont, v0.82 Table of Contents COLOR COMPUTER 1/2/3 HARDWARE PROGRAMMING .................................................................................1 TABLE OF CONTENTS.................................................................................................................................................2 HARDWARE INTRODUCTION...................................................................................................................................5 6809 CPU NOTES............................................................................................................................................................5 COLOR COMPUTER 1/2 HARDWARE TOPICS (PIA, VDG, SAM)......................................................................7 PIA (PERIPHERAL INTERFACE ADAPTERS).....................................................................................................................7 VDG (VIDEO DISPLAY GENERATOR).............................................................................................................................7 SAM (SYNCHRONOUS ADDRESS MULTIPLEXER)...........................................................................................................8 COLOR COMPUTER 3 HARDWARE TOPICS (GIME) ..........................................................................................9 GIME (GRAPHICS INTERRUPT MEMORY ENHANCEMENT).............................................................................................9 MMU (Memory Management Unit)........................................................................................................................10 Graphics .................................................................................................................................................................10 Palettes ...................................................................................................................................................................10 Interrupts................................................................................................................................................................10 CoCo 1/2 compatibility...........................................................................................................................................10 MEMORY MAPPING ..................................................................................................................................................10 COCO 1/2:....................................................................................................................................................................10 CoCo 2 memory map..............................................................................................................................................10 COCO 3........................................................................................................................................................................11 Simple CoCo 3 Memory Map .................................................................................................................................12 COLORS.........................................................................................................................................................................14 COCO 1/2:....................................................................................................................................................................14 COCO 3:.......................................................................................................................................................................14 GRAPHICS MODES.....................................................................................................................................................15 COCO 1/2.....................................................................................................................................................................15 COCO 3........................................................................................................................................................................18 TEXT MODES...............................................................................................................................................................18 COCO 1/2.....................................................................................................................................................................18 COCO 3........................................................................................................................................................................19 KEYBOARD ..................................................................................................................................................................21 JOYSTICK .....................................................................................................................................................................22 MOUSE...........................................................................................................................................................................23 INTERRUPTS................................................................................................................................................................23 COCO 1/2/3..................................................................................................................................................................23 COCO 3........................................................................................................................................................................24 SOUND ...........................................................................................................................................................................25 CASSETTE STORAGE ................................................................................................................................................25 FILE FORMAT ...............................................................................................................................................................25 HARDWARE..................................................................................................................................................................26 DISK STORAGE ...........................................................................................................................................................28 2 Color Computer 1/2/3 Hardware Programming, Chris Lomont, v0.82 DISK FORMAT ..............................................................................................................................................................28 CONTROLLER ...............................................................................................................................................................30 DUP - MERGE AND REMOVE.........................................................................................................................................33 SERIAL I/O....................................................................................................................................................................35 SOFTWARE ...................................................................................................................................................................35 HARDWARE..................................................................................................................................................................35 CARTRIDGE INFO ......................................................................................................................................................36 BASIC, EXTENDED
Recommended publications
  • A Look at SÉCAM III
    Viewer License Agreement You Must Read This License Agreement Before Proceeding. This Scroll Wrap License is the Equivalent of a Shrink Wrap ⇒ Click License, A Non-Disclosure Agreement that Creates a “Cone of Silence”. By viewing this Document you Permanently Release All Rights that would allow you to restrict the Royalty Free Use by anyone implementing in Hardware, Software and/or other Methods in whole or in part what is Defined and Originates here in this Document. This Agreement particularly Enjoins the viewer from: Filing any Patents (À La Submarine?) on said Technology & Claims and/or the use of any Restrictive Instrument that prevents anyone from using said Technology & Claims Royalty Free and without any Restrictions. This also applies to registering any Trademarks including but not limited to those being marked with “™” that Originate within this Document. Trademarks and Intellectual Property that Originate here belong to the Author of this Document unless otherwise noted. Transferring said Technology and/or Claims defined here without this Agreement to another Entity for the purpose of but not limited to allowing that Entity to circumvent this Agreement is Forbidden and will NOT release the Entity or the Transfer-er from Liability. Failure to Comply with this Agreement is NOT an Option if access to this content is desired. This Document contains Technology & Claims that are a Trade Secret: Proprietary & Confidential and cannot be transferred to another Entity without that Entity agreeing to this “Non-Disclosure Cone of Silence” V.L.A. Wrapper. Combining Other Technology with said Technology and/or Claims by the Viewer is an acknowledgment that [s]he is automatically placing Other Technology under the Licenses listed below making this License Self-Enforcing under an agreement of Confidentiality protected by this Wrapper.
    [Show full text]
  • Amiga Graphics Reference Card 2Nd Edition
    Quick reference information for graphics, video, 2nd Edition desktop publishing, Covers new Amiga animation, and image 3000 graphics processing on the modes, 24-bit color Commodore Amiga hardware, DOS 2.0 personal computer. Reference Card overscan, and PAL. ) COLOR MODELS Additive Color Mixing Subtractive Color Mixing Red-Green-Blue Cube Hue-Saturation-Value Cone Cyan Value White Blue Blue] Axis Yellow Black ~reen Axis When mixi'hgpigments, cyan, yellow, Red When mixing light, red, green, and blue and magenta are primaries. Example: are primaries. Yell ow is formed by To get blue, mix cyan and magenta. Shades of gray are on the long Cyan pigment absorbs red, magenta adding red and green, for example. diagonal between black and white. pigment absorbs green, so the only component of white light that gets re­ The Visible Electromagnetic Spectrum flected is blue. 380 420 470 495 535 575 wavelength (nanometers) 770 Hue: Color; spectral position. Often measured in degrees; red=0°, yellow=60°, magenta=300°, etc. Hue is undefined for shades of gray. (ultraviolet) Purple Violet yellowish Red (infrared) Saturation: Color purity. A highly-saturated color is nearly Blue Orange monochromatic, i.e., contains only one color from the spectrum. White, black, and shades of gray have zero saturation. Value: The darkness of a color. How much black it contain's. DELUXE PAINT Ill KEYBOARD COMMANDS White has a value of one, black has a value of zero. Brush Painting Modes Page and Screen Commands While an animation is playing: ; ana, move brush along fixed axis
    [Show full text]
  • Display Programming Guide
    Serial text [Data] display Programming Guide [ Version 3.4 Firmware ] Issue 7 22 July 2014 This guide applies to the following models: BA488C - Panel mounted, Intrinsically Safe BA484D - Field mounted, Intrinsically Safe BA688C - Panel mounted, Safe Area BA684D - Field mounted, Safe Area Contents Introduction........................................................................................................................................................................1 What’s in this Programming Guide..............................................................................................................................1 What’s in the Instruction Manuals...............................................................................................................................1 What’s in the Modbus Interface Guide.........................................................................................................................1 Other sources of information........................................................................................................................................1 Enhanced Features........................................................................................................................................................2 Instrument Features...........................................................................................................................................................3 Display............................................................................................................................................................................3
    [Show full text]
  • ANSI® Programmer's Reference Manual Line Matrix Series Printers
    ANSI® Programmer’s Reference Manual Line Matrix Series Printers Printronix, LLC makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Printronix, LLC shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material. The information in this manual is subject to change without notice. This document contains proprietary information protected by copyright. No part of this document may be reproduced, copied, translated or incorporated in any other material in any form or by any means, whether manual, graphic, electronic, mechanical or otherwise, without the prior written consent of Printronix, LLC Copyright © 1998, 2012 Printronix, LLC All rights reserved. Trademark Acknowledgements ANSI is a registered trademark of American National Standards Institute, Inc. Centronics is a registered trademark of Genicom Corporation. Dataproducts is a registered trademark of Dataproducts Corporation. Epson is a registered trademark of Seiko Epson Corporation. IBM and Proprinter are registered trademarks and PC-DOS is a trademark of International Business Machines Corporation. MS-DOS is a registered trademark of Microsoft Corporation. Printronix, IGP, PGL, LinePrinter Plus, and PSA are registered trademarks of Printronix, LLC. QMS is a registered
    [Show full text]
  • CP/M-80 Kaypro
    $3.00 June-July 1985 . No. 24 TABLE OF CONTENTS C'ing Into Turbo Pascal ....................................... 4 Soldering: The First Steps. .. 36 Eight Inch Drives On The Kaypro .............................. 38 Kaypro BIOS Patch. .. 40 Alternative Power Supply For The Kaypro . .. 42 48 Lines On A BBI ........ .. 44 Adding An 8" SSSD Drive To A Morrow MD-2 ................... 50 Review: The Ztime-I .......................................... 55 BDOS Vectors (Mucking Around Inside CP1M) ................. 62 The Pascal Runoff 77 Regular Features The S-100 Bus 9 Technical Tips ........... 70 In The Public Domain... .. 13 Culture Corner. .. 76 C'ing Clearly ............ 16 The Xerox 820 Column ... 19 The Slicer Column ........ 24 Future Tense The KayproColumn ..... 33 Tidbits. .. .. 79 Pascal Procedures ........ 57 68000 Vrs. 80X86 .. ... 83 FORTH words 61 MSX In The USA . .. 84 On Your Own ........... 68 The Last Page ............ 88 NEW LOWER PRICES! NOW IN "UNKIT"* FORM TOO! "BIG BOARD II" 4 MHz Z80·A SINGLE BOARD COMPUTER WITH "SASI" HARD·DISK INTERFACE $795 ASSEMBLED & TESTED $545 "UNKIT"* $245 PC BOARD WITH 16 PARTS Jim Ferguson, the designer of the "Big Board" distributed by Digital SIZE: 8.75" X 15.5" Research Computers, has produced a stunning new computer that POWER: +5V @ 3A, +-12V @ 0.1A Cal-Tex Computers has been shipping for a year. Called "Big Board II", it has the following features: • "SASI" Interface for Winchester Disks Our "Big Board II" implements the Host portion of the "Shugart Associates Systems • 4 MHz Z80-A CPU and Peripheral Chips Interface." Adding a Winchester disk drive is no harder than attaching a floppy-disk The new Ferguson computer runs at 4 MHz.
    [Show full text]
  • IARU-R1 VHF Handbook
    IARU-R1 VHF Handbook Vet Vers Version 9.01 March 2021 ion 8.12 IARU-R1 The content of this Handbook is the property of the International Amateur Radio Union, Region 1. Copying and publication of the content, or parts thereof, is allowed for non-commercial purposes provided the source of information is quoted. Contact information Website: http://www.iaru-r1.org/index.php/vhfuhsshf Newsletters: http://www.iaru- r1.org/index.php/documents/Documents/Newsletters/VHF-Newsletters/ Wiki http://iaruwiki.oevsv.at Contest robot http://iaru.oevsv.at/v_upld/prg_list.php VHF Handbook 9.00 1/180 IARU-R1 Oostende, 17 March 2021 Dear YL and OM, The Handbook consists of 5 PARTS who are covering all aspects of the VHF community: • PART 1: IARU-R1 VHF& up Organisation • PART 2: Bandplanning • PART 3: Contesting • PART 4: Technical and operational references • PART 5: archive This handbook is updated with the new VHF contest dates and rules and some typo’s in the rest of the handbook. Those changes are highlighted in yellow. The recommendations made during this Virtual General conference are highlighted in turquoise 73 de Jacques, ON4AVJ Secretary VHF+ committee (C5) IARU-R1 VHF Handbook 9.00 2/180 IARU-R1 CONTENT PART 1: IARU-1 VHF & UP ORGANISATION ORGANISATION 17 Constitution of the IARU Region 1 VHF/UHF/Microwaves Committee 17 In the Constitution: 17 In the Bye-laws: 17 Terms of reference of the IARU Region 1 VHF/UHF/Microwaves Committee 18 Tasks of IARU R-1 and its VHF/UHF/µWave Committee 19 Microwave managers Sub-committee 20 Coordinators of the VHF/UHF/Microwaves Committee 21 VHF Contest Coordinator 21 Satellite coordinator 21 Beacon coordinator 21 Propagations coordinators 21 Records coordinator 21 Repeater coordinator 21 IARU R-1 Executive Committee 21 Actual IARU-R1 VHF/UHF/SHF Chairman, Co-ordinators and co-workers 22 National VHF managers 23 Microwave managers 25 Note.
    [Show full text]
  • Linux Hardware Compatibility HOWTO
    Linux Hardware Compatibility HOWTO Steven Pritchard Southern Illinois Linux Users Group [email protected] 3.1.5 Copyright © 2001−2002 by Steven Pritchard Copyright © 1997−1999 by Patrick Reijnen 2002−03−28 This document attempts to list most of the hardware known to be either supported or unsupported under Linux. Linux Hardware Compatibility HOWTO Table of Contents 1. Introduction.....................................................................................................................................................1 1.1. Notes on binary−only drivers...........................................................................................................1 1.2. Notes on commercial drivers............................................................................................................1 1.3. System architectures.........................................................................................................................1 1.4. Related sources of information.........................................................................................................2 1.5. Known problems with this document...............................................................................................2 1.6. New versions of this document.........................................................................................................2 1.7. Feedback and corrections..................................................................................................................3 1.8. Acknowledgments.............................................................................................................................3
    [Show full text]
  • Fourier Theory & Practice, Part II: Practice
    Fourier Theory & Practice, Part II: Practice Operating the HP 54600 Series Scope with Measurement/Storage Module By: Robert Witte Hewlett-Packard Co. Practice Adding the Measurement/ Storage module to the scope adds additional waveform math capability, including FFT. These functions appear in the softkey menu under the ± (math) key. There are two math functions available, F1 and F2. The FFT function is available on Function F2. Function F2 can use function F1 as an operand, allowing an FFT to be performed on the result of F1. By setting function F1 to Channel 1 - Channel 2, and setting F2 to the FFT of F1, the FFT of a differential measurement can be obtained. The Measure- ment/Storage Module operating manual provides a more detailed discussion of these math functions. The scope can display the time domain waveform and the frequency domain spectrum simultaneously or individually. Normally, the sample points are not connected. For best frequency domain display, the sample points should be connected with lines (vectors). This can be accomplished by turning off all (time domain) channels and turning on only the FFT function. Alternatively, the Vectors On/Off softkey (on the Display menu) can be turned On and the STOP key pressed. Either of these actions allow the frequency domain samples to be connected by vectors which causes the display to appear more like a spectrum analyzer. The vertical axis of the FFT display is logarithmic, displayed in dBV (decibels relative to 1 Volt RMS). dB V = 20 log (VRMS) Thus, a 1 Volt RMS sinewave (2.8 Volts peak-to-peak) will read 0 dBV on the FFT display.
    [Show full text]
  • NTSC Specifications
    NTSC Modulation Standard ━━━━━━━━━━━━━━━━━━━━━━━━ The Impressionistic Era of TV. It©s Never The Same Color! The first analog Color TV system realized which is backward compatible with the existing B & W signal. To combine a Chroma signal with the existing Luma(Y)signal a quadrature sub-carrier Chroma signal is used. On the Cartesian grid the x & y axes are defined with B−Y & R−Y respectively. When transmitted along with the Luma(Y) G−Y signal can be recovered from the B−Y & R−Y signals. Matrixing ━━━━━━━━━ Let: R = Red \ G = Green Each range from 0 to 1. B = Blue / Y = Matrixed B & W Luma sub-channel. U = Matrixed Blue Chroma sub-channel. U #2900FC 249.76° −U #D3FC00 69.76° V = Matrixed Red Chroma sub-channel. V #FF0056 339.76° −V #00FFA9 159.76° W = Matrixed Green Chroma sub-channel. W #1BFA00 113.52° −W #DF00FA 293.52° HSV HSV Enhanced channels: Hue Hue I = Matrixed Skin Chroma sub-channel. I #FC6600 24.29° −I #0096FC 204.29° Q = Matrixed Purple Chroma sub-channel. Q #8900FE 272.36° −Q #75FE00 92.36° We have: Y = 0.299 × R + 0.587 × G + 0.114 × B B − Y = −0.299 × R − 0.587 × G + 0.886 × B R − Y = 0.701 × R − 0.587 × G − 0.114 × B G − Y = −0.299 × R + 0.413 × G − 0.114 × B = −0.194208 × (B − Y) −0.509370 × (R − Y) (−0.1942078377, −0.5093696834) Encode: If: U[x] = 0.492111 × ( B − Y ) × 0° ┐ Quadrature (0.4921110411) V[y] = 0.877283 × ( R − Y ) × 90° ┘ Sub-Carrier (0.8772832199) Then: W = 1.424415 × ( G − Y ) @ 235.796° Chroma Vector = √ U² + V² Chroma Hue θ = aTan2(V,U) [Radians] If θ < 0 then add 2π.[360°] Decode: SyncDet U: B − Y = -┼- @ 0.000° ÷ 0.492111 V: R − Y = -┼- @ 90.000° ÷ 0.877283 W: G − Y = -┼- @ 235.796° ÷ 1.424415 (1.4244145537, 235.79647610°) or G − Y = −0.394642 × (B − Y) − 0.580622 × (R − Y) (−0.3946423068, −0.5806217020) These scaling factors are for the quadrature Chroma signal before the 0.492111 & 0.877283 unscaling factors are applied to the B−Y & R−Y axes respectively.
    [Show full text]
  • AD725 Data Sheet
    Low Cost RGB to NTSC/PAL Encoder a with Luma Trap Port AD725 FEATURES PRODUCT DESCRIPTION Composite Video Output: Both NTSC and PAL The AD725 is a very low cost general purpose RGB to NTSC/ Chrominance and Luminance (S-Video) Outputs PAL encoder that converts red, green and blue color compo- Luma Trap Port to Eliminate Cross Color Artifacts nent signals into their corresponding luminance (baseband TTL Logic Levels amplitude) and chrominance (subcarrier amplitude and phase) Integrated Delay Line and Auto-Tuned Filters signals in accordance with either NTSC or PAL standards. Drives 75 V Reverse-Terminated Loads These two outputs are also combined on-chip to provide a Low Power +5 V Operation composite video output. All three outputs are available sepa- Power-Down to <1 mA rately at voltages of twice the standard signal levels as re- Very Low Cost quired for driving 75 Ω, reverse-terminated cables. APPLICATIONS The AD725 features a luminance trap (YTRAP) pin that pro- RGB/VGA to NTSC/PAL Encoding vides a means of reducing cross color generated by subcarrier Personal Computers/Network Computers frequency components found in the luminance signal. For por- Video Games table or other power-sensitive applications, the device can be Video Conference Cameras powered down to less than 1 µA of current consumption. All Digital Still Cameras logic levels are TTL compatible thus supporting the logic re- quirements of 3 V CMOS systems. The AD725 is packaged in a low cost 16-lead SOIC and oper- ates from a +5 V supply. FUNCTIONAL BLOCK DIAGRAM NTSC/PAL HSYNC SYNC CSYNC XNOR VSYNC CSYNC SEPARATOR BURST 4FSC NTSC/PAL 4FSC CLOCK FSC 90؇C ؎180؇C FSC 90؇C/270؇C 4FSC QUADRATURE (PAL ONLY) +4 FSC 0؇C DECODER CLOCK CSYNC AT 8FSC 3-POLE SAMPLED- 2-POLE DC Y LUMINANCE RED LP PRE- DATA LP POST- X2 CLAMP OUTPUT FILTER DELAY LINE FILTER LUMINANCE TRAP U NTSC/PAL X2 COMPOSITE RGB-TO-YUV 4-POLE U ⌺ OUTPUT GREEN DC ENCODING LPF CLAMP CLAMP MATRIX BALANCED 4-POLE CHROMINANCE X2 MODULATORS LPF OUTPUT DC V 4-POLE V BLUE CLAMP LPF CLAMP BURST REV.
    [Show full text]
  • Tandy's Little Wonder the Color Computer 1979-1991
    Tandy's Little Wonder The Color Computer 1979-1991 A complete history and reference guide to the CoCo and all related hardware, software, and support sources. by F.G. Swygert SECOND EDITION - UPDATED FEB 2006 Tandy's Little Wonder page 1 INSIDE FRONT COVER If printing to bind, print only page 1 (front cover) on card stock or heavy colored paper. page 2 Tandy's Little Wonder Tandy's Little Wonder the Color Computer: 1980-1991 (and still going strong into the next century!) Second Edition written & edited by F.G. Swygert The Original Tandy Color Computer First Edition Copyright 1993, Second Edition Copyright 2006 by F.G. Swygert. All rights reserved. Published by FARNA Systems 147 Tom Moore Road, Leesville, SC 29070 e-mail: [email protected] Tandy's Little Wonder page 3 Tandy's Little Wonder the Color Computer SPECIAL ACKNOWLEDGEMENTS: The following individuals have made contributions directly or indirectly to the content of this book : Frances Calcraft Lee Duell Thomas Fann Art Flexser Marty Goodman Frank Hogg Alan Huffman Don Hutchison Carmen Izzi Jr. M. David Johnson Bob Kemper Mark Marlette (Cloud-9) Nicholas Marentes Dave Myers Bob Montowski Alfredo Santos Kelly Thompson Jordan Tsvetkoff Rick Ulland Brian Wright Glenside Color Computer Club Mid-Iowa & Country CoCo Club Banner for the 15th "Last" CoCoFest annually hosted by Glenside Color Computer Club -- true stalwarts of the CoCo Community! This edition is dedicated to all those who continue to collect, use, and enjoy the Tandy Color Computer. All brand/trade names copyright their respective owners. No part of this publication may be reproduced or quoted without written permission from the publisher.
    [Show full text]
  • Commodore - 64 „ Word Processors AJIR
    $2.50 NO. 64 SEPTEMBER 1983 International Edition $3.00 /Acim a g in g . Computer Knowledge x Design your own !\ V educational software Elementary students use Logo Establish an effective computer curriculum in your school system Turtle Graphics for the VIC-20 and C64 More Than in the Valley I Look a\ a Personal Computer See page 28 See page 60 See page 37 Atari Painting Program Wraps Up A Product Catalog for the Atari and Apple Text Compression and Encryption Will Remember (If you . ■* . ,r *■> . *•,*- fCS&p Imagine a system that would record all MAGIC MEMORY4 is built for th&axr^V; the wonderous, valuable information puter rookie Everyone can relate to -/ you have assimilated onto a single tiny MAGIC MEMORY* becauseitsfofrft is^ r disk. (No more scattered bits of paper, familiar. It looks like an address book ''1 business cards, etc.) Imagine the same but its not. Its more. Like the address system giving you a typed sheet you book MAGIC MEMORY" presents an could put into a notebook or print out A thru Z index tabulation on the right for a party and instantly change, or add edge of the video display The user to, at a moments notice. Imagine cross- simply selects a tab and the book is referencing to suit both your business opened to the proper page(s). A second needs and personal desires so that all set of tabs are available that can be your data was organized into one little labeled by the user (i e companies one black book! On top of all this — imagine deals with, birthdays, lists, wines, having fun putting it together.
    [Show full text]