Produces high frequency clock signals up to 66MHz on the Beaglebone Black's PRU
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
device-tree
Makefile
Readme.md
clock.c
clock.hp
clock.p

Readme.md

BBB PRU Clock program

Creates a clock signal using the PRU on the Beaglebone black. By toggling the status of a digital GPIO pin, a consistent clock signal can be made.

The program uses PRU0 and pin P8.12. This can be changed by editing the device tree overlay in device-tree/ and the clock.c #define.

Installation

The following will compile all the code for the PRU and main cpu:

make

Compile the device tree overlay and enable it:

cd device-tree
make enable

Running

./clock