LZ85194
14
IrDA Control Peripheral Engine User
’
s Guide
Send_Data_withACK Command
Command ID:
0x0B
Length:
Byte length resulting from Length + EP + Data. For example, if data length
is 8 bytes, Length = 10 must be configured. Applicable values is from 2 to 10.
Assign Endpoint for data transmission. For assigning method refer to
Table 6.
Transmission Data. Upper end value for N is 11 (MAX. 8 byte data).
Shows response whether the data has been successfully forwarded to PE
or not.
‘
0
’
represents NAK,
‘
1
’
for ACK. PE to output this part.
Direct PE to send data with response.
PE Operation:
PE to send data to the assigned Host device.
If PE is in Bound status, PE to send data accordingly.
If PE is in Unbound status, PE to attempt first to shift its status to Bound
status, and send data if its attempts succeeded. If failed, it shifts to
Unbound status.
If PE is in Unenumerated status, PE to start Enumeration, and will shift
its status to Bound status when successfully Enumerated. If failed, it
stops in Unenumerated status.
≥
13.8 ms time gap is required in case of issuing either Send_Data or
Send_Data_withACK after issuing this command.
Difference between Send_Data and Send_Data_withAck
PE to report μP the receipt of the data (given by Send_Data command)
with 1 byte handshake.
When the response data by Handshake is
‘
1
’
, it represents that the data
has been successfully received (ACK), while
‘
0
’
represents that either
the data failed to be received, or cancelled (NAK). A μP can determine
its operation, such as data re-sending, monitoring the value of the Hand-
shake. In re-sending, it is recommended to re-send for > 220 ms time
period, considering time period required for the communication proto-
cols from Unbound status to Bound status. Refer to the
‘
Retry by
Send_Data_withAck Command
’
section. Within this 220 ms, time gap of
13.8 ms is required for issuing Send_Data_withAck Command.
EP:
Data:
Handshake:
Description:
1st Byte
2nd Byte
3rd Byte
4th - Nth Byte
5th or Nth + 1 byte
Command ID
Length
EP
Data
Handshake
Table 6. Assigning Endpoint
EP
ENDPOINT FOR DATA
TRANSMISSION
PIPE DESCRIPTION
0x12
0x13
EP1
EP3
IN Data Pipe 1
IN Data Pipe 2