2 Replies Latest reply on Apr 24, 2013 12:34 AM by nikhil.naik

    What is wrong about port control?

    lee.carter

       Hi

         

      I use fx2lp 56pin and slave fifo mode. 

         

      I have to make control like this. But it's not work way

         

      TD_Init()

         

      {

         

      ...

         

      PORTACFG |=0x80;

         

      ...

         

      OEA=0x01;

         

      IOA=0x00;  //for led on

         

      }

         

      TD_Poll()

         

      {

         

      OEA=0x01;

         

      IOA=0x00;

         

       

         

      If(IOA & 0x02)

         

      IOA=0x01;

         

      Z

         

       

         

       

         

       

         

       

         

      What is

         

       

         

       

         

      What is wrong?