Professional Documents
Culture Documents
PROGRAM UAS3
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.7==1)
PORTB=0x55;
if (PINC.6==1)
PORTB=0xaa;
}
}
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.3==1)
PORTB=0x7f;
if (PINC.2==1)
PORTB=0xfe;
}
}
PROGRAM UAS2
PROGRAM UAS4
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.5==1)
PORTB=0xc0;
if (PINC.4==1)
PORTB=0x03;
}
}
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.1==1)
PORTB=0x8f;
if (PINC.0==1)
PORTB=0xf1;
}
}
PROGRAM UAS5
PROGRAM UAS7
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.7==1)
PORTB=0x77;
if (PINC.6==1)
PORTB=0x88;
}
}
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.3==1)
PORTB=0x0e;
if (PINC.2==1)
PORTB=0x70;
}
}
PROGRAM UAS6
PROGRAM UAS8
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
void main(void)
{
// Port B initialization for LED
PORTB=0x00;
DDRB=0xFF;
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.5==1)
PORTB=0x99;
if (PINC.4==1)
PORTB=0x66;
}
}
while (1)
{
// Place your code here
PORTB=0x00;
if(PINC.1==1)
PORTB=0xd2;
if (PINC.0==1)
PORTB=0x46;
}
}
PROGRAM UAS1
PROGRAM UAS3
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.7==1)
PORTC=0x55;
if (PINB.6==1)
PORTC=0xaa;
}
}
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.3==1)
PORTC=0x7f;
if (PINB.2==1)
PORTC=0xfe;
}
}
PROGRAM UAS2
PROGRAM UAS4
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.5==1)
PORTC=0xc0;
if (PINB.4==1)
PORTC=0x03;
}
}
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.1==1)
PORTC=0x8f;
if (PINB.0==1)
PORTC=0xf1;
}
}
PROGRAM UAS5
PROGRAM UAS7
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.7==1)
PORTC=0x77;
if (PINB.6==1)
PORTC=0x88;
}
}
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.3==1)
PORTC=0x0e;
if (PINB.2==1)
PORTC=0x70;
}
}
PROGRAM UAS6
PROGRAM UAS8
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
void main(void)
{
// Port B initialization for SWITCH
PORTB=0xff;
DDRB=0x00;
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.5==1)
PORTC=0x99;
if (PINB.4==1)
PORTC=0x66;
}
}
while (1)
{
// Place your code here
PORTC=0x00;
if(PINB.1==1)
PORTC=0xd2;
if (PINB.0==1)
PORTC=0x46;
}
}