EESchema Schematic File Version 2 date Thu 28 Mar 2013 01:04:26 AM EDT LIBS:power LIBS:device LIBS:transistors LIBS:conn LIBS:linear LIBS:regul LIBS:74xx LIBS:cmos4000 LIBS:adc-dac LIBS:memory LIBS:xilinx LIBS:special LIBS:microcontrollers LIBS:dsp LIBS:microchip LIBS:analog_switches LIBS:motorola LIBS:texas LIBS:intel LIBS:audio LIBS:interface LIBS:digital-audio LIBS:philips LIBS:display LIBS:cypress LIBS:siliconi LIBS:opto LIBS:atmel LIBS:contrib LIBS:valves EELAYER 25 0 EELAYER END $Descr A4 11700 8267 encoding utf-8 Sheet 1 1 Title "" Date "28 mar 2013" Rev "" Comp "" Comment1 "" Comment2 "" Comment3 "" Comment4 "" $EndDescr Text Notes 8700 3950 0 60 ~ 0 -Sets the phase\n-Sets the intensity Text Notes 10300 3500 2 60 ~ 0 Frame Text Notes 9600 3700 2 60 ~ 0 Colorburst @ 3.58 MHz Text Notes 8400 3800 2 60 ~ 0 Sync Tip Text Notes 9600 3150 2 100 ~ 20 The Colorburst Wire Wire Line 10250 3350 9850 3350 Wire Wire Line 9850 3350 9850 3450 Wire Wire Line 9850 3450 9450 3450 Wire Wire Line 9450 3450 9450 3550 Wire Wire Line 9450 3550 9400 3550 Wire Wire Line 9400 3550 9400 3350 Wire Wire Line 9400 3350 9350 3350 Wire Wire Line 9350 3350 9350 3550 Wire Wire Line 9350 3550 9300 3550 Wire Wire Line 9300 3550 9300 3350 Wire Wire Line 9300 3350 9250 3350 Wire Wire Line 9250 3350 9250 3550 Wire Wire Line 9250 3550 9200 3550 Wire Wire Line 9200 3550 9200 3350 Wire Wire Line 9200 3350 9150 3350 Wire Wire Line 9150 3350 9150 3550 Wire Wire Line 9100 3550 9150 3550 Wire Wire Line 9100 3550 9100 3350 Wire Wire Line 9100 3350 9050 3350 Wire Wire Line 9050 3350 9050 3550 Wire Wire Line 9050 3550 9000 3550 Wire Wire Line 9000 3550 9000 3350 Wire Wire Line 9000 3350 8950 3350 Wire Wire Line 8950 3350 8950 3550 Wire Wire Line 8950 3550 8900 3550 Wire Wire Line 8900 3550 8900 3350 Wire Wire Line 8900 3350 8850 3350 Wire Wire Line 8850 3350 8850 3550 Wire Wire Line 8850 3550 8800 3550 Wire Wire Line 8800 3550 8800 3350 Wire Wire Line 8800 3350 8750 3350 Wire Wire Line 8750 3350 8750 3550 Wire Wire Line 8750 3550 8700 3550 Wire Wire Line 8700 3550 8700 3350 Wire Wire Line 8700 3350 8650 3350 Wire Wire Line 8650 3350 8650 3450 Wire Wire Line 8650 3450 8450 3450 Wire Wire Line 8450 3450 8450 3650 Wire Wire Line 8450 3650 8150 3650 Wire Wire Line 8150 3650 8150 3450 Wire Wire Line 8150 3450 7900 3450 Wire Bus Line 6600 5750 6600 6500 Wire Bus Line 5300 5750 5300 6500 Connection ~ 5550 5850 Wire Wire Line 5150 5850 7000 5850 Wire Notes Line 6300 2450 6600 2450 Wire Notes Line 6300 2900 6600 2900 Wire Wire Line 6250 2200 6250 2300 Wire Wire Line 5050 1800 5600 1800 Wire Wire Line 5050 1550 5600 1550 Wire Wire Line 6100 1550 6100 1800 Wire Wire Line 6300 1650 6100 1650 Connection ~ 6100 1650 Connection ~ 2550 6500 Wire Wire Line 2750 6500 2550 6500 Wire Wire Line 2550 6400 2550 6650 Wire Wire Line 1500 6400 2050 6400 Wire Notes Line 1050 3650 3000 3650 Wire Notes Line 3200 2900 3500 2900 Wire Notes Line 3200 3050 3500 3050 Wire Notes Line 1750 3200 1600 3200 Wire Notes Line 1600 3200 1600 3050 Wire Notes Line 1100 3150 1100 3000 Wire Notes Line 1300 2700 1300 2950 Connection ~ 1750 2900 Wire Wire Line 1750 2950 1750 2600 Connection ~ 2950 1950 Connection ~ 2950 1900 Wire Wire Line 2950 1950 2950 1900 Connection ~ 2850 1950 Connection ~ 2850 1900 Wire Wire Line 2850 1950 2850 1900 Connection ~ 2750 1950 Connection ~ 2750 1900 Wire Wire Line 2750 1950 2750 1900 Connection ~ 2650 1950 Connection ~ 2650 1900 Wire Wire Line 2650 1950 2650 1900 Connection ~ 2550 1950 Connection ~ 2550 1900 Wire Wire Line 2550 1950 2550 1900 Connection ~ 2450 1950 Connection ~ 2450 1900 Wire Wire Line 2450 1950 2450 1900 Connection ~ 2350 1950 Connection ~ 2350 1900 Wire Wire Line 2350 1950 2350 1900 Connection ~ 2250 1950 Connection ~ 2250 1900 Wire Wire Line 2250 1950 2250 1900 Connection ~ 2200 1950 Connection ~ 3000 1950 Wire Wire Line 2200 1950 3000 1950 Wire Wire Line 3000 1850 3000 2000 Wire Wire Line 1950 2000 1950 1850 Wire Wire Line 5050 4350 5050 4450 Wire Bus Line 1700 1600 3000 1600 Wire Bus Line 1700 1500 3000 1500 Wire Bus Line 1700 1400 3000 1400 Wire Bus Line 1700 1300 3000 1300 Wire Bus Line 1700 1200 3000 1200 Wire Bus Line 1700 1100 3000 1100 Wire Bus Line 1700 1050 3000 1050 Wire Bus Line 3000 1150 1700 1150 Wire Bus Line 3000 1250 1700 1250 Wire Bus Line 3000 1350 1700 1350 Wire Bus Line 3000 1450 1700 1450 Wire Bus Line 1700 1550 3000 1550 Wire Wire Line 1700 1100 3000 1050 Wire Wire Line 1700 1050 3000 1600 Wire Wire Line 1700 1450 3000 1400 Wire Wire Line 1700 1500 3000 1450 Wire Wire Line 1700 1600 3000 1550 Wire Wire Line 1700 1550 3000 1500 Wire Wire Line 1700 1200 3000 1150 Wire Wire Line 1700 1250 3000 1200 Wire Wire Line 1700 1150 3000 1100 Wire Wire Line 1700 1300 3000 1250 Wire Wire Line 1700 1350 3000 1300 Wire Wire Line 1700 1400 3000 1350 Wire Wire Line 5050 4100 5050 4150 Wire Wire Line 6050 4250 6100 4250 Wire Wire Line 2200 1850 2200 2000 Wire Wire Line 1950 1900 2000 1900 Connection ~ 1950 1900 Wire Wire Line 2000 1900 2000 1950 Wire Wire Line 2000 1950 2050 1950 Wire Wire Line 2050 1950 2050 1900 Wire Wire Line 2050 1900 2100 1900 Wire Wire Line 2100 1900 2100 1950 Wire Wire Line 2100 1950 2150 1950 Wire Wire Line 2150 1950 2150 1900 Connection ~ 2200 1900 Wire Wire Line 2150 1900 3000 1900 Connection ~ 3000 1900 Wire Wire Line 2300 1900 2300 1950 Connection ~ 2300 1950 Connection ~ 2300 1900 Wire Wire Line 2400 1900 2400 1950 Connection ~ 2400 1950 Connection ~ 2400 1900 Wire Wire Line 2500 1900 2500 1950 Connection ~ 2500 1950 Connection ~ 2500 1900 Wire Wire Line 2600 1900 2600 1950 Connection ~ 2600 1950 Connection ~ 2600 1900 Wire Wire Line 2700 1900 2700 1950 Connection ~ 2700 1950 Connection ~ 2700 1900 Wire Wire Line 2800 1900 2800 1950 Connection ~ 2800 1950 Connection ~ 2800 1900 Wire Wire Line 2900 1900 2900 1950 Connection ~ 2900 1950 Connection ~ 2900 1900 Wire Wire Line 1050 2950 1150 2950 Wire Wire Line 1150 2950 1150 3050 Wire Wire Line 1150 3050 1450 3050 Wire Wire Line 1450 3050 1450 2950 Wire Wire Line 1450 2950 1750 2950 Wire Wire Line 1750 2600 2450 2600 Wire Wire Line 1750 2900 2500 2900 Wire Wire Line 2500 2900 2500 2800 Wire Wire Line 2500 2800 2600 2800 Wire Wire Line 2600 2800 2600 2700 Wire Wire Line 2600 2700 2700 2700 Wire Wire Line 2700 2700 2700 2600 Wire Wire Line 2700 2600 2850 2600 Wire Wire Line 2850 2600 2850 2900 Wire Wire Line 2850 2900 2900 2900 Wire Wire Line 2900 2900 2900 2950 Wire Wire Line 2900 2950 3000 2950 Wire Wire Line 3000 2950 3000 3050 Wire Wire Line 3000 3050 3100 3050 Wire Wire Line 1600 2900 1550 2900 Wire Wire Line 1600 2900 1600 3000 Wire Wire Line 1600 3000 1550 3000 Wire Wire Line 1550 3000 1550 2900 Wire Notes Line 1750 3300 1500 3300 Wire Notes Line 1500 3300 1500 3000 Wire Notes Line 1700 3000 1700 3100 Wire Notes Line 1700 3100 1750 3100 Wire Notes Line 3200 2950 3500 2950 Wire Notes Line 3200 2600 3500 2600 Wire Notes Line 1050 3400 1050 3900 Wire Notes Line 3000 3400 3000 3950 Wire Wire Line 1500 6650 2050 6650 Wire Wire Line 6150 1150 6150 1100 Wire Wire Line 6250 1700 6250 1650 Connection ~ 6250 1650 Wire Notes Line 6300 2700 6350 2700 Wire Notes Line 6350 2700 6350 2850 Wire Notes Line 6350 2850 6300 2850 Wire Notes Line 6350 2750 6600 2750 Wire Wire Line 5550 5850 5550 5550 Wire Wire Line 5150 6350 5550 6350 Wire Wire Line 5550 6350 5550 6100 Wire Wire Line 5550 6100 5700 6100 Wire Wire Line 5700 6100 5700 6350 Wire Wire Line 5700 6350 5850 6350 Wire Wire Line 5850 6350 5850 6100 Wire Wire Line 5850 6100 6150 6100 Wire Wire Line 6150 6100 6150 6350 Wire Wire Line 6150 6350 6300 6350 Wire Wire Line 6300 6350 6300 6100 Wire Wire Line 6300 6100 6450 6100 Wire Wire Line 6450 6100 6450 6350 Wire Wire Line 6450 6350 7000 6350 Wire Bus Line 6000 5750 6000 6500 Wire Wire Line 5550 5550 7000 5550 Text Notes 10100 2200 2 100 ~ 20 One Signal, Three Values? Text Notes 8300 1700 0 60 ~ 0 Actually it's YUV or YIQ\nBut that's too complicated for this. Text Notes 8350 1350 0 60 ~ 0 Hue = Think color of the rainbow)\nSaturation = How grey the color is\nValue = Brightness Text Notes 9550 1200 2 60 ~ 0 Not RGB, but HSV (Sort of) Text Notes 9650 950 2 100 ~ 20 What about Color? Text Notes 6650 7100 2 100 ~ 20 Great for Text (Demo)\n(But not color) Text Notes 6450 6600 0 60 ~ 0 Black\nBlanking Text Notes 6100 6600 2 60 ~ 0 White Text Notes 5350 6600 2 60 ~ 0 Sync Text Notes 6350 5750 2 60 ~ 0 UNDRIVEN Text Notes 6050 5350 2 100 ~ 20 SPI Basics Text Notes 5450 4600 0 60 ~ 0 5V (Driven High)\n0V (Driven Low)\n- (Undriven) Text Notes 6100 3800 2 100 ~ 20 AVR Ports Text Notes 6900 2950 2 60 ~ 0 White Text Notes 6950 2750 2 60 ~ 0 Black\nBlanking Text Notes 6850 2500 2 60 ~ 0 Sync Text Notes 5250 2500 0 60 ~ 0 N1 0 N2 0 = -38.6\nN1 0 N2 - = -38.6\nN1 0 N2 5 = -34.5\nN1 - N2 0 = -3.50\nN1 - N2 - = 3.33\nN1 - N2 5 = 107.\nN1 5 N2 0 = 635.\nN1 5 N2 - = 639.\nN1 5 N2 5 = 639.\n $Comp L R R4 U 1 1 5153CA38 P 6250 1950 F 0 "R4" V 6330 1950 50 0000 C CNN F 1 "66" V 6250 1950 50 0000 C CNN 1 6250 1950 1 0 0 -1 $EndComp $Comp L R R3 U 1 1 5153CA2E P 6150 1400 F 0 "R3" V 6230 1400 50 0000 C CNN F 1 "1k" V 6150 1400 50 0000 C CNN 1 6150 1400 1 0 0 -1 $EndComp $Comp L +5V #PWR? U 1 1 5153CA1C P 6150 1100 F 0 "#PWR?" H 6150 1190 20 0001 C CNN F 1 "+5V" H 6150 1190 30 0000 C CNN 1 6150 1100 1 0 0 -1 $EndComp $Comp L GND #PWR? U 1 1 5153CA10 P 6250 2300 F 0 "#PWR?" H 6250 2300 30 0001 C CNN F 1 "GND" H 6250 2230 30 0001 C CNN 1 6250 2300 1 0 0 -1 $EndComp Text Notes 6450 900 2 100 ~ 20 A Better Network $Comp L R R5 U 1 1 5153C9C9 P 5850 1550 F 0 "R5" V 5930 1550 50 0000 C CNN F 1 "1" V 5850 1550 50 0000 C CNN 1 5850 1550 0 1 1 0 $EndComp $Comp L R R6 U 1 1 5153C9C8 P 5850 1800 F 0 "R6" V 5930 1800 50 0000 C CNN F 1 "330" V 5850 1800 50 0000 C CNN 1 5850 1800 0 1 1 0 $EndComp Text GLabel 5050 1550 0 60 Input ~ 0 V1 Text GLabel 5050 1800 0 60 Input ~ 0 V2 Text GLabel 6300 1650 2 60 Input ~ 0 VOut Text Notes 2800 5850 2 100 ~ 20 Resistor Dividers Text Notes 2650 4350 2 100 ~ 20 Frame (cont'd) Text Notes 2850 950 2 100 ~ 20 NTSC Frame Text Notes 8350 2550 0 60 ~ 0 Hue = Phase of chroma signal Text Notes 1500 6900 0 60 ~ 0 V1=0V, V2=0V -> VOut=0V\nV1=5V, V2=0V->VOut=3.3V\nV1=0V, V2=5V->VOut=1.6V\nV1=5V, V2=5V -> VOut=5V Text GLabel 2750 6500 2 60 Input ~ 0 VOut Text GLabel 1500 6650 0 60 Input ~ 0 V2 Text GLabel 1500 6400 0 60 Input ~ 0 V1 $Comp L R R2 U 1 1 5153C2F0 P 2300 6650 F 0 "R2" V 2380 6650 50 0000 C CNN F 1 "200" V 2300 6650 50 0000 C CNN 1 2300 6650 0 1 1 0 $EndComp $Comp L R R1 U 1 1 5153C2DB P 2300 6400 F 0 "R1" V 2380 6400 50 0000 C CNN F 1 "100" V 2300 6400 50 0000 C CNN 1 2300 6400 0 1 1 0 $EndComp Text Notes 1200 6050 0 60 ~ 0 We're digital (0, 5V) How do we get analog? Text Notes 8350 2650 0 60 ~ 0 Saturation = Intensity of chroma signal Text Notes 8350 2450 0 60 ~ 0 Value = Voltage on line. Text Notes 1400 4550 0 60 ~ 0 242 lines per frame (at 59.97Hz)\n20 lines worth of HSync Text Notes 1200 4950 0 60 ~ 0 480P? Interlacing! We're not covering it. Text Notes 1350 3800 0 60 ~ 0 One Line of Video (63.55 us) Text Notes 3600 2600 0 60 ~ 0 100 IRE White Text Notes 3600 2900 0 60 ~ 0 7.5 IRE Black Text Notes 3650 3000 0 60 ~ 0 0 IRE Blanking Text Notes 3550 3100 0 60 ~ 0 -40 IRE Sync Text Notes 550 3300 0 60 ~ 0 Front Porch (1.5us) Text Notes 1800 3150 0 60 ~ 0 Back Porch (1.6us)\nColorburst (2.5us)\nBreezeway (.6us)\n Text Notes 950 2650 0 60 ~ 0 Sync Pulse 4.7us Text Notes 1800 2800 0 60 ~ 0 Picture Data Text Notes 3100 2450 2 100 ~ 20 A Specific Line Text Notes 2750 1800 2 60 ~ 0 Lines Text Notes 2250 1800 2 60 ~ 0 H Sync Text GLabel 6100 4250 2 60 Input ~ 0 AVR I/O Port $Comp L GND #PWR? U 1 1 5153BD4A P 5050 4450 F 0 "#PWR?" H 5050 4450 30 0001 C CNN F 1 "GND" H 5050 4380 30 0001 C CNN 1 5050 4450 1 0 0 -1 $EndComp $Comp L +5V #PWR? U 1 1 5153BD3B P 5050 4100 F 0 "#PWR?" H 5050 4190 20 0001 C CNN F 1 "+5V" H 5050 4190 30 0000 C CNN 1 5050 4100 1 0 0 -1 $EndComp $Comp L SWITCH_INV_MSM SW? U 1 1 5153BD1C P 5550 4250 F 0 "SW?" H 5351 4400 50 0000 C CNN F 1 "3-State" H 5401 4101 50 0000 C CNN 1 5550 4250 -1 0 0 1 $EndComp Text GLabel 5100 5550 0 60 Input ~ 0 AVR MISO Text GLabel 5100 6150 0 60 Input ~ 0 AVR MOSI $EndSCHEMATC