There are 4 registers - 2 Data registers, and 2 Control registers.
== Data Registers A and B==
Data direction can be configured in the corresponding control register. Depending on the direction, the data bits are inputs or outputs with following meaning: