Datasheet

Interrupts
Peripheral function interrupts: 101 sources
External interrupts: 9 (NMI and IRQ0 to IRQ7 pins)
Non-maskable interrupts: 3 (the NMI pin, oscillation stop detection
interrupt, and voltage-monitoring interrupt)
16 levels specifiable for the order of priority
I/O ports Programmable
I/O ports
I/O port pins for devices in the 112-pin LQFP/100-pin LQFP/80-pin
LQFP/64-pin LQFP
I/O: 61/55/44/37
Input only: 21/21/13/9
Open-drain outputs: 2/2/2/2 (I2C bus interface pins)
Large-current outputs: 12/12/6/6(0) (MTU3 and GPT pins)
The 5-V version of the 64-pin product does not have large-current
outputs.
Reading out the states of pins is always possible.