English
Language : 

M0518 Datasheet, PDF (41/72 Pages) List of Unclassifed Manufacturers – 36/68 Kbytes flash, 8K bytes SRAM
NuMicro M0518 Series Datasheet
6.5 General Purpose I/O (GPIO)
6.5.1 Overview
The NuMicro M0518 series has up to 56 General Purpose I/O pins to be shared with other
function pins depending on the chip configuration. These 56 pins are arranged in 6 ports named
as GPIOA, GPIOB, GPIOC, GPIOD, GPIOE and GPIOF. The GPIOA/B port has the maximum of
16 pins. The GPIOC port has the maximum of 12 pins. The GPIOD port has the maximum of 4
pins. The GPIOE port has the maximum of 1 pin. The GPIOF port has the maximum of 7 pins.
Each of the 56 pins is independent and has the corresponding register bits to control the pin
mode function and data.
The I/O type of each of I/O pins can be configured by software individually as input, output, open-
drain or Quasi-bidirectional mode. After reset, the I/O mode of all pins are depending on
Config0[10] setting. In Quasi-bidirectional mode, I/O pin has a very weak individual pull-up
resistor which is about 110~300 K for VDD from 5.0 V to 2.5 V.
6.5.2 Features
 Four I/O modes:
- Quasi-bidirectional
- Push-Pull output
- Open-Drain output
- Input only with high impendence
 TTL/Schmitt trigger input selectable by GPx_TYPE[15:0] in GPx_MFP[31:16]
 I/O pin configured as interrupt source with edge/level setting
 Configurable default I/O mode of all pins after reset by Config0[10] setting
- If Config[10] is 0, all GPIO pins in input tri-state mode after chip reset
- If Config[10] is 1, all GPIO pins in Quasi-bidirectional mode after chip reset
 I/O pin internal pull-up resistor enabled only in Quasi-bidirectional I/O mode
 Enabling the pin interrupt function will also enable the pin wake-up function
Feb 08, 2017
Page 41 of 72
Revision 1.01