Init_USBHUB
 
Component Init_USBHUB for HC08
Universal Serial Bus (USBhub)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the HUB device module.
  • Settings - Common USBhub module settings.
    • HUB - HUB settings.
      • Address - The property specify the USB address of the device. (for information only)
        This item modifies the ADD[6:0] bits in the HDDR register. (The property is modified after the host request only)
      • USB Suspend - The property puts the transceiver into a power-saving mode.
        This item modifies the SUSPD bit in the HRPCR register.
      • Downstream Port 1 - Downstream Port 1 settings.
        • Port - The property enable/disable downstream port 1. (for information only)
          This item modifies the PEN1 bit in the HDP1CR register. (The property is modified after the host request only)
        • Speed - The property sets the speed of down stream port 1. (for information only)
          This item modifies the LOWSP1 bit in the HDP1CR register. (The property is modified after the host request only)
        • Suspend - The property sets the Suspend bit of downstream port 1. (for information only)
          This item modifies SUSP1 bit in the HDP1CR register. (The property is modified after the host request only)
      • Downstream Port 2 - Downstream Port 2 settings.
        • Port - The property enable/disable downstream port 2. (for information only)
          This item modifies the PEN2 bit in the HDP2CR register. (The property is modified after the host request only)
        • Speed - The property sets the speed of down stream port 2. (for information only)
          This item modifies the LOWSP2 bit in the HDP2CR register. (The property is modified after the host request only)
        • Suspend - The property sets the Suspend bit of downstream port 2. (for information only)
          This item modifies the SUSP2 bit in the HDP2CR register. (The property is modified after the host request only)
      • Downstream Port 3 - Downstream Port 3 settings.
        • Port - The property enable/disable downstream port 3. (for information only)
          This item modifies the PEN3 bit in the HDP3CR register. (The property is modified after the host request only)
        • Speed - The property sets the speed of down stream port 3. (for information only)
          This item modifies the LOWSP3 bit in the HDP3CR register. (The property is modified after the host request only)
        • Suspend - The property sets the Suspend bit of downstream port 3. (for information only)
          This item modifies the SUSP3 bit in the HDP3CR register. (The property is modified after the host request only)
      • Downstream Port 4 - Downstream Port 4 settings.
        • Port - The property enable/disable downstream port 4. (for information only)
          This item modifies the PEN4 bit in the HDP4CR register. (The property is modified after the host request only)
        • Speed - The property sets the speed of down stream port 4. (for information only)
          This item modifies the LOWSP4 bit in the HDP4CR register. (The property is modified after the host request only)
        • Suspend - The property sets the Suspend bit of downstream port 4. (for information only)
          This item modifies the SUSP3 bit in the HDP4CR register. (The property is modified after the host request only)
      • Endpoint 0 - The settings for Endpoint 0.
        • STALL - The property Disable/Enable send STALL handshake. (for information only)
          This item modifies the STALL0 bit in the HCR0 register. (The property is modified after the host request only)
        • Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to endpoint 0. (for information only)
          This item modifies the TXE bit in the HCR0 register. (The property is modified after the host request only)
        • Receive - The property Enable/Disable a receive to occur when the USB host controller sends an OUT token to endpoint 0.
          This item modifies the RXE bit in the HCR0 register.
        • Type of data packet - The property select type of data packet for next Endpoint 0.
          This item modifies the TSEQ bit in the HCR0 register.
        • Data Packet Size - The property set Data Packet Size for Endpoint 0.
          This item modifies the TPSIZ[3:0] bit in the HCR0 register.
      • Endpoint 1 - The settings for Endpoint 1.
        • STALL - The property Disable/Enable send STALL handshake. (for information only)
          This item modifies the STALL1 bit in the HCDR register. (The property is modified after the host request only)
        • Status Change Bitmap - Status Change Bitmap settings.
          • Status Change Bitmap - The property enable/disable new status change in port. (for information only)
            This item modifies the PNEW bit in the HCDR register. (The property is modified after the host request only)
          • HUB status - The property enable/disable hub status change. (for information only)
            This item modifies the PCHG0 bit in the HCDR register. (The property is modified after the host request only)
          • Port 1 status - The property enable/disable status change on port 1. (for information only)
            This item modifies the PCHG1 bit in the HCDR register. (The property is modified after the host request only)
          • Port 2 status - The property enable/disable status change on port 2. (for information only)
            This item modifies the PCHG2 bit in the HCDR register. (The property is modified after the host request only)
          • Port 3 status - The property enable/disable status change on port 3. (for information only)
            This item modifies the PCHG3 bit in the HCDR register. (The property is modified after the host request only)
          • Port 4 status - The property enable/disable status change on port 4. (for information only)
            This item modifies the PCHG4 bit in the HCDR register. (The property is modified after the host request only)
          • Embedded device status - The property enable/disable status change on Embedded device. (for information only)
            This item modifies the PCHG5 bit in the HCDR register. (The property is modified after the host request only)
    • Embedded device - The property enable/disable the embedded device.
      This item modifies the DEVEN bit in the DADDR register.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Device - Selection of the Embedded device module.
      • Address - The property specify the USB address of the device. (for information only)
        This item modifies the DADD[6:0] bit in the DADDR register. (The property is modified after the host request only)
      • STALL - The property Disable/Enable send STALL handshake. (for information only)
        This item modifies the DSTALL0 bit in the DCR0 register. (The property is modified after the host request only)
      • Endpoint 0 - The settings for Endpoint 0
        • Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to endpoint 0. (for information only)
          This item modifies the TX0E bit in the DCR0 register. (The property is modified after the host request only)
        • Receive - The property Enable/Disable a receive to occur when the USB host controller sends an OUT token to endpoint 0.
          This item modifies the RX0E bit in the DCR0 register.
        • Type of data packet - The property sets type of data packet for next Endpoint 0.
          This item modifies the T0SEQ bit in the DCR0 register.
        • Data Packet Size - The property sets Data Packet Size for Endpoint 0.
          This item modifies the TP1SIZ[3:0] bit in the DCR0 register.
      • Endpoint 1/2 - The settings for Endpoint 1/2
        • Endpoint 1 - The property Enable/Disable Endpoint 1. (for information only)
          This item modifies the ENABLE1 bit in the DCR2 register. (The property is modified after the host request only)
        • Endpoint 2 - The property Enable/Disable Endpoint 2. (for information only)
          This item modifies the ENABLE2 bit in the DCR2 register. (The property is modified after the host request only)
        • Endpoint select - The property specifies the with endpoint (1 or 2) uses the eight data registers for data transmit buffers. (for information only)
          This item modifies the ENDADD bit in the DCR1 register. (The property is modified after the host request only)
        • Endpoint 1 STALL - The property Disable/Enable send STALL handshake for Endpoint 1. (for information only)
          This item modifies the DSTALL1 bit in the DCR2 register. (The property is modified after the host request only)
        • Endpoint 2 STALL - The property Disable/Enable send STALL handshake for Endpoint 2. (for information only)
          This item modifies the DSTALL2 bit in the DCR2 register. (The property is modified after the host request only)
        • Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to selected endpoint. (for information only)
          This item modifies the TX1E bit in the DCR1 register. (The property is modified after the host request only)
        • Type of data packet - The property sets type of data packet for next Endpoint. (for information only)
          This item modifies the T1SEQ bit in the DCR1 register. (The property is modified after the host request only)
        • Data Packet Size - The property sets Data Packet Size. (for information only)
          This item modifies the TP1SIZ[3:0] bit in the DCR1 register. (The property is modified after the host request only)
  • Pins - Pins/Signals
  • Interrupts - Interrupt settings of the module.
    • HUB timing interrupt - HUB timing interrupt settings.
      • Interrupt - Interrupt vector (for information only)
      • Start of Frame Interrupt - The property enable/disable generate Start of Frame Interrupt requests.
        This item modifies the SOFIE bit in the SIETIR register.
      • The second End of frame Interrupt - The property enable/disable generate The second End of frame Interrupt requests.
        This item modifies the EOF2IE bit in the SIETIR register.
      • End of packet Detect Interrupt - The property enable/disable generate End of packet Detect Interrupt requests.
        This item modifies the EOPIE bit in the SIETIR register.
      • Bus Signal Transition Detect Interrupt - The property enable/disable generate Bus Signal Transition Detect Interrupt requests.
        This item modifies the TRANIE bit in the SIETIR register.
      • 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.
    • EP interrupts - EP interrupt settings.
      • Interrupt - Interrupt vector (for information only)
      • HUB EP0 Tx Interrupt - The property enable/disable generate HUB Endpoint 0 Transmit Interrupt requests. (for information only)
        This item modifies the TXDIE bit in the HIR0 register. (The property is modified after the host request only)
      • HUB EP0 Rx Interrupt - The property enable/disable generate HUB Endpoint 0 Receive Interrupt requests.
        This item modifies the RXDIE bit in the HIR0 register.
      • EMBD EP0 Tx Interrupt - The property enable/disable generate Embedded device Endpoint 0 Transmit Interrupt requests (for information only).
        This item is influenced by the following properties: Embedded device.
        This item modifies the TXD0IE bit in the DIR0 register. (The property is modified after the host request only)
      • EMBD EP0 Rx Interrupt - The property enable/disable generate Embedded device Endpoint 0 Receive Interrupt requests.
        This item is influenced by the following properties: Embedded device.
        This item modifies the RXD0IE bit in the DIR0 register.
      • EMBD EP1/2 Tx Interrupt - The property enable/disable generate Embedded device Endpoint 1/2 Transmit Interrupt requests (for information only).
        This item is influenced by the following properties: Embedded device.
        This item modifies the TXD1IE bit in the DIR1 register. (The property is modified after the host request only)
      • 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.
  • Initialization - Initialization options of the module.
    • HUB Enable - Enable HUB module.
      This item modifies the USBEN bit in the HADDR register.