NP5 CANopen 在线手册

3231h Flex IO Configuration

Function

Defines how the pins (inputs/outputs 1 … 4) 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.

  • Pin 1: DIO1_IO_CS
  • Pin 2: DIO2_CD_CLK
  • Pin 3: DIO3_CD_DIR
  • Pin 4: DIO4_IO_MOSI
  • 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":

    Bit Pin Alternative function
    1 DIO2_CD_CLK Clock input in clock-direction mode
    2 DIO3_CD_DIR Direction input in clock-direction mode
    Note:

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

    If the Clock-direction mode is activated, the pins for clock and direction are automatically configured accordingly and the settings in 3231h are overwritten.

  • 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
Allowed values
Preset value
Firmware version FIR-v1650-B472161
Change history

Value description

Subindex 00h
Name Number Of Entries
Data type UNSIGNED8
Access read only
PDO mapping no
Allowed values
Preset value 03h
Subindex 01h
Name Output Mask
Data type UNSIGNED16
Access read / write
PDO mapping no
Allowed values
Preset value 0000h
Subindex 02h
Name Pullup Mask
Data type UNSIGNED16
Access read / write
PDO mapping no
Allowed values
Preset value 0000h
Subindex 03h
Name Alternate Function Mask
Data type UNSIGNED16
Access read / write
PDO mapping no
Allowed values
Preset value 0000h
▶   下一个

目录