|
|
|
Component
Init_USB for HC08
Universal Serial Bus (USB)
Properties:
-
Component name - Name of the component.
-
Device - Selection of the USB device module.
-
Settings - Common USB module settings.
-
Device Address - The property specify the USB address of the device.
HC908JBxx, HC908JG16: This item modifies the UADD[6:0] bits in the UADDR register
HC908BD48: This item modifies the UADD[6:0] bits in the UADR register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Settings supported for HC908BD48, HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
USB Suspend - The property puts the transceiver into a power-saving mode.
HC908JBxx, HC908JG16: This item modifies the SUSPND bit in the UIR0 register
HC908BD48: This item modifies the SUSPND bits in the UCR2 register
-
Settings supported for HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
USB reset generates: - The property specifies what to do if USB reset is detected. (Possible value are "USB interrupt request to CPU" and "chip reset")
HC908JBxx, HC908JG16: This item modifies the URSTD bit in the CONFIG register HC908JR32: This item modifies the URSTD bit in the CONFIG2 register
There are 2 options:
- Chip reset: USB reset causes interrupt request.
- USB interrupt request to CPU: USB reset causes CPU reset.
-
Settings supported for HC908BD48, HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
Settings supported for HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
Force USB output - The property enables/disables the USB output buffers.
This item modifies the FUSBO bit in the UCR4 register
The following items are available only if the group is enabled (the value is "Enables output buffers"):
-
Output level of D- - The property determinates the output level of D-.
This item modifies the FDM bit in the UCR4 register.
This item is influenced by the following properties: Force USB output.
-
Output level of D+ - The property determinates the output level of D+.
This item modifies the FDP bit in the UCR4 register.
This item is influenced by the following properties: Force USB output.
-
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.
This item modifies the TX0E bit in the UCR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
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 UCR0 register
-
Settings supported for HC908BD48 derivatives only.
-
STALL - The property Disable/Enable send STALL handshake.
This item modifies the STALL0 bit in the UCR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Settings supported for HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
STALL for IN token - The property set STALL for IN token.
This item modifies the ISTALL0 bit in the UCR3 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
STALL for OUT token - The property set STALL for OUT token.
This item modifies the OSTALL0 bit in the UCR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Type of data packet - The property select type of data packet for next Endpoint 0.
This item modifies the T0SEQ bit in the UCR0 register
-
Data Packet Size - The property set Data Packet Size for Endpoint 0.
This item modifies the TP0SIZ[3:0] bits in the UCR0 register
-
Endpoint 1 - The property Enable/Disable Endpoint 1
HC908JBxx, HC908JG16: This item modifies the ENABLE1 bits in the UCR3 register
HC908BD48: This item modifies the ENABLE1 bits in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Endpoint 2 - The property Enable/Disable Endpoint 2
HC908JBxx, HC908JG16: This item modifies the ENABLE2 bits in the UCR3 register
HC908BD48: This item modifies the ENABLE2 bits in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Settings supported for HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
Endpoint 1 - The settings for Endpoint 1
-
Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to endpoint 1.
This item modifies the TX1E bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Receive - The property Enable/Disable a receive to occur when the USB host controller sends an OUT token to endpoint 1.
This item modifies the RX1E bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
STALL - The property Disable/Enable send STALL handshake.
This item modifies the STALL1 bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Type of data packet - The property sets type of data packet for next Endpoint 1.
This item modifies the T1SEQ bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Data Packet Size - The property sets Data Packet Size for Endpoint 1.
This item modifies the T1SIZ[3:0] bits in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Endpoint 2 - The settings for Endpoint 2
-
Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to endpoint 2.
This item modifies the TX2E bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Receive - The property Enable/Disable a receive to occur when the USB host controller sends an OUT token to endpoint 2.
This item modifies the RX2E bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
STALL - The property Disable/Enable send STALL handshake.
This item modifies the STALL2 bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Type of data packet - The property select type of data packet for next Endpoint 2.
This item modifies the T2SEQ bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Data Packet Size - The property sets Data Packet Size for Endpoint 2.
This item modifies the TP2SIZ[3:0] bits in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Settings supported for HC908BD48 derivatives only.
-
Endpoint 1/2 - The settings for Endpoint 1/2
-
Endpoint select - The property specifies the with endpoint (1 or 2) uses the eight data registers for data transmit buffers.
This item modifies the ENDADD bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Type of data packet - The property sets type of data packet for next Endpoint.
This item modifies the T1SEQ bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Transmit - The property Enable/Disable a transmit to occur when the USB host controller sends an IN token to selected endpoint.
This item modifies the TX1E bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Endpoint 1 STALL - The property Disable/Enable send STALL handshake for Endpoint 1.
This item modifies the STALL1 bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Endpoint 2 STALL - The property Disable/Enable send STALL handshake for Endpoint 2.
This item modifies the STALL2 bit in the UCR2 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Data Packet Size - The property sets Data Packet Size.
This item modifies the TP1SIZ[3:0] bit in the UCR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Pins - Module pins/signals settings.
-
Interrupts - Interrupt settings of the module.
-
Settings supported for HC908BD48, HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
Interrupt - Interrupt vector (for information only)
-
End Of Packet Int. - The property enable/disable generate End Of Packet Interrupt
HC908JBxx, HC908JG16: This item modifies the EOPIE bit in the UIR0 register
HC908BD48: This item modifies the EOPIE bit in the UINTR register
-
EP0 Tx Interrupt. - The property enable/disable generate Endpoint 0 Transmit complete interrupt.
HC908JBxx, HC908JG16: This item modifies the TXD0IE bit in the UIR0 register
HC908BD48: This item modifies the TBIE bit in the UINTR register
(This property is for information only - the value can only be modified after the enumeration is done)
-
EP0 Rx Interrupt. - The property enable/disable generate Endpoint 0 Receive Interrupt.
HC908JBxx, HC908JG16: This item modifies the RXD0IE bit in the UIR0 register
HC908BD48: This item modifies the RBIE bit in the UINTR register
-
Settings supported for HC908BD48 derivatives only.
-
Reset Interrupt - The property enable/disable generate Reset Interrupt.
This item modifies the RSTIE bit in the UINTR register
-
Settings supported for HC908BD48 derivatives only.
-
EP1/2 Tx Interrupt - The property enable/disable generate Endpoint 1/2 Transmit complete interrupt.
This item modifies the TXD1IE bit in the UIR1 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
Settings supported for HC908JB8, HC908JB12, HC908JB16, HC908JG16 derivatives only.
-
EP1 Tx Interrupt - The property enable/disable generate Endpoint 1 Transmit complete interrupt.
This item modifies the TXD1IE bit in the UIR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
EP2 Tx Interrupt - The property enable/disable generate Endpoint 2 Transmit complete interrupt.
This item modifies the TXD2IE bit in the UIR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
EP2 Rx Interrupt - The property enable/disable generate Endpoint 2 Receive Interrupt.
This item modifies the RXD2IE bit in the UIR0 register
(This property is for information only - the value can only be modified after the enumeration is done)
-
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 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
-
USB Module Enable - Enable USB module.
HC908JBxx, HC908JG16: This item modifies the USBEN bit in the UADDR register
HC908BD48: This item modifies the USBEN bit in the UADR register
HC908JF32, HC908JR32: This item modifies the USBEN bit in the USBCR register
|