Skip to main content

Posts

Showing posts from April, 2013

Control Unit (CodevisionAVR)

#include <mega8515.h> //8MHz CB1 final 29 April without pulse strecher #include<stdio.h>                         #include<delay.h> // Declare your global variables here         char  a ;             bit dlag , ulag ;         char  str [ 16 ] ;            int  dly = 0 ;            void  blink ( ) ;      void  blink2 ( ) ;      void  main ( void ) { DDRB = 0xFF ; DDRC = 0x80 ; PORTC = 0x00 ; ACSR = 0x80 ;           while   ( 1 )        {             a = PINC ;            a ^= 0x70 ;            ...