Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:rpi [2015/02/14 21:31]
darron [GPIO]
boards:rpi [2021/10/30 09:50] (current)
darron
Line 3: Line 3:
 {{:boards:pibplus.jpg?200|Roys Rolls}} {{:boards:pibplus.jpg?200|Roys Rolls}}
 \\ \\ \\ \\
-{{:boards:rpi2b.jpg?200|Flash proof}}+{{:boards:pi3-idle.jpg?200|Pi3 idle temperature}}
 </wrap> </wrap>
  
Line 14: Line 14:
                 +---P1---+                 +---P1---+
 3V3             01      02 5V 3V3             01      02 5V
-GPIO0/GPIO2     03 A/A+ 04 5V +GPIO0/GPIO2/SDA 03 A/A+ 04 5V 
-GPIO1/GPIO3     05 B/B+ 06 GND +GPIO1/GPIO3/SCL 05 B/B+ 06 GND 
-GPIO4           07      08 GPIO14/TX+GPIO4           07 2    08 GPIO14/TX
 GND             09      10 GPIO15/RX GND             09      10 GPIO15/RX
 GPIO17          11      12 GPIO18 GPIO17          11      12 GPIO18
Line 22: Line 22:
 GPIO22          15      16 GPIO23 GPIO22          15      16 GPIO23
 3V3             17      18 GPIO24 3V3             17      18 GPIO24
-GPIO10          19      20 GND +GPIO10/MOSI     19      20 GND 
-GPIO9           21      22 GPIO25 +GPIO9 /MISO     21      22 GPIO25 
-GPIO11          23      24 GPIO8 +GPIO11/SCLK     23      24 GPIO8/CE0 
-GND             25______26 GPIO7+GND             25______26 GPIO7/CE1
 EEPROM ID_SD    27      28 EEPROM ID_SC EEPROM ID_SD    27      28 EEPROM ID_SC
 GPIO5           29 A+   30 GND GPIO5           29 A+   30 GND
 GPIO6           31 B+   32 GPIO12 GPIO6           31 B+   32 GPIO12
-GPIO13          33      34 GND+GPIO13          33 2    34 GND
 GPIO19          35      36 GPIO16 GPIO19          35      36 GPIO16
 GPIO26          37      38 GPIO20 GPIO26          37      38 GPIO20
Line 38: Line 38:
 Ribbon cables may be used to extend the GPIOs. In this instance a female presentation will be given. Ribbon cables may be used to extend the GPIOs. In this instance a female presentation will be given.
  
-For the older models, a 26-pin ribbon is needed, this is much like an old midi daughter-board cable.+For the older models, a 26-pin ribbon is needed.
 <code> <code>
   _________________________________________   _________________________________________
  /                                        /  /                                        /
------------------------------------------+++----------------------------------------+
 |  7  8 25 0V 24 23 0V 18 15 14 0V 5V 5V | |  7  8 25 0V 24 23 0V 18 15 14 0V 5V 5V |
 |                                        | |                                        |
Line 62: Line 62:
 </code> </code>
 === Pickle Microchip PIC ICSP === === Pickle Microchip PIC ICSP ===
 +<wrap right>
 +{{:boards:pi2wht.jpg?200|My 2nd Pi2}}
 +\\ \\
 +{{:boards:rpi2b.jpg?200|Flash proof}}
 +</wrap>
 +
 +Along with USB serial we can use the RPi GPIOs to program PICMicros using [[projects:pickle|Pickle Microchip PIC ICSP]].
 +
 +Memory mapped I/O can be used to drive the GPIOs, however, the [[projects:gpio-bb|GPIO bit-bang driver for Linux]] may also be utilised on the RPi if preferred.
  
 == High Voltage Programming with Vellman K8048 == == High Voltage Programming with Vellman K8048 ==
  
-[[:boards:rpi:k8048|Velleman K8048 interface]]+The RPi cannot interface directly with 5V PICMicros nor generate the high voltage required for high voltage ICSP and an interface is required for the GPIOs. 
 + 
 +Here is an example for the [[:projects:k8048-rpi|Velleman K8048]]. Of course, this particular device can be interfaced using a USB serial port, however, this would be slower.
  
 == Low Voltage Programming with VPP at 3V3 == == Low Voltage Programming with VPP at 3V3 ==
  
-The following connections refer to the R-PI GPIO header directly. Ensure that power is only ever applied from GPIO 3V3 on PIN 1 and never 5V.+Low voltage ICSP at 3V3 can be performed directly from the RPi GPIOs.
  
-Single common data I/O connection (RPI or GPIO bit-bang driver for R-PI & OpenWRT)+The following connections refer to the R-PI GPIO header. Ensure that power is only ever applied from GPIO 3V3 on PIN 1 and never 5V.
  
 +Single common data I/O connection (RPI or GPIO bit-bang driver)
 <code> <code>
- R-PI                              PICMicro       GPIO header     .k8048 + R-PI                              PICMicro       GPIO header     .pickle 
- ====                              ========       ===========     ======+ ====                              ========       ===========     =======
  
  3V3-------------------------------VDD--+         PIN 1 (P1-01)  3V3-------------------------------VDD--+         PIN 1 (P1-01)
Line 93: Line 105:
 (R2) 10K where appropriate (PGM is not present on all devices). (R2) 10K where appropriate (PGM is not present on all devices).
 (R3..R6) 470R. (R3..R6) 470R.
 +
 +DEVICE=RPI    AUTO-DETECT (modern kernel)
 +DEVICE=RPI0   0 / 0W
 +DEVICE=RPI1   1
 +DEVICE=RPI2   2 / 02W
 +DEVICE=RPI3   3
 +DEVICE=RPI4   4 / 400
 </code> </code>
  
 == Display LVP device identity without PGM == == Display LVP device identity without PGM ==
 +<wrap right>
 +{{:boards:pi0.jpg?200|They do exist}}
 +\\ \\
 +{{:boards:pi0case.jpg?200|Version 1.3}}
 +\\ \\
 +{{:boards:pi0case2.jpg?200|Version 1.2}}
 +</wrap>
 +
 <code> <code>
 p16 lvp id p16 lvp id
Line 130: Line 157:
 Total: 732 Fail: 0 Total: 732 Fail: 0
 </code> </code>
- 
 === Resources === === Resources ===
 [[http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29|RPi GPIO]]\\ [[http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29|RPi GPIO]]\\
 [[https://github.com/voidlinux/documentation/wiki/Raspberry-Pi|Void Linux for Raspberry Pi]]\\ [[https://github.com/voidlinux/documentation/wiki/Raspberry-Pi|Void Linux for Raspberry Pi]]\\
-