What is wrong about port control?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 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?

0 Likes
2 Replies
Anonymous
Not applicable

 Sorry Z is miss typing

0 Likes
Anonymous
Not applicable
0 Likes