Getting Started

(lily) #1

Chapter 9 – Digital Meets Analog – ADC and DAC


Figure 35: Sine Wave Figure 36: Square Wave..............................................


Figure 37: Triangle Wave Figure 38: Sawtooth Wave


Your skills as a C programmer should be to the point where you can read and
oject without further comment. So I’ll just
it.


// Demonstrator.h Function Generator / Digital Oscilloscope version


void
void
void


id startWave(int);
id startSine(void);
void startSquare(void);
void
void


void DigitalOscilloscopeTimerInit(void);


;
id set_OCR0A(unsigned char count);

void ADC_init(void);
int ADC_read(void);


understand all the software for this pr
give you the listing and let you have at


initializer(void);
parseInput(char *);
showMessage(char);

int parse_ctc(char *);
void set_ctc(int);


vo
vo


startSawtooth(void);
startTriangle(void);

void MilliSec_init(unsigned char count)
vo

Free download pdf