#include<htc.h>
#define a RC0
#define b RC1
#define c RC2
#define d RC3
void delay(int s);
void delay(int s)
{
while(s--);
}
void main()
{
int i;
TRISC=0x00;
while(1)
{
delay(6000);
delay(6000);
PORTC=0x06;
delay(6000);
delay(6000);
delay(6000);
PORTC=0x03;
delay(6000);
delay(6000);
delay(6000);
PORTC=0x09;
delay(6000);
delay(6000);
PORTC=0x0c;
delay(6000);
}
}
#define a RC0
#define b RC1
#define c RC2
#define d RC3
void delay(int s);
void delay(int s)
{
while(s--);
}
void main()
{
int i;
TRISC=0x00;
while(1)
{
delay(6000);
delay(6000);
PORTC=0x06;
delay(6000);
delay(6000);
delay(6000);
PORTC=0x03;
delay(6000);
delay(6000);
delay(6000);
PORTC=0x09;
delay(6000);
delay(6000);
PORTC=0x0c;
delay(6000);
}
}
No comments:
Post a Comment