HC08 Full Chip Simulation
Configuration Procedure
329
Microcontrollers Debugger Manual

USBIN Command

The USBIN command allows the user to create packets for input into the USB. If you
specify packet parameters, this command places the packet into the next slot in the USB
input buffer. If no parameter is given, this command displays a pick window with the input
buffer packets. Enter the packets while the window is open. An arrow points to the next
input packet to the USB. The maximum number of input packets is 256.
Syntax
USBIN [SETUP | IN | OUT <address> <endpoint>]
USBIN [DATA0 | DATA1 <n1>…<n2>…<n3>]
USBIN [ACK/NAK/STALL]
Where:
<n1>…<n2>…<n3>… are the values for the data packet.
<address> is the USB address for the packet.
<endpoint> is the endpoint number for the packet.
Example
>USB SETUP $5A $0
Set the next input packet as a SETUP packet for address $5A at the endpoint 0.
>USBIN DATA1 $10 $A4 $52
Set the next packet as a DATA1 packet with 3 data bytes $10, $A4, $52
>USBIN ACK
Set the next input packet as an ACK packet.
>USBIN
Open the pick window with all the input packets.
Where:
<n> The value to be entered into the next location in the input buffer.
Example
>USBIN $55
Set the next input value to the USB to $55
>USBIN
Pull up the data window with all the input values.