Hello,
I would like to use PT0 and PT1 for IIC communication. To do this, I have changed the routing register MODRR0.
Are any further settings required to route PT0 and PT1 to the IIC module?
Hi,
To route PT0 and PT1 to the IIC module, just set the appropriate bits in MODRR0. For PT0 and PT1, this usually means MODRR0 =0x10;
You don't need to do anything else, just make sure that no other higher priority peripherals are enabled on the pins (if any).
MODRR0 is a write-once register in normal mode, so make sure that there are no double writes to this register, as it is not recognizable in debug mode (write anytime in debug mode).
Best regards,
Ladislav