The IOC allows software to configure
the pins based on the requirements of the application. The software can configure
different characteristic settings for any or all of the I/O pins. All of the
following features, are controlled in the IOC:IOCn registers:
- Drive
Strength(IOC:IOCFGn.IOSTR)
- Configures the output
drive strength of an I/O pin.
- Drive Current(IOC.IOCFGn[11:10] IOCURR)
- Configures the maximum
current of an I/O pin. See the device specific data sheet for individual
I/O current capability.
- Pull
Control(IOC:IOCn.PULLCTL)
- Configures a weak pull on
an I/O pin. The following can be set: pull-up, pull-down, or no pull.
See the data sheet for specific pull-up and pull-down current.
- Slew Control (IOC:IOCn.SLEWRED)
- Sets normal or reduced slew rate on an I/O pin.
- Hysteresis
(IOC:IOCFGn.HYSTEN)
- Enables or disables input
hysteresis on an I/O pin.
- Open-Source or Open-Drain Configuration (IOC:IOCn.IOMODE)
- Configures the pin as normal, open source, or open drain; all of these
can be set to either inverted or normal (non-inverted).
- Edge Detection (IOC:IOCn.EDGEDET)
- Enables edge detection on I/O pin. The following modes are supported:
- Rising edge
- Falling edge
- Trigger on both rising and falling
- No edge detection
- Edge detection can be
used for event generation on the AON event fabric and/or a wake from
standby signal to PMCTL
- Wake from Shutdown
(IOC:IOCn.WUCFGSD)
- Enables wake-up from
shutdown. The following modes are supported:
- Wake on low,
wake-up triggered when pin level is low
- Wake on high,
wake-up triggered when pin level is high
- Input Driver (IOC:IOCn.INPEN)
- Enables or disables the I/O input driver.
- Pin Configuration
- (IOC.IOCn[2:0] PORTCFG)
Selects the function of the pin. See the device specific data sheet for
available functionality per I/O pin.