URXIFG1 and PxIN help

Can you explain URXIFG1? Does it mean “if it is set URXIFG1 to 1, receive interrupt will wait till it is set to 0 again”? Can you give me an example?

My second question is; since we can’t write PxIN, how do we set PxIN (Or is it possible)? Does P1DIR=0x30 also means P1IN=0xCF?

I hope you undestand what i mean…

Have you read the appropriate User’s Guide?

Leon

In response to your second question, PxIN is fundamentally an input so you can’t write to it. It will tell you which pins on that port are currently high, either as a result of your outputs to PxOUT or from external inputs to the device.

Every port has PxDIR to set the input or output direction of the port, PxOUT to set the the port high or low(voltage wise), and PxIN to read the status of the input pins on the port(defined by PxDIR).