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