Init_KBI
 
Component Init_KBI for COLDFIREV1
Keyboard Interrupt Module (KBI)
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 KBI device module
  • Settings - Common KBI module settings.
    • Triggering sensitivity - This item controls the triggering sensitivity of the keyboard interrupt pins.
      This item modifies the 'Detect Mode' bit in the Status and Control register.

      There are 2 options:
      • edge: Keyboard interrupt request on edges.
      • edge and level: Keyboard interrupt request on edges and levels.

  • Pins - Module pins/signals settings.
    • Pin0 - This description is same for all pins of KBI module.
      Group of pin 0 for external interrupt. Item enables the corresponding keyboard interrupt pin to latch KBI interrupt requests.
      This item modifies the KBIEn bit in the KBIER register.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Pin - Pin 0 for external interrupt (for information only)
      • Pin signal - Signal name of the pin 0
      • Pull resistor - Setting of the pull resistor. When the input KBI is enabled and configured to detect rising edges/high levels, and the pin pullup is enabled, a pulldown resistor rather than a pullup resistor is enabled on the pin.
        This item modifies the PTxPEn bit in the PTxPE 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 enabled: Internal pull up or pull down resistor present.

      • Interrupt polarity - Interrupt polarity. This item determines the polarity of the enabled keyboard interrupt pin and enables the appropriate pull-up or pull-down device.
        This item modifies the appropriate 'Edge Select' bit in the Interrupt Edge Select register.

        There are 2 options:
        • low level and/or falling edge: Keyboard polarity is low level and/or falling edge
        • high level and/or rising edge: Keyboard polarity is high level and/or rising edge

  • Interrupts/DMA - Interrupts settings of the module.
    • Keyboard request - Keyboard request settings
      • Settings only if CPU supports interrupts
        • Interrupt - Interrupt vector (for information only)
        • Settings only if "CPU" support "Interrupt priority"
      • Keyboard request interrupt - Enable/Disable keyboard request interrupt.
        This item modifies the 'Interrupt Enable' bit in the Status and Control register.
      • Settings only if CPU supports DMA.
      • Settings only if CPU supports interrupts
        • ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
          The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
  • Initialization - Initialization options of the module.
    • Call Init method - The Init method of the component may be called after a 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 the user's code