Download Innovative Experiments using Phoenix

Transcript
measure_frequency
PROTOTYPE
integer measure_frequency(void)
DESCRIPTION
Measure the frequency of the square waveform at the CNTR
input. Returns the frequency in Hz. The function is very accurate
for values up to 100KHz.
EXAMPLE
f = p.measure_frequency()
adc_freq
PROTOTYPE
integer adc_freq(integer chan)
DESCRIPTION
Measure the time period of a signal applied on one of the ADC
channels. Returns period in microseconds.
pulse_out
PROTOTYPE
integer pulse_out(integer delay_us)
DESCRIPTION
Send one pulse out on digital output pin D3 with high time
equal to delay_us
EXAMPLE
p.pulse_out(1000) # generate 1ms pulse
104