Differences

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

Link to this comparison view

Next revision
Previous revision
raspberry:wiring_gpio_clock [2020/02/15 20:51]
admin created
raspberry:wiring_gpio_clock [2020/03/05 17:30] (current)
admin [Clock over GPIO]
Line 1: Line 1:
-===== Clock over GPIO =====+===== Clock around the GPIOs =====
  
-One can use the GPIOs of the Raspberry Pi to generate a clock signal.\\+No need for an external crystal, one can use the GPIOs of the Raspberry Pi to generate a clock signal. The library wiring makes it easy and accessible.\\ 
 +\\ 
 +[[http://wiringpi.com/|Wiring]] for the Raspberry Pi was written by Gordon Henderson.\\
  
-=== Install Wiring ===+==== Install Wiring ====
 In the terminal: In the terminal:
    $ sudo apt-get install wiringpi    $ sudo apt-get install wiringpi
Line 15: Line 17:
 ==== Clock the Pin ==== ==== Clock the Pin ====
  
-The clock frequency is derived from the 19.2MHz. One can use GPIO 4 (pin7), GPIO 5 and GPIO 6.\\+The clock frequency is derived from the 19.2MHz Raspberry Pi clock. One can use GPIO 4 (pin7), GPIO 5 and GPIO 6.\\
 2.4Mhz would be 2400000\\ 2.4Mhz would be 2400000\\
  
Line 22: Line 24:
    $ gpio clock 7 2400000    $ gpio clock 7 2400000
  
-Or in C.+Or in C:\\
    pinMode (pin, GPIO_CLOCK) ;    pinMode (pin, GPIO_CLOCK) ;
    gpioClockSet (pin, frequency) ;    gpioClockSet (pin, frequency) ;
Line 41: Line 43:
 ==== Links ==== ==== Links ====
  
 +[[http://wiringpi.com/]]\\
 [[https://www.raspberrypi.org/forums/viewtopic.php?t=22274]]\\ [[https://www.raspberrypi.org/forums/viewtopic.php?t=22274]]\\
- 
  
 ---- ----