POMOCE program1i


#define CHIP_6713 1
#include "konfigcfg.h"
#include
#include
#include
#include
#define DELAY_TIME 100000

void main()
{
unsigned char przel[4]={0,0,0,0},diody[4]; //zmienne lokalne
unsigned char ii;
unsigned int standipow;
unsigned int czas;

CSL_init();
DSK6713_init();
DSK6713_LED_init();
DSK6713_DIP_init();


ii=0;
while (1) {
if (ii==0) {
DSK6713_LED_on(0);
DSK6713_LED_off(1);
DSK6713_LED_off(2);
DSK6713_LED_off(3);
ii++;
}
else if (ii==1){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_off(2);
DSK6713_LED_off(3);
ii++;
}
else if (ii==2){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_on(2);
DSK6713_LED_off(3);
ii++;
}
else if (ii==3){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_on(2);
DSK6713_LED_on(3);
ii++;
}
else if (ii==4){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_on(2);
DSK6713_LED_on(3);
ii++;
}
else if (ii==5){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_on(2);
DSK6713_LED_off(3);
ii++;
}
else if (ii==6){
DSK6713_LED_on(0);
DSK6713_LED_on(1);
DSK6713_LED_off(2);
DSK6713_LED_off(3);
ii++;
}
else if (ii==7) {
DSK6713_LED_on(0);
DSK6713_LED_off(1);
DSK6713_LED_off(2);
DSK6713_LED_off(3);
ii=0;
}
standipow=DSK6713_DIP_get(0)+DSK6713_DIP_get(1)*2+DSK6713_DIP_get(2)*4+DSK6713_DIP_get(3)*8;
czas=standipow*DELAY_TIME;
if (czas==0) { czas=100000;}
DSK6713_waitusec(czas);
}
}

Wyszukiwarka

Podobne podstrony:
zestawy cwiczen przygotowane na podstawie programu Mistrz Klawia 6
Międzynarodowy Program Badań nad Zachowaniami Samobójczymi
CSharp Introduction to C# Programming for the Microsoft NET Platform (Prerelease)
Instrukcja Programowania Zelio Logic 2 wersja polska
Program wykładu Fizyka II 14 15
roprm ćwiczenie 6 PROGRAMOWANIE ROBOTA Z UWZGLĘDNIENIEM ANALIZY OBRAZU ARLANG
io port programming 3ogqzy3bscrrpgv753q3uywjfexgwwoiiffd46a 3ogqzy3bscrrpgv753q3uywjfexgwwoiiffd46a
2009 12 Metaprogramowanie algorytmy wykonywane w czasie kompilacji [Programowanie C C ]
Podstawy Programowania Wersja Rozszerzona
koło Programy Goofy
PROGRAMY
programator do Amigi
1 02 Korzystanie z zalet zintegrowanego ¶rodowiska programi

więcej podobnych podstron