ADU no interrupt  Ver.1.0.
kner 2016
Macros | Functions
start.cpp File Reference

Hauptprogramm (Arduino Style) More...

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

Go to the source code of this file.

Macros

#define CLK   PORTB1
 
#define DATA   PORTB2
 
#define TRIGGER   PINB0
 
#define ADCINPUT   4
 
#define DATA_LOW   PORTB &= ~_BV(DATA);
 
#define DATA_HIGH   PORTB |= _BV(DATA);
 
#define CLK_LOW   PORTB &= ~_BV(CLK);
 
#define CLK_HIGH   PORTB |= _BV(CLK);
 

Functions

void setup ()
 
void onePulse ()
 
void zeroPulse ()
 
void serialout (uint16_t dat)
 
void loop ()
 

Detailed Description

Hauptprogramm (Arduino Style)

ADU no Interrupt (ATMEGA 328p 16Mhz)

Author
kner 2016
Date
29.01.16
Version
1.0

Problem

Falling edge on PB0 reads ADC value on ADC4 and pulses it out on PB1/PB2.

Pulse 1: 10 11 10 Pulse 0: 00 01 00

Definition in file start.cpp.