This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Changing direction of P9 (Infineon C509L)

I'm trying to change direction of P9.0.
I use the same instructions I previously used for P6 whith full success:

 	IP1 |= 0x80;
	DIR9 = 0xFE; 
but I'm not able to write a 1 on P9.0

When I take a look on the disassembly window, I see that after the ORL command the compiler as replaced the DIR9 register by P9. Is it right ?

  ORL      IP1(0xB9),#P0(0x80)
  MOV      P9(0xF9),#0xFF