CommonPIC32

examples/vga/README.txt

31:f98e73f2ccc0
2018-10-21 Paul Boddie Added the documentation from the VGAPIC32 project.
     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/U1TX
    36        D0/RB0  4      25 RB14
    37        D1/RB1  5      24 RB13/U1RX
    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 (it is needed for VBUS
    49 unlike the MX170 variant).
    50 
    51 UART Connections
    52 ----------------
    53 
    54 UART1 is exposed by the RB13 and RB15 pins.
    55 
    56 Data Signal Routing
    57 -------------------
    58 
    59 For one bit of intensity, two bits per colour channel:
    60 
    61 D7 -> 2200R -> I
    62 
    63 I -> diode -> R
    64 I -> diode -> G
    65 I -> diode -> B
    66 
    67 D6 (not connected)
    68 
    69 D5 -> 470R -> R
    70 D4 -> 1000R -> R
    71 D3 -> 470R -> G
    72 D2 -> 1000R -> G
    73 D1 -> 470R -> B
    74 D0 -> 1000R -> B
    75 
    76 HSYNC -> HS
    77 VSYNC -> VS
    78 
    79 Output Socket Pinout
    80 --------------------
    81 
    82   5 (GND)  4 (NC)   3 (B)    2 (G)    1 (R)
    83 
    84       10 (GND) 9 (NC)   8 (GND)  7 (GND)  6 (GND)
    85 
    86   15 (NC)  14 (VS)  13 (HS)  12 (NC)  11 (NC)
    87 
    88 Output Cable Pinout
    89 -------------------
    90 
    91       1 (R)    2 (G)    3 (B)    4 (NC)   5 (GND)
    92 
    93   6 (GND)  7 (GND)  8 (GND)  9 (NC)   10 (GND)
    94 
    95       11 (NC)  12 (NC)  13 (HS)  14 (VS)  15 (NC)
    96 
    97 References
    98 ----------
    99 
   100 https://en.wikipedia.org/wiki/VGA_connector
   101 
   102 http://papilio.cc/index.php?n=Papilio.VGAWing
   103 
   104 http://lucidscience.com/pro-vga%20video%20generator-2.aspx
   105 
   106 https://sites.google.com/site/h2obsession/CBM/C128/rgbi-to-vga