Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Programming coding in c language
#include<reg51.h>
sbitsw=P1^0;
unsigned char i=0;
void main()
{
unsigned char a[6];
a[0]=0x86;
a[1]=0x0DB;
a[2]=0x0CF;
a[3]=0x0E6;
a[4]=0x0ED;
a[5]=0x0FD;
sw=1;
while(1)
{
if(sw==0)
{
for(i=0;i<=5;i++)
{
P2=a[i];
}
}
}
}
Testing result:
ï· Output of IC7805 should be 5 volt we get it.
ï· Port 2 is interfaced with the seven segment we get at both pins
are shorts circuited found.
ï·