tools:
1- pic microcontroller .
2- 7447 IC.
3- Anode seven segment .
to details how connect 7447 IC with seven segment and values of(A,B,C,D)
7447 IC with seven segment .
circuit using protues simulation .
Code using mikroc
void main()
{
TRISA = 0; // assign porta as output
while(1)
{
PORTA = 0;
delay_ms(250);
PORTA = 0X1; // to understand these number look to link above
delay_ms(150);
PORTA = 0X2; //to understand these number look to link above
delay_ms(150);
PORTA = 0X3; // to understand these number look to link above
delay_ms(150);
PORTA = 0X4; // to understand these number look to link above
delay_ms(150);
PORTA = 0X5;// to understand these number look to link above
delay_ms(150);
PORTA = 0X6;// to understand these number look to link above
delay_ms(150);
PORTA = 0X7; // to understand these number look to link above
delay_ms(150);
PORTA = 0X8; //to understand these number look to link above
delay_ms(150);
PORTA = 0X9;// to understand these number look to link above
delay_ms(150);
PORTA = 0X10; // to understand these number look to link above
delay_ms(150);
PORTA = 0X11; // to understand these number look to link above
delay_ms(150);
PORTA = 0X12; //to understand these number look to link above
delay_ms(150);
PORTA = 0X13; //to understand these number look to link above
delay_ms(150);
PORTA = 0X14; // to understand these number look to link above
delay_ms(150);
PORTA = 0X15; //to understand these number look to link above
delay_ms(150);
}
}
{
TRISA = 0; // assign porta as output
while(1)
{
PORTA = 0;
delay_ms(250);
PORTA = 0X1; // to understand these number look to link above
delay_ms(150);
PORTA = 0X2; //to understand these number look to link above
delay_ms(150);
PORTA = 0X3; // to understand these number look to link above
delay_ms(150);
PORTA = 0X4; // to understand these number look to link above
delay_ms(150);
PORTA = 0X5;// to understand these number look to link above
delay_ms(150);
PORTA = 0X6;// to understand these number look to link above
delay_ms(150);
PORTA = 0X7; // to understand these number look to link above
delay_ms(150);
PORTA = 0X8; //to understand these number look to link above
delay_ms(150);
PORTA = 0X9;// to understand these number look to link above
delay_ms(150);
PORTA = 0X10; // to understand these number look to link above
delay_ms(150);
PORTA = 0X11; // to understand these number look to link above
delay_ms(150);
PORTA = 0X12; //to understand these number look to link above
delay_ms(150);
PORTA = 0X13; //to understand these number look to link above
delay_ms(150);
PORTA = 0X14; // to understand these number look to link above
delay_ms(150);
PORTA = 0X15; //to understand these number look to link above
delay_ms(150);
}
}
No comments:
Post a Comment