1 Introduction
2 ------------
3
4 The VGAPIC32 project provides software and circuit information to generate an
5 analogue VGA signal from a PIC32 microcontroller.
6
7 Contact, Copyright and Licence Information
8 ------------------------------------------
9
10 The author can be contacted at the following e-mail address:
11
12 paul@boddie.org.uk
13
14 Copyright and licence information can be found in the docs directory - see
15 docs/COPYING.txt and docs/gpl-3.0.txt for more information.
16
17
18
19 Hardware Details
20 ================
21
22 The pin usage of this solution is documented below.
23
24 PIC32MX270F256B-50I/SP Pin Assignments
25 --------------------------------------
26
27 MCLR# 1 \/ 28
28 HSYNC/OC1/RA0 2 27
29 VSYNC/OC2/RA1 3 26 RB15
30 D0/RB0 4 25 RB14
31 D1/RB1 5 24 RB13
32 D2/RB2 6 23
33 D3/RB3 7 22 RB11/PGEC2
34 8 21 RB10/PGEC3
35 RA2 9 20
36 RA3 10 19
37 D4/RB4 11 18 RB9
38 12 17 RB8
39 13 16 RB7/D7
40 D5/RB5 14 15
41
42 Note that RB6 is not available on pin 15 on this device.
43
44 Data Signal Routing
45 -------------------
46
47 For one bit of intensity, two bits per colour channel:
48
49 D7 -> 2200R -> I
50
51 I -> diode -> R
52 I -> diode -> G
53 I -> diode -> B
54
55 D6 (not connected)
56
57 D5 -> 470R -> R
58 D4 -> 1000R -> R
59 D3 -> 470R -> G
60 D2 -> 1000R -> G
61 D1 -> 470R -> B
62 D0 -> 1000R -> B
63
64 HSYNC -> HS
65 VSYNC -> VS
66
67 Output Socket Pinout
68 --------------------
69
70 5 (GND) 4 (NC) 3 (B) 2 (G) 1 (R)
71
72 10 (GND) 9 (NC) 8 (GND) 7 (GND) 6 (GND)
73
74 15 (NC) 14 (VS) 13 (HS) 12 (NC) 11 (NC)
75
76 Output Cable Pinout
77 -------------------
78
79 1 (R) 2 (G) 3 (B) 4 (NC) 5 (GND)
80
81 6 (GND) 7 (GND) 8 (GND) 9 (NC) 10 (GND)
82
83 11 (NC) 12 (NC) 13 (HS) 14 (VS) 15 (NC)
84
85 References
86 ----------
87
88 https://en.wikipedia.org/wiki/VGA_connector
89
90 http://papilio.cc/index.php?n=Papilio.VGAWing
91
92 http://lucidscience.com/pro-vga%20video%20generator-2.aspx
93
94 https://sites.google.com/site/h2obsession/CBM/C128/rgbi-to-vga