|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
19 unsigned int ta =
CNT;
33 int myCog =
dac_start(mem, 44100, &p4dac, &p3dac);
41 int myOtherCog =
dac_start(newmem, 44100, &p5dac, &p6dac);
64 for(i = 0; i < 256; i++)
int dac_start(dacmem mem, int sampleRate, dac *da0, dac *da1)
Start D/A converter in new cog that sets voltages on either one or two pins.
dac dac_setup(int pin, int channel, int bits)
Configure an I/O pin to set a voltage with digital to analog (D/A) conversion.
#define CLKFREQ
Returns the current clock frequency.
This file provides convenience functions for digital to analog conversion using using counter modules...
void dac_close(dac *da)
Clear a D/A converter that's running in the same cog and reclaim the I/O pin and counter module for o...
#define CNT
The system clock count.
void dac_set(dac *da, int value)
Set the D/A converter's output.