Professional Documents
Culture Documents
h>
__PROG_CONFIG(1,0x3FE4);
__PROG_CONFIG(2,0x1EFF);
unsigned char a;
unsigned long b;
unsigned char c;
unsigned long d;
void main(void)
init_uC();
PORTD=0;
while (1)
PORTB = a;
if(a==0x80)break;
PORTB=0;
if(c!=0x10)
PORTD = c;
if(c==0x40)break;
}
for (c=0x40; c>= 0x04; c>>=1)
if(c!=0x10)
PORTD = c;
if(c==0x04)break;
PORTD=0;
PORTB = a;
if(a==0x20)break;
TRISB = 0x00;
TRISD = 0x00;