OD_3231_03 Alternate Function Mask

Function

Defines how the pins (inputs/outputs DIO1, 2...) of the device are used.

Each bit in the respective subindex corresponds to a pin, whereby the first pin configures DIO1, the second pin DIO2, etc.

  • Subindex 03h Alternate Function Mask: This bit mask defines whether the alternative function of the pin is to be activated.

    To activate an alternative function, set the corresponding bit to "1":

    If you do not activate the alternative function, you can no longer use the corresponding pin as a normal input/output.

  • Subindex 01h Output Mask: This bit mask defines whether the pin is used as input or output (depending on whether an alternative function was activated for the pin in subindex 03h):
    • Bit = "0": Pin is input (default)
    • Bit = "1": Pin is output
  • Subindex 02h Pullup Mask: This bit mask defines whether the pin is a pullup or pulldown:

    • Bit = "0": Pin is pulldown (default)
    • Bit = "1": Pin is pullup

    Subindex 02h is only active for the pin if it is defined as an input.

Example for subindex 01h: Pin 2 and pin 3 are to be outputs, value = "6" (=0110 b)

Object description

Index 3231h
Object name Flex IO Configuration
Object Code ARRAY
Data type UNSIGNED16
Savable yes, category: application
Access read only
PDO mapping no

Value description

Subindex 03h
Name Alternate Function Mask
Data type UNSIGNED16
Access read / write
PDO mapping no