I am using 5 mail boxes in receive mode with same ID and checking RMP bit to verify whether message is waiting or not for all the 5 mail boxes. My problem is resetting the RMP bit, by writing a 1 to it. I can keep a local copy of RMP.all and clear it with writing all bits. I prefer to clear only the bit which read. How to do that?
I have tried, read RMP.all, ORed with bit (but it is already 1), write back. It resets all the bits corresponds to mailboxes received messages.