libpruio  0.6.6
Fast and easy Digital/Analog Input/Output for Beaglebones
pwm_cap.py File Reference

Example: PWM output and CAP input. More...

Go to the source code of this file.

Functions

def pwm_cap.pwm_cap (stdscr)
 The main function.
 

Detailed Description

Example: PWM output and CAP input.

This file contains an example on how to measure the frequency and duty cycle of a pulse train with a eCAP module input. The program sets another pin as eHRPWM output to generate a pulse width modulated signal as source for the measurement. The output can be changed by some keys, the frequency and duty cycle of the input is shown continuously in the terminal output. Find a functional description in section pwm_cap.

Licence: GPLv3, Copyright 2017-2019 by Thomas{ doT ]Freiherr[ At ]gmx[ DoT }net

Run by: python pwm_cap.py

Since
0.6.0

Definition in file pwm_cap.py.