Init_GPIO
 
Component Init_GPIO for COLDFIREV1
General Purpose Input Output (GPIO)
Component Level: Peripheral Initialization
Properties:
(Properties are parameters of the component. Please see the Embedded Components page for more information.)
  • Component name - Name of the component.
  • Device - Selection of the GPIO device module.
  • Settings - Common GPIO module settings.
    • Port control - Select if the pins of the device are controlled individually or as the entire I/O port. If the entire I/O port is selected only common settings for GPIO function are available and all pins of the port have same settings.
      The following items are available only if the group is enabled (the value is "Entire I/O port"):
      • Direction - Set direction of the entire I/O port.
        This item modifies the respective port direction data register.
      • Output value - Setting of the initial output value of the entire I/O port. If the port direction is set to input the value is stored in data latch of the device and it automatically appears on the port when the direction changed to output.
        Either value from the range or "no initialization" option can be selected, default setting is "no initialization".
        This item modifies the respective port data register.
      • Pull resistor - Setting of the pull resistor of the entire I/O port (the setting is valid only if the port is set to input).
        This item modifies the respective bits in the respective pull-up enable register.

        There are 3 options:
        • no initialization: No initialization of the pull up resistor or setting not available.
        • no pull resistor: No internal pull up resistor present.
        • pull up: Internal pull up resistor present.

      • Open drain - Open drain of the entire I/O port (for information only).
      • Setting is available only if the port supports input buffer enable.
        • Input buffer - Setting of the input buffer control of the entire I/O port.
          This item modifies the respective bits in the port input buffer enable register.
  • Pins - Module pins/signals settings (for information only). Setting is enabled if Port control property set to Individual pins and disabled if port control set to the Entire I/O port.
    The following items are available only if the group is enabled (the value is "Enabled"):
    • Pin0 - This description is same for all pins of GPIO port.
      Group of pin x for GPIO. Item enables settings and allocation of the GPIO pin x.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Pin - Pin x of the GPIO port (for information only).
      • Pin signal - Signal name of the pin x.
      • Direction - Set pin x direction to input or output.
        This item modifies the respective data direction register.
      • Output value - Setting of the initial output value = 0 or 1. If the pin x direction is set to input the value is stored in data latch of the device and it automatically appears on the pin x when the direction changed to output. Value of this property is ignored for input only pins.
        Either value from the range or "no initialization" option can be selected, default setting is "no initialization".
        This item modifies the respective port data register.
      • Pull resistor - Setting of the pull resistor (the setting is valid only if the pin x is set to input).
        This item modifies the respective bit in the port input pull-up enable register.

        There are 3 options:
        • no initialization: No initialization of the pull up resistor or setting not available.
        • no pull resistor: No internal pull up resistor present.
        • pull up: Internal pull up resistor present.

      • Open drain - Open drain of the pin x (for information only).
      • Setting is available only if the pin supports input buffer enable.
        • Input buffer - Setting of the digital input buffer control for the analog input pin x.
          This item modifies the respective bit in the port digital input enable register.
  • Initialization - Initialization options of the module.
    • Call Init Method - The Init method of the component may be called after power-on or reset (in initialization code) by PE.
      yes - The Init method is called by PE
      no - The Init method is not called by PE, it should be called in user's code