8 Bit ADU 1V Signal get result every 1ms by timer0  Ver 1.0
kner 2016
Functions
start.cpp File Reference

Hauptprogramm (Arduino Style) More...

#include <Arduino.h>
#include "_debug.h"

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
 ISR (ADC_vect)
 

Detailed Description

Hauptprogramm (Arduino Style)

8 Bit ADU 1V Signal get result every 1ms by timer0

Author
kner 2016
Date
29.01.16
Version
1.0

Aufgabenstellung

ADU Timer0 startet jede 1ms eine Konversion (Arduino liefert automatisch jede ms einen Überlauf von Timer0) das Ergebnis der Wandlung wird auf Port B als 8 Bit Wert geschrieben

Achtung! Es müssen die most significant bits geschrieben werden!

Definition in file start.cpp.

Function Documentation

ISR ( ADC_vect  )

output of result

Definition at line 51 of file start.cpp.

void loop ( )

do nothing

Definition at line 44 of file start.cpp.

void setup ( )

ADC initialization ADC Clock frequency: 1000 kHz ADC Auto Trigger Source: Timer0 Overflow Only the 8 most significant bits of the AD conversion result are used

Definition at line 28 of file start.cpp.