Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4930

AT90S2313 code not working

$
0
0
Hi,how are you .Ihave problem with at90s2313 not work out on circuit board and in the simulation work can
you guide me this is the code:

Code (C):
  1. void main() {
  2. ddrd=0x00;
  3.   portd=0x0e;
  4.  
  5.  
  6.   Portb=0;
  7.   ddrb=0xff;
  8.   while (1)
  9.   {
  10.   if (pind.b0==1 && pind.b1==1&& pind.b2==0&&pind.b3==0&& pind.B4==0)
  11.   Portb=0b00001011;
  12.   else
  13.   Portb=0;
  14.   if(pind.b0==1  && pind.b1==0&& pind.b2==0&&pind.b3==0&&pind.b4==0)
  15.   portb=0b00000011;
  16.   else
  17.   portb=0;
  18.   if(pind.b0==1&&pind.b1==0 &&...
AT90S2313 code not working

Viewing all articles
Browse latest Browse all 4930