How can I use ports IRQ0-A and IRQ0-B properly?

Question:

How can I use ports IRQ0-A and IRQ0-B properly?

Answer:

Either of A terminal( IRQn-A) and B terminal (IRQn-B) assigned at same port IRQ0 ~ 11can be used as an external interupt pin. The terminal unselected as an external interuput can be used as general I/O port. Please set up the port function control register B(PFCRB) and port function control register .( see the chapter of I/O port in the hardware manual).