Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi,how are you I hope you doing well, about ddrb=0xff its out putIs this what you want ddrb=0xff; that makes it all inputs
Hi,how are you Ijust need help how to make at90s2313 give me small example make it workout thank you very much for replySorry forget the above its 1 for output
Hi, why this work in the simulation I stuck here spcial thank for youBut i think i figured it out you have this will not work ddrb=0xff;
void main() {
ddrd=0x00;
portd=0x0e;
Portb=0;
ddrb=0xff;
while (1)
{
if (pind.b1==1 && pind.b2==1&& pind.b3==0&&pind.b6==0)
Portb=0b00001011;
else
Portb=0;
if(pind.b1==1 && pind.b2==0&& pind.b3==0&&pind.b6==0)
portb=0b00000011;
else
portb=0;
if(pind.b1==1&&pind.b2==0 && pind.b3==1&&pind.b6==0)
portb=0b00000010;
else
portb=0;
if (pind.b1==1 && pind.b2==1&&pind.b3==1&&pind.b6==0)
portb=0b00000100;
else
portb=0;
if(pind.b6==1&&pind.b2==1&&pind.b3==0&&pind.b1==0)
portb=0b00011001;
else
portb=0;
if(pind.b6==1&&pind.b2==0&&pind.b3==0&&pind.b1==0)
portb=0b00010001;
else
portb=0;
if(pind.b6==1&&pind.b2==0&&pind.b3==1&&pind.b1==0)
portb=0b00010000;
else
portb=0;
if (pind.b6==1&&pind.b3==1&&pind.b2==1&&pind.b1==0)
portb=0b00010000;
else
portb=0;
}
}
I use this in smulation proteus 7 isis professional and work but when ai bring it to circut board not work out I thing I do not no all about the chip at90s2313 how it set up run thank you for your patentThis code is not going to send anything serial out
What did you use for simulationCode:void main() { ddrd=0x00; portd=0x0e; Portb=0; ddrb=0xff; while (1) { if (pind.b1==1 && pind.b2==1&& pind.b3==0&&pind.b6==0) Portb=0b00001011; else Portb=0; if(pind.b1==1 && pind.b2==0&& pind.b3==0&&pind.b6==0) portb=0b00000011; else portb=0; if(pind.b1==1&&pind.b2==0 && pind.b3==1&&pind.b6==0) portb=0b00000010; else portb=0; if (pind.b1==1 && pind.b2==1&&pind.b3==1&&pind.b6==0) portb=0b00000100; else portb=0; if(pind.b6==1&&pind.b2==1&&pind.b3==0&&pind.b1==0) portb=0b00011001; else portb=0; if(pind.b6==1&&pind.b2==0&&pind.b3==0&&pind.b1==0) portb=0b00010001; else portb=0; if(pind.b6==1&&pind.b2==0&&pind.b3==1&&pind.b1==0) portb=0b00010000; else portb=0; if (pind.b6==1&&pind.b3==1&&pind.b2==1&&pind.b1==0) portb=0b00010000; else portb=0; } }
sorry thank you for patience suffering without compiling with me ,so I am very happy with all of you here again special thanks for youI use this in smulation proteus 7 isis professional and work but when ai bring it to circut board not work out I thing I do not no all about the chip at90s2313 how it set up run thank you for your patent