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