Hello =)
As I read LCP23XX 's user manual, I am failing to understand how it is possible that one GPIO register doesn't occupy the same memory address as another.
For example: memory address for PORT4 Direction Control Register (FIO4DIR) is 0x3FFFC080. As the port has 32 bit size, it seems to me that the register should occupy the memory addresses from 0x3FFFC080 to 0x3FFFC080 + 31 = 0x3FFFC09F.
Now, for example, looking at the memory address of the respective masking register FIO4MASK, you see that it's 0x3FFFC090, which simultaneously corresponds to the 17th bit of FIO4DIR.
I would apreciate it if someone could be kind enough to cast some light on my confused head. Thanks.
