Page 2
Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as, medical products.
Page 3
Scope This document applies to the S2R72V18 USB 2.0 device/host controller LSI.
Bulk-Only Support ......................20 1.3.6.1 CBW Support ....................... 21 1.3.6.2 CSW Support ....................... 22 1.3.7 Cable Negotiation Function (Auto Negotiator) ..............23 1.3.7.1 Auto Negotiator ......................24 1.3.7.1.1 DISABLE ......................24 1.3.7.1.2 IDLE........................24 1.3.7.1.3 WAIT_TIM3US...................... 24 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 5
SETUP Transaction...................... 56 1.4.3.2 Bulk OUT Transaction ....................57 1.4.3.3 Interrupt OUT Transaction .................... 59 1.4.3.4 Isochronous OUT Transaction..................60 1.4.3.5 Bulk IN Transaction ...................... 61 1.4.3.6 Interrupt IN Transaction....................63 1.4.3.7 Isochronous IN Transaction..................65 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 6
If a Correct Device Chirp is Detected ............102 1.4.10.2.4.2 If an Error Device Chirp is Detected ............. 104 1.4.10.2.5 Port Error Detection .................... 105 1.4.10.3 Individual Host State Management Support Function Explanations ......106 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 7
1.4.10.3.10.1 If HS Device is Connected................147 1.4.10.3.10.2 If FS or LS Device is Connected ..............148 1.4.10.3.11 GoSUSPENDtoOP ..................... 149 1.4.10.3.12 GoRESUMEtoOP ....................151 Power Management Functions .................... 152 1.5.1 SLEEP........................... 153 1.5.2 ACTIVE ......................... 153 FIFO Management ......................154 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 15
(Host CHa Bulk Only Transfer Support Control) ............369 3.3.49 Port0:19Bh / Port1:39Bh H_CHaBO_CSW_RcvSize (Host CHa Bulk Only Transfer Support CSW Receive Data Size)......... 371 3.3.50 Port0:19Ch / Port1:39Ch H_CHaBO_OUT_EP_Ctl (Host CHa Bulk Only Transfer Support OUT Endpoint Control) ........372 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 16
Port0:1A9h / Port1:3A9h H_CHbFuncAdrs (Host Channel b Function Address) ..384 3.3.78 Port0:1B9h / Port1:3B9h H_CHcFuncAdrs (Host Channel c Function Address)..384 3.3.79 Port0:1C9h / Port1:3C9h H_CHdFuncAdrs (Host Channel d Function Address) ..384 EPSON S2R72V18 Technical Manual (Rev.1.00) xiii...
Page 17
Port0:1BEh / Port1:3BEh H_CHcConditionCode (Host Channel c Condition Code)... 387 3.3.91 Port0:1CEh / Port1:3CEh H_CHdConditionCode (Host Channel d Condition Code).. 387 3.3.92 Port0:1DEh / Port1:3DEh H_CHeConditionCode (Host Channel e Condition Code).. 387 Appendix A: Connection to Little-endian CPU ................389 EPSON S2R72V18 Technical Manual (Rev.1.00)
Indicates a change in the device port status VBUS_0 terminal state. VBUS terminal change USB_DeviceIntEnb(0).EnVBUS_Changed Permits/prevents assertion of the status enable MainIntStat.USB_DeviceIntStat bit by USB_DeviceIntStat.VBUS_Changed. VBUS terminal state D_USB_Status(0).VBUS Indicates the device port VBUS_0 terminal state. EPSON S2R72V18 Technical Manual (Rev.1.00)
This status indicates that the DP terminal (DP_0, DP_1) or DM terminal (DM_0, DM_1) state has changed for USB Port 0 Host mode or USB Port 1. Table 1-4 lists the registers for signal line change status. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 21
(5) The line state changes from SE0. A signal line change status is issued if a device is connected to the host port. (6) Check the signal line change status. (7) Clear the signal line change status. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 22
These settings are automatically set by the hardware to suit the host state after the firmware sets appropriate codes in the host state change execution register. For details, refer to “1.4.10 Host State Management Support Function.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Specifies the FIFO address corresponding to AREAx{x=0-5}EndAdrs_H,L the AREA0 area. The FIFO area must be at least as large as the max packet size. FIFO linking AREAx{x=0-5}Join_1.JoinEP0CH0 Links endpoint EP0 to the FIFO area to allow data transfer for EP0. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 24
Specify and reserve the area address. The AREAx{x=0-5}EndAdrs_H,L areas should be at least as large as the linked endpoint maximum packet sizes. The FIFO size may affect transfer throughput. FIFO linking AREAx{x=0-5}Join_1 Links the FIFO areas to endpoints. EPSON S2R72V18 Technical Manual (Rev.1.00)
For an in endpoint, the firmware writes data to the FIFO using the CPU interface (DMA write or register write) and creates active data in the FIFO to enable continuous and automatic execution of the in transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 26
Indicates that a SETUP transaction has been performed. Transaction status D_EP0IntStat.OUT_ShortACK, Indicates transaction results. D_EP0IntStat.IN_TranACK, D_EP0IntStat.OUT_TranACK, D_EP0IntStat.IN_TranNAK, D_EP0IntStat.OUT_TranNAK, D_EP0IntStat.IN_TranErr, D_EP0IntStat.OUT_TranErr Descriptor reply data D_EP0IntStat.DescriptorCmp Indicates the completion of an automatic stage completion status descriptor response data stage. EPSON S2R72V18 Technical Manual (Rev.1.00)
D_SETUP_Control.ProtectEP0 bit are also set. When the firmware has completed the endpoint EP0 settings and is ready to proceed to the next stage, the SETUP_Control.ProtectEP0 bit should be cleared and the corresponding direction ForceNAK bits cleared for the D_EP0ControlIN and D_EP0ControlOUT registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO is not updated. If not all data was received for bulk or interrupt OUT transactions, a NAK response is returned for the transaction. OUT_TranNAK status notification (D_EPx{x=0,a-e}IntStat.OUT_TranNAK bit) is issued. The FIFO is not updated. EPSON S2R72V18 Technical Manual (Rev.1.00)
If an error occurs for isochronous OUT transactions, the data is not received, and the FIFO is not updated. OUT_TranErr status notification (EPx{x=a-e}IntStat.OUT_TranErr bit) is issued. OUT_TranNAK status notification (EPx{x=a-e}IntStat.OUT_TranNAK bit) is issued if the data for one packet is not fully received for isochronous OUT transactions. The FIFO is not updated. EPSON S2R72V18 Technical Manual (Rev.1.00)
IN transaction is possible. (c) The host returns an ACK response. The LSI sets the register set automatically on receiving the ACK, and issues a status to the firmware. DATA Host to Device Device to Host Fig. 1-4 IN transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
IN-direction endpoints, a response is returned to the IN transaction with a zero length data packet, and IN_TranNAK status notification (EPx{x=a-e}IntStat.IN_TranNAK bit) is issued to the firmware. The FIFO is not updated, and the area is not freed. EPSON S2R72V18 Technical Manual (Rev.1.00)
OUT-direction endpoint in this node. (b) The LSI returns an ACK response to the PING transaction if FIFO includes free space equivalent to the max packet size. Status information is issued to the firmware. PING Host to Device Device to Host Fig. 1-5 PING transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
The transition to the status stage is triggered by the host issuing a transaction in the direction opposite to the data stage. The firmware should be used to monitor the OUT_TranNAK status (D_EP0IntStat.OUT_TranNAK bit) and serve as the trigger to transition from the data stage to the status stage. EPSON S2R72V18 Technical Manual (Rev.1.00)
EP0 set to the IN direction to transition to the data stage. If the request received has no data stage, the D_EP0Control register INxOUT bit should be set and endpoint EP0 set to the IN direction to transition to the status stage. EPSON S2R72V18 Technical Manual (Rev.1.00)
D_EP0Control.ReplyDescriptor bit is cleared, and DescriptorCmp status notification (D_EP0IntStat.DescriptorCmp bit) is issued to the firmware. The firmware should perform the status stage if DescriptorCmp status is detected. For details of the descriptor area, refer to “1.6 FIFO Management.” EPSON S2R72V18 Technical Manual (Rev.1.00)
(including data length zero packets) is received when the D_EPx{x=a-e}Control.DisAF_NAK_Short bit is cleared (initial value). The D_EPx{x=a-e}Control.ForceNAK bit should be cleared as soon as preparations are complete for the next data transfers. EPSON S2R72V18 Technical Manual (Rev.1.00)
While the bulk-only support function is enabled and CBW or CSW support is activated, packets are received (CBW) or sent (CSW) using the area assigned as the CBW or CSW area rather than the FIFO area normally assigned to the endpoint. EPSON S2R72V18 Technical Manual (Rev.1.00)
In this case, the D_BulkOnlyControl.GoCBW_Mode bit is not cleared, and CBW support continues. The D_BulkOnlyControl.GoCSW_Mode bit is not cleared here, even if set. The data received at the CBW area can be read out using the RAM_Rd function. EPSON S2R72V18 Technical Manual (Rev.1.00)
ACK, the next CBW will run, but a response is possible since CBW support is activated. CBW support will terminate CSW support. Data can be written to the CSW area with the RAM_WrDoor function. EPSON S2R72V18 Technical Manual (Rev.1.00)
If a reset is determined, the event detection function is suspended and the WAIT_TIM3US state imposed. 1.3.7.1.3 WAIT_TIM3US This adjusts the time taken to run the HS Detection Handshake after reset detection. WAIT_CHIRP status is imposed after a preset time (approx. 3 µs) has elapsed. EPSON S2R72V18 Technical Manual (Rev.1.00)
The auto negotiator switches to CHK_EVENT state when InSUSPEND is cleared. To resume from suspend automatically with applications with the remote wakeup function enabled, set the D_NegoControl.SendWakeup bit while in this state and output FS-K for between 1 ms and 15 ms. EPSON S2R72V18 Technical Manual (Rev.1.00)
D_USB_Status.LineState[1:0] bit (note that it will be reset (see later) if “SE0” is detected). If “J” is still detected at the subsequent point T2, the D_SIE_IntStat.DetectSUSPEND bit is set and a USB suspend state is determined. The figure below illustrates the steps involved in running SLEEP during USB suspend. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 44
USB. (Set DisBusDetect to “1” before switching to SLEEP to prevent repeated detection of SUSPEND.) The internal clock stops completely. T5 < T4 + 10 µs Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
The figure below illustrates the steps involved in running SLEEP during USB suspend. time XcvrSelect TermSelect DetectSUSPEND GoSLEEP DisBusDetect LineState[1:0] 'J' State Last DP / DM 'J' state Activity Internal clock Fully meet USB2.0 required frequency FS Mode SLEEP Fig. 1-10 Suspend timing (FS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 46
USB. (Set DisBusDetect to “1” before switching to SLEEP to prevent repeated detection of SUSPEND.) The internal clock stops completely. T5 < T4 + 10 µs Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
DetectRESET is set to “1,” and the LSI determines a transition T1 + 875 µs to reset. Sets DisBusDetect to “1” after detecting a reset command, then performs the HS Detection Handshake. Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
HS Reset T0 + 2.5 µs < T1 {T WTREV determines a transition to reset. Sets DisBusDetect to “1” after detecting a reset command, then performs an HS Detection Handshake. Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
Reset is detected if a SLEEP command is issued during Suspend. For this reason, the PM_Control.GoACTIVE bit must always be set to “1” to operate the internal clock for the HS Detection Handshake. For detailed information on this procedure, refer to “1.5 Power Management Functions.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Normal Normal Operation and NRZI ChirpCmp LineState[1:0] 'K' State 'J' State Device K DP / DM 'J' State Upstream No Downstream FS Mode Port Chirp Port Chirps Fig. 1-13 HS detection handshake timing (FS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 51
HS Reset T0 + 10 ms {T (Min)} DRST Normal operation in FS mode. Note: Brackets {} indicate names defined in the USB 2.0 standards. Note: Determine at 66,000 cycles (internal clock: 60 MHz) to generate minimum 1 ms Chirp K. EPSON S2R72V18 Technical Manual (Rev.1.00)
HS termination is activated by the D_XcvrControl.TermSelect bit. The Chirp is normally approximately 800 mV when the D_XcvrControl.TermSelect bit is in FS mode and approximately 400 mV when the D_XcvrControl.TermSelect bit is in HS mode (same as for normal packets sent and received). EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 53
HS Reset T0 + 10 ms {T (Min)} DRST Note: Brackets {} indicate names defined in the USB 2.0 standards. Note: Determine at 66,000 cycles (internal clock: 60 MHz) to generate minimum 1 ms Chirp K. EPSON S2R72V18 Technical Manual (Rev.1.00)
NRZI LineState[1:0] 'K' State Device K DP / DM Internal clock Fully meet USB2.0 required frequency Look for Upstream PLL Powerup time downstream Port Chirp chirps Fig. 1-15 HS detection handshake timing from suspend EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 55
Note: Determine at 66,000 cycles (internal clock: 60 MHz) to generate minimum 1 ms Chirp K. Note: The situation in which the oscillator circuit is also stopped (Sleep state) is described later (PLL and OSC power-up time is required). EPSON S2R72V18 Technical Manual (Rev.1.00)
Note that this explanation addresses only the condition in which the mode before USB Suspend is HS mode. The normal FS mode is used after T5 if the mode before USB Suspend was FS mode, and there are no major sequence differences. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 57
RestoreCmp is set to “1.” The LSI automatically switches to HS T5 + 1.33 µs {2 Low-speed bit times} mode if the mode prior to USB Suspend was HS mode. Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
D_XcvrControl.XcvrSelect and D_XcvrControl.TermSelect bits switch to the required mode (here, HS mode) when this is detected (no longer “K”), and the D_NegoControl.RestoreUSB bit is then cleared and the D_SIE_IntStat.RestoreCmp bit set. The D_SIE_IntEnb.EnRestoreCmp bit is set here. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 59
The LSI switches automatically to HS mode if the mode prior to T5 + 1.33 µs {2 Low-speed bit times} USB Suspend was HS mode. Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(T3). The D_XcvrControl.TermSelect bit should be set to FS mode (T4) to switch to FS mode temporarily, since it should be assumed first that an FS device was connected. The host downstream port then sends a Reset (T5), and the HS Detection Handshake starts. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 61
“00.” Switches to FS mode. FS termination is enabled. A Reset is issued from the host downstream port. DisBusDetect T4 + 100 ms {T } < T5 ATTDB is set to “1.” Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(for OUT transfer) and reads data from the buffer (for IN transfer) until all IRP data has been processed. Concurrently, the hardware (channel) automatically divides IRPs into multiple transactions. Once transfer is complete, it notifies the firmware using an interrupt. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 63
Control transfer support function (1.4.4.3) can be used. Bulk transfer Bulk-only support function (1.4.8) can be used. CHb, CHc CHd, CHe Bulk transfer Audio class assist function can be used (1.4.9). Interrupt transfer Isochronous transfer EPSON S2R72V18 Technical Manual (Rev.1.00)
For detailed information on FIFO area assignments, refer to “1.6 FIFO Management.” FIFO area join AREAn{n=0-5}Join_1.JoinEP0CH0 Joins channel CH0 to the FIFO area. Setup data H_CH0SETUP_x(x=0-7) Sets the 8-byte data to be sent by the setup transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
Sets the quantity of data in bytes for the IRP H_CHx{x=a-e}TotalSize_HL, to be executed by each channel. H_CHx{x=a-e}TotalSize_LH, H_CHx{x=a-e}TotalSize_LL Token issue interval H_CHx{x=b-e}Interval_H, Sets the interval (period) for issuing tokens H_CHx{x=b-e}Interval_L for interrupt and isochronous transfer. (continued) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 66
The FIFO area size affects data transfer throughput. For detailed information on FIFO area assignments, refer to “1.6 FIFO Management.” FIFO area join AREAn{n=0-5}Join_1.JoinEPxCHx{x=a-e} Joins each channel to the FIFO area. EPSON S2R72V18 Technical Manual (Rev.1.00)
Table 1-24 shows the control items for general channel (CHa, CHb, CHc, CHd, CHe) scheduling control. Table 1-24 General channel scheduling settings Item Register/bit Description Execute transfer H_CHx{x=a-e}Config_0.TranGo Sets transfer execution for each channel. Performs the transfer in accordance with the channel settings. EPSON S2R72V18 Technical Manual (Rev.1.00)
Table 1-26 shows the control items and status involved in general channel (CHa, CHb, CHc, CHd, CHe) transaction control. Table 1-26 General channel control items and status Item Register/bit Description Transaction status H_CHx{x=a-e}IntStat.TotalSizeCmp, Indicates the transaction results. H_CHx{x=a-e}IntStat.TranACK, H_CHx{x=a-e}IntStat.TranErr, H_CHx{x=a-e}IntStat.ChangeCondition Transaction condition H_CHx{x=a-e}ConditionCode Indicates transaction result specifics. code EPSON S2R72V18 Technical Manual (Rev.1.00)
0 in the destination node. (b) The LSI then sends an 8-byte data packet. (c) The LSI automatically sets the corresponding register on receiving the ACK and issues status information to the firmware. SETUP DATA Host to Device Device to Host Fig. 1-25 SETUP transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
OUT token addressed to the OUT-direction endpoint at the destination node. (b) The LSI then sends a data packet no larger than the maximum packet size. (c) The LSI automatically sets the corresponding register on receiving ACK and issues status information to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 75
1. Functions DATA Host to Device Device to Host Fig. 1-26 OUT transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
TranErr status notification (H_CHx{x=b-e}IntStat.TranErr bit) is issued to the firmware. Although Retry processing is performed, H_CHx{x=b-e}Control.TranGo is automatically cleared to end the transfer if three successive errors occur, and then a ChangeCondition status notification (H_CHx{x=b-e}IntStat.ChangeCondition bit) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
The LSI automatically sets the corresponding register after sending the data packet, and issues status information to the firmware. DATA Host to Device Device to Host Fig. 1-27 Isochronous OUT transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
(H_CHx{x=a-e}IntStat.TranErr bit) is issued to the firmware. The FIFO is not updated. If an error occurs for which the condition code (H_CHx{x=a-e}ConditionCode) is set to “RetryError,” retry processing is performed. If three successive errors occur, EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 79
(c) The LSI returns an ACK response, automatically sets the corresponding register, and issues status information to the firmware. DATA Host to Device Device to Host Fig. 1-28 IN transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
If a timeout error, CRC error, bit stuffing error, or PID error (including unforeseen PID) occurs for the interrupt IN transaction, no response is returned. The condition code (H_CHx{x=b-e}ConditionCode) is set to “RetryError,” and a TranErr status notification (H_CHx{x=b-e}IntStat.TranErr bit) is issued to the firmware. The FIFO is not updated. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 81
If an error occurs for which the condition code (H_CHx{x=b-e}ConditionCode) is set to “RetryError,” retry processing is performed at the next cycle. If three successive errors occur, H_CHx{x=b-e}Control.TranGo is automatically cleared to end the transfer, and a ChangeCondition status notification (H_CHx{x=b-e}IntStat.ChangeCondition bit) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
IN transaction. The LSI automatically sets the corresponding register after receiving the data packet, and issues status information to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 83
1. Functions DATA Host to Device Device to Host Fig. 1-29 Isochronous IN transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
PING token addressed to the OUT-direction endpoint existing in the node. (b) The device returns an ACK response to the PING transaction if there is space equivalent to the maximum packet size at the endpoint. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 85
1. Functions PING Host to Device Device to Host Fig. 1-30 PING transaction EPSON S2R72V18 Technical Manual (Rev.1.00)
(c) The LSI automatically sets the corresponding register after receiving the ACK and issues status information to the firmware. DATA Host to Device Device to Host Fig. 1-31 OUT transaction with preamble attached EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 87
It then automatically sets the corresponding register and issues status information to the firmware. DATA Host to Device Device to Host Fig. 1-32 IN transaction with preamble attached EPSON S2R72V18 Technical Manual (Rev.1.00)
The FIFO is not updated. Retry processing is performed. If three successive errors occur for control, bulk, or interrupt transfers, H_CHx{x=0,a-e}Control.TranGo is automatically cleared to end the transfer, and a ChangeCondition status notification (H_CHx{x=0,a-e}IntStat.ChangeCondition bit) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
(c) The host issues an IN transaction and performs the status stage. Control transfers without a data stage are performed without the data stage shown in this example. Host to Device Device to Host Fig. 1-34 Control transfer with data stage in OUT direction EPSON S2R72V18 Technical Manual (Rev.1.00)
If the stage is in the OUT direction, set the transaction type (H_CH0Config_1.TID) to “OUT,” set the other basic setting registers appropriately and execute the transaction. For the status stage, the IRP data quantity (H_CH0TotalSize_H,L) should be set to “0x0” before executing the transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
(4) Set the control transfer support execute (H_CTL_SupportControl.CTL_SupportGo). The control transfer stage (H_CTL_SupportControl.CTL_SupportState) value is written to the H_CTL_SupportControl register here as “Idle(00b).” (5) Execute the SETUP transaction using the SETUP register data (8 bytes) (SETUP stage). EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 92
ChangeCondition status notification (H_CH0IntStat.ChangeCondition bit) is issued. If control transfer is aborted, control transfer support execution (H_CTL_SupportControl.CTL_SupportGo) is cleared. Status notification is issued once the control transfer abort processing is completed. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 93
Control transfer H_CH0IntStat.CTL_SupportCmp Indicates control transfer execution results execution results H_CH0IntStat.CTL_SupportStop using the control transfer support function. Transaction status H_CH0IntStat.TotalSizeCmp, Indicates transaction results. H_CH0IntStat.TranACK, H_CH0IntStat.TranErr, H_CH0IntStat.ChangeCondition Transaction condition H_CH0ConditionCode.ConditionCode Indicates transaction result specifics. code EPSON S2R72V18 Technical Manual (Rev.1.00)
When TotalSize reaches zero, H_CHx{x=0,a-e}Config_0.TranGo is automatically cleared to end the transfer, and a TotalSizeCmp status notification (H_CHx{x=0,a-e}IntStat.TotalSizeCmp bit) is issued to the firmware. OUT transfers can be controlled in this way without controlling individual transactions with firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO area can be read in the order received by executing a DMA sequence for the CPU interface. The amount of FIFO data remaining can be checked using the DMA_Remain_H,L registers. If the FIFO becomes empty, the CPU interface pauses DMA automatically to control the flow. EPSON S2R72V18 Technical Manual (Rev.1.00)
OUT transaction is executed using a zero-length packet. If this transaction ends normally, H_CHx{x=a-e}Config_0.TranGo is automatically cleared to end the transfer, and a TotalSizeCmp status notification (H_CHx{x=a-e}IntStat.TotalSizeCmp) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
Bulk Completion confirmation Fig. 1-37 Bulk-only support function control Host Host Controller (Channel Resister) Bulk (Bulk-only) Completion confirmation Bulk DATA Completion confirmation Bulk Completion confirmation Fig. 1-38 Control when not using bulk-only support function (reference) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 98
IN transaction. The IN-direction data transport also ends when a short packet is received for the IN transaction. • If the CBW data dCBWDataTransferLength value is 0x00000000, no data transport is performed. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 99
(H_CHaIntStat.BO_SupportStop). The transport for which an error occurred is indicated by the transport state (H_CHaBO_SupportControl.BO_TransportState). The condition code (H_CHaConditionCode) is set appropriately, and a ChangeCondition status notification (H_CHaIntStat.ChangeCondition bit) issued. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 100
For detailed information on transaction errors, refer to “1.4.3 Transactions.” For detailed information on FIFO CBW and CSW areas, refer to “1.6 FIFO Management.” For detailed information on DMA, refer to “1.7.3.2 DMA0/DMA1(DMA ch.0 / ch.1).” EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 101
Indicates the transport state for which an error occurred if stopped due to an error. Status transport H_CSW_RcvDataSize Indicates the data quantity received for received data quantity the status transport. EPSON S2R72V18 Technical Manual (Rev.1.00)
Item Register/bit Description Audio class assist H_CHx{x=b-e}Config_1.Audio441 Enables the audio class assist function. This function function can be used only for OUT-direction isochronous transfers. Do not set this bit to “1” when using other transfers. EPSON S2R72V18 Technical Manual (Rev.1.00)
GoRESUME (Trigger: DetectRmtWkup or Nothing) SUSPEND GoRESET Transition conditions (Trigger: Noting) (Trigger: Interrupt forming trigger) Fig. 1-39 Host state transition diagram Tables 1-31 and 1-32 show the host state management support function settings and status. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 104
Device chirp normal H_SIE_IntStat_0.DetectDevChirpOK Indicates that the chirp signal from the detection status device is normal. Device chirp error detection H_SIE_IntStat_0.DetectDevChirpNG Indicates an error in the chirp signal from the status device. (continued) EPSON S2R72V18 Technical Manual (Rev.1.00)
• Immediately stops the USB host transaction execute function. • Sets the port to FS mode and “NonDriving.” • Switches off VBUSEN_A. • Disables all detection functions, including connection detection, disconnection detection, remote wakeup detection, and device chirp detection. EPSON S2R72V18 Technical Manual (Rev.1.00)
However, if a disconnection is detected, the disconnection detection function is automatically disabled and connection detection automatically repeated. EPSON S2R72V18 Technical Manual (Rev.1.00)
• The port is set to HS mode and “NormalOperation” (reset signal SE0 is driven for the USB cable signal). • The connection detection, disconnection detection, and remote wakeup detection functions are disabled. • The device chirp detection function is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 108
Reset completion status notification (H_SIE_IntStat_1.ResetCmp) is issued to the firmware. (4) If the connected device is LS The port is set to LS mode after issuing the USB reset for the specified timeframe. Reset completion status notification (H_SIE_IntStat_1.ResetCmp) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
• Suspend change completion status notification (H_SIE_IntStat_1.SuspendCmp) is issued. Remote wakeup detection status notification (H_SIE_IntStat_0.DetectRmtWkup) is then issued to the firmware on detection of a remote wakeup signal (“K” for at least 2.5 µs) if the remote wakeup receipt permission (H_NegoControl_1.RmtWkupDetEnb) is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
A resume signal (“K”) is issued for the specified duration. When the resume signal has been issued, the port reverts to the mode setting prior to entering “SUSPEND,” and returns to “NormalOperation.” Resume completion status notification (H_SIE_IntStat_1.ResumeCmp) is issued to the firmware. EPSON S2R72V18 Technical Manual (Rev.1.00)
VBUSFLG_A VBUS_Err VBUSEN_A VBUS_State Don't care XcvrSelect[1:0] TermSelect NonDriving OpMode[1:0] Don't care PortSpeed[1:0] Don't care LineState[1:0] Don't care Don't care DP / DM VBUS VBUS error VBUS off normal Fig. 1-40 VBUS error detection timing EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 112
VBUSFLG_A (external USB power switch error occurrence 0 (reference) flag) input terminal changes to L (error). VBUS error detection status notification (USB_HostIntStat.VBUS_Err) is issued. (H/W) Write 0x01 to change to “IDLE” state after writing 0x80 to (reference) H_NegoControl_0. (F/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
Value Parameter Device is disconnected. 0 (reference) Disconnect detection status notification T0 + 2.5 µs< T1 {T DDIS (H_SIE_IntStat_0.DetectDiscon) is issued. (H/W) Set the host state change execute No specifications (reference) (H_NegoControl_0.AutoMode) to “GoWAIT_CONNECT.” (F/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
Disable BS and NRZI PortSpeed[1:0] LineState[1:0] 'J' State 'K' State DP / DM 'J' State 'K' State FS Mode Downstream Resume Upstream Resume Device is suspended (FS Mode) Fig. 1-43 Remote wakeup timing (HS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 116
(H_NegoControl_0.AutoMode) is set to “GoRESUME.” (F/W) T3 (reference) The host starts sending the resume signal (“K”). (H/W) T3 < T0 + 1 ms {T URSM Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
T2 < T1 + 900 µs (reference) set to “GoRESUME.” (F/W) The host starts sending the resume signal (“K”). (H/W) T3 < T0 + 1 ms {T URSM (reference) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
T2 < T1 + 900 µs (reference) set to “GoRESUME.” (F/W) The host starts sending the resume signal (“K”). (H/W) T3 < T0 + 1 ms {T URSM (reference) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(6) The device chirp detection function is disabled if a device chirp is detected (T3). time HostState[2:0] Don't care RESET DetectDevChirpOK XcvrSelect[1:0] HS/FS TermSelect OpMode[1:0] Normal Operation LineState[1:0] 'J' State DP / DM Device K Reset Upstream Port Chirp Fig. 1-46 Device chirp timing EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 120
} < T3 < The device chirp detection function is disabled. T0 + 7.0 ms {T UCHEND Device chirp normal detection status notification (DetectDevChirpOK) is issued. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(1) Set H_NegoControl_0.AutoMode to “GoDISABLED.” (2) Set ChipReset.ResetMTM to “1” and reset the transceiver macro. (3) Set ChipReset.ResetMTM to “0” after at least three cycles have elapsed with a 60 MHz clock and cancel the transceiver macro reset. EPSON S2R72V18 Technical Manual (Rev.1.00)
(T4). If a disconnection is detected during this period, the disconnect detection function is disabled and connect detection repeated from step (8). Disconnect detection status notification (H_SIE_IntStat_0.DetectDiscon) is not issued. (12) Disables the disconnect and connect detection functions (T4). EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 126
DCNN Issues connect detection status notification (DetectCon). T3 + 100 ms {T } < T4 ATTDB Disables the disconnect and connect detection functions. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(H_XcvrControl.XcvrSelect) and port speed (H_NegoControl_1.PortSpeed[1:0]) are both set to “FS,” and connect detection is repeated from step (8). Disconnect detection status notification (H_SIE_IntStat_0.DetectDiscon) is not issued. (14) Disables the disconnect and connect detection functions (T4). EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 128
Issues connect detection status notification (DetectCon). (H/W) T3 + 100 ms {T } < T4 ATTDB Disables the disconnect and connect detection functions. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] SE0/'J' State 'J' State DP / DM Last Activity 'J' State HS Mode FS Mode Device is suspended (FS Mode) Fig. 1-51 Disabled timing (HS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 130
} < WTREV T1 + 3.125 ms Enables the disconnect detection function. (H/W) T1 + 4 ms < T3 Issues disabled change completion status. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] 'J' / 'K' State 'J' State DP / DM Last Activity 'J' State FS Mode Device is suspended (FS Mode) Fig. 1-52 Disabled timing (FS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 132
} < WTREV T1 + 3.125 ms Enables the disconnect detection function. T1 + 4 ms < T3 Issues disabled change completion status. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] 'J' / 'K' State 'J' State DP / DM Last Activity 'LS_J' State LS Mode Device is suspended (LS Mode) Fig. 1-53 Disabled timing (LS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 134
} < WTREV T1 + 3.125 ms Enables the disconnect detection function. T1 + 4 ms < T3 Issues disabled change completion status. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
(9) The host starts output of “Chirp J” switching from “Chirp K” (T4). (10) The host starts output of “Chirp K” switching from “Chirp J” (T5). The host then alternately outputs “Chirp K” and “Chip J.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 136
OpMode[1:0] Normal Operation Normal Operation Disable BS and NRZI PortSpeed[1:0] LineState[1:0] 'J' State DP / DM Device K Reset Operational Upstream Downstream Port Chirp Port Chirp Device HS Mode Fig. 1-54 Reset timing (HS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
(10) The host starts output of “Chirp J” switching from “Chirp K” (T5). (11) The host starts output of “Chirp K” switching from “Chirp J” (T6). The host then alternately outputs “Chirp K” and “Chip J.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 141
Disable BS and NRZI PortSpeed[1:0] LineState[1:0] 'J' State DP / DM Device K Reset Operational Upstream Downstream Port Chirp Port Chirp Device HS Mode Fig. 1-56 Detect device chirp NG timing (with chirp completion disable set to 1) EPSON S2R72V18 Technical Manual (Rev.1.00)
(F/W) Sends the first KeepAlive. (H/W) T4 + 0.9 ms < T5 < T4 + 1.1 ms (reference) (T5 < T2 + 3 ms) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] SE0/'J' State 'J' State DP / DM Last Activity 'J' State HS Mode FS Mode Device is suspended (FS Mode) Fig. 1-60 Suspend timing (HS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 148
} < T3 WTRSM Enables the remote wakeup detection function if remote wakeup receipt permission is enabled. Issues suspend change completion status notification. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] 'J' / 'K' State 'J' State DP / DM Last Activity 'J' State FS Mode Device is suspended (FS Mode) Fig. 1-61 Suspend timing (FS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 150
} < T3 WTRSM Enables the remote wakeup detection function if remote wakeup receipt permission is enabled. Issues suspend change completion status notification. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrSelect[1:0] TermSelect Normal Operation Power Down OpMode[1:0] PortSpeed[1:0] LineState[1:0] 'J' / 'K' State 'J' State DP / DM Last Activity 'LS_J' State LS Mode Device is suspended (LS Mode) Fig. 1-62 Suspend timing (LS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 152
} < T3 WTRSM Enables the remote wakeup detection function if remote wakeup receipt permission is enabled. Issues suspend change completion status notification. (H/W) Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
PortSpeed[1:0] LineState[1:0] 'J' State 'K' State 'J' State 'J' / 'K' State Driven 'J' State 'K' State DP / DM 'J' State FS Mode Downstream Resume Device is suspended Fig. 1-64 Resume timing (FS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 156
Sets the operating mode to “NormalOperation.” (H/W) Issues the first SOF. (H/W) T4 < T1 + 3 ms (reference) T3 + 0.9 ms < T4 < T3 + 1.1 ms Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
'J' State 'K' State 'J' State 'J' State Keep Driven 'LS_J' State 'LS_K' State Alive DP / DM LS_J 'LS_J' State 'LS_J' State LS Mode Downstream Resume Device is suspended Fig. 1-65 Resume timing (LS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 158
Sets the operating mode to “NormalOperation.” (H/W) Issues the first KeepAlive. (H/W) T4 < T1 + 3 ms (reference) T3 + 0.9 ms < T4 < T3 + 1.1 ms Note: Brackets {} indicate names defined in the USB 2.0 standards. EPSON S2R72V18 Technical Manual (Rev.1.00)
Sets H_NegoControl_0.AutoMode to 0 (reference) “GoWAIT_CONNECTtoDIS.” (F/W) Performs the same processing performed for “GoWAIT_CONNECT.” (H/W) Detects connection and issues connect detection status notification. Performs the same processing performed for “GoDISABLED.” (H/W) Issues disabled completion status. (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
“1.4.10.3.3 GoDISABLED,” “1.4.10.3.4 GoRESET,” and “1.4.10.3.5 GoOPERATIONAL,” respectively. For detailed information on procedures and timing when an error (disconnection, VBUS error, or device chirp error) is detected in midcourse, refer to “1.4.10.2.2 Disconnect Detection” and “1.4.10.2.1 VBUS Error Detection.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 161
Issues disabled completion status. Performs the same processing performed for “GoRESET.” (H/W) Detects the device chirp and issues device chirp normal detection status. (H/W) Issues reset completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
VBUS error) is detected in midcourse, refer to “1.4.10.2.2 Disconnect Detection” and “1.4.10.2.1 VBUS Error Detection,” respectively. time HostState[2:0] Don't care WAIT_CONNECT RESET OPERATIONAL DISABLED DetectCon DisabledCmp DetectDevChirpOK DetectDevChirpNG ResetCmp Fig. 1-68 GoWAIT_CONNECTtoOP timing (FS or LS mode) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 163
Issues disabled completion status. Performs the same processing performed for “GoRESET.” (H/W) No device chirp normal/error detection status notification issued, since no device chirp detected. (H/W) Issues reset completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
0 (reference) Performs the same processing performed for “GoRESET.” (H/W) Detects the device chirp and issues device chirp normal detection status notification. (H/W) Issues reset completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
0 (reference) Performs the same processing performed for “GoRESET.” (H/W) No device chirp normal/error detection status notification issued, since no device chirp detected. (H/W) Issues reset completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
(5) Performs the same processing performed for “GoRESUME” (T2). (6) Issues resume completion status (H_SIE_IntStat_1.ResumeCmp) (T3). (7) Performs the same processing performed for “GoOPERATIONAL” (T3). time HostState[2:0] OPERATIONAL SUSPEND RESUME OPERATIONAL SuspendCmp DetectRmtWkup ResumeCmp Fig. 1-71 GoSUSPENDtoOP timing EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 167
Issues suspend change completion status notification. (H/W) Detects the remote wakeup and issues remote wakeup detection status notification. Performs the same processing performed for “GoRESUME.” (H/W) Issues resume completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
Table 1-65 GoRESUMEtoOP timing values Timing Description Value Parameter Sets H_NegoControl_0.AutoMode to “GoRESUMEtoOP.” (F/W) 0 (reference) Performs the same processing performed for “GoRESUME.” (H/W) Issues resume completion status. Performs the same processing performed for “GoOPERATIONAL.” (H/W) EPSON S2R72V18 Technical Manual (Rev.1.00)
This means operations will no longer be correctly performed. GoACTIVE S0: SLEEP S1: SNOOZE S2: ACTIVE GoSLEEP Port 0 GoACTIVE S0: SLEEP S1: SNOOZE S2: ACTIVE GoSLEEP Port 1 Fig. 1-73 Power management state transitions EPSON S2R72V18 Technical Manual (Rev.1.00)
WakeUpTim_H,L registers. The WakeUpTim_H,L registers allow asynchronous access and can be read from or written to even in the SLEEP state. The USB host circuit operates in this state, since it requires a 480 MHz SCLK480. EPSON S2R72V18 Technical Manual (Rev.1.00)
“1.6.3.1 CBW Area (for USB device).” This CBW area is also used for the CHa bulk-only support function with USB hosts. For detailed information on actual usage procedures, refer to “1.6.3.2 CBW Area (for USB host).” EPSON S2R72V18 Technical Manual (Rev.1.00)
The RAM_WrAdrs_H,L register values are updated by the quantity of data written for each write cycle. This enables continuous writing to the RAM_WrDoor_0,1 registers when writing data to continuous addresses. Note that the RAM_WrDoor_0,1 registers allow writing only. EPSON S2R72V18 Technical Manual (Rev.1.00)
(0x0000) is written to the RAM_WrAdrs_H,L registers, then 31 bytes of valid data are written via the RAM_WrDoor_0,1 registers. The CBW area holds 32 bytes; there should be no issue with leakage into other areas, even when 32 bytes are written in word access. EPSON S2R72V18 Technical Manual (Rev.1.00)
RAM_Rd_00 to RAM_Rd_1F after checking the RAM_RdCmp bit. The data read out is stored in sequence from RAM_Rd_00. The RAM_Rd register values will be invalid beyond the preset size if the size set in the RAM_RdCount register is smaller than 32. EPSON S2R72V18 Technical Manual (Rev.1.00)
AREAx{x=0-5}Join_0.JoinDMA bit for each DMA channel. It also indicates the remaining space available for writing in the FIFO for the single area selected by the AREAx{x=0-5}Join_0.JoinDMA bit for each DMA channel. EPSON S2R72V18 Technical Manual (Rev.1.00)
Conditions under which transactions are not performed include the following: ActiveUSB bit is cleared when each endpoint is not joined to FIFO areas and when ForceNAK is not set. There are no restrictions that apply to multiple ports, since individual FIFO areas are independent. EPSON S2R72V18 Technical Manual (Rev.1.00)
The XCS signal is temporarily negated. For example, the same operation is performed as in step Normal register access is possible once this mode setup is complete. Ideally, read the ChipConfig register after setting to check mode setup. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 179
Signals other than those included in Fig. 1-76 in mode setup can be either High or Low, provided the AC ratings are satisfied. The CPUIF mode must always be set after a hard reset, and only while uninitialized period. The following CPUIF descriptions primarily explain Strobe and Big-endian modes. EPSON S2R72V18 Technical Manual (Rev.1.00)
Use byte-reading if a byte boundary exists. If the FIFO_Rd_0,1 registers are used for word-reading in this case, valid data will only be output on one side. For details, refer to “1.7.3.1.5 FIFO Access Fractional Number Processing.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Low. If writing to High only from a state in which byte boundaries exist in the FIFO, writing will be ignored (Fig. 1-78 (4)). EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 183
For each access, data is read out in the sequence A, B, C, and D. These are the normal read operations. Before reading After reading Before reading After reading start start start start Fig. 1-79 FIFO reading processing (normal operation) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 184
(4) The join is restored after the 33 bytes of data have been sent from the USB. (1 + 33 bytes) (5) The CPUIF latches the 34-byte ready and starts the continuous operation sequence. (6) 34 bytes of data are word-read. EPSON S2R72V18 Technical Manual (Rev.1.00)
1.7.3.1.8 Asynchronous Register Access (Reading) As with synchronous register reading, register data is output to the external bus with the read (asserted for both XCS and XRD) period as the output enable period. EPSON S2R72V18 Technical Manual (Rev.1.00)
If the internal FIFO contains free space for writing or data for reading and counts remain in the DMA_Count_HH,HL,LH,LL registers, XDREQ is asserted and DMA transfer enabled. • Free-run mode If the internal FIFO contains free space for writing or data for reading, XDREQ is asserted and DMA transfer enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 187
Ready < 2 XDREQ Assert Negate Ready (Ready-1 if Transfer quantity ready is odd number) * Req here is the DMA_Config.ReqAssertCount setting, Ready is the FIFO free space and data quantity, and Count is the DMA_Count_HH,HL,LH,LL value. EPSON S2R72V18 Technical Manual (Rev.1.00)
DMA_Stop bit, stop the CPU DMAC (master) first. Fig. 1-81 shows the operational timing for starting transfers in count mode and for stopping transfers using the DMA_Control.DMA_Stop bit before transferring the preset number of counts. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 189
DMA_Ready. (5) XDREQ is negated when the DMA_Count last data is transferred. The DMA circuit is stopped once the DMA_Count quantity has been transferred. Fig. 1-82 Count mode write timing 2 EPSON S2R72V18 Technical Manual (Rev.1.00)
DMA_Stop bit, first stop the CPU DMAC (master). Fig. 1-83 shows the operational timing for starting transfers in count mode and the DMA transfer ending once the preset number of counts have been transferred. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 191
(5) XDREQ is asserted when data is written to the FIFO from the USB, permitting data to be read from externally. (6) XDACK is asserted and DMA transfer starts. (7) XDREQ is negated when the DMA_Count last data is transferred. Fig. 1-83 Count mode read timing EPSON S2R72V18 Technical Manual (Rev.1.00)
DMA_Stop bit, stop the CPU DMAC (master) first. The CPU_IntStat.DMA_Countup bit is set if the DMA_Count_HH,HL,LH,LL register values overflow during DMA transfer in Free-run mode. DMA transfer continues even if this occurs, and DMA_Count_HH,HL,LH,LL also continue and are counted. EPSON S2R72V18 Technical Manual (Rev.1.00)
(3) XDREQ is negated when the continuous transfer quantity (REQ assert count) is complete. (4) Free space for the next continuous transfer (DMA_Ready) exists once the first continuous transfer is complete. DREQ is asserted on receipt of DMA_Ready. Fig. 1-84 REQ assert count option write timing EPSON S2R72V18 Technical Manual (Rev.1.00)
For detailed information on operational timing, refer to Figures 1-83 and 1-84. 1.7.3.2.9 DMA FIFO Access Fractional Number Processing Refer to “1.7.3.1.5 FIFO Access Fractional Number Processing.” Note that the DMA lacks an opening for byte-reading or writing. EPSON S2R72V18 Technical Manual (Rev.1.00)
0x27E CPUIF_MODE 0xXXXX CPU_Endian BusMode All write accesses to the LSI are treated as write accesses to this register for processing during the uninitialized period. Access to this register is ignored once the initialization period ends. EPSON S2R72V18 Technical Manual (Rev.1.00)
Device/Host Common Register Map Registers that can be read from or written to even in the SLEEP state appear in bold italic. All other registers can be read from or written to in the ACTIVE state. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 198
2. Register Maps Registers that can be read from or written to even in the SLEEP state appear in bold italic. All other registers can be read from or written to in the ACTIVE state. EPSON S2R72V18 Technical Manual (Rev.1.00)
Device/Host Common Register Map Registers that can be read from or written to even in the SLEEP state appear in bold italic. All other registers can be read from or written to in the ACTIVE state. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 213
2. Register Maps Registers that can be read from or written to even in the SLEEP state appear in bold italic. All other registers can be read from or written to in the ACTIVE state. EPSON S2R72V18 Technical Manual (Rev.1.00)
Addresses are shown as offset addresses from the base address 000h for Port 0 and from the base address 200h for Port 1. Registers and register bits defined for Port 0 but not for Port 1 are indicated accordingly. Port1 Offset Address 0x200 Port0 Offset Address 0x000 Base Address Fig. 3-1 Address notation EPSON S2R72V18 Technical Manual (Rev.1.00)
SLEEP state. Bit5 CPU_IntStat Indirectly specifies interrupt factors. It is set to “1” when the CPU_IntStat register includes interrupt factors and the CPU_IntEnb register bit corresponding to the interrupt factors is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 225
Bit0 FinishedPM Directly specifies interrupt factors. It is set to “1” on reaching the particular specified state when GoSLEEP or GoACTIVE is set by the PM_Control register. This bit is enabled even in SLEEP state. EPSON S2R72V18 Technical Manual (Rev.1.00)
This bit allows reading even in SLEEP state. Bit4 D_BulkIntStat Indirectly specifies interrupt factors. Set to “1” when D_BulkIntStat register includes interrupt factors and the D_BulkIntEnb register bit corresponding to the interrupt factors is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 227
Bit0 D_EPrIntStat Indirectly specifies interrupt factors. Set to “1” when the D_EPrIntStat register includes interrupt factors and the D_EPrIntEnb register bit corresponding to the interrupt factors is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
USB host function is enabled in SUSPEND state. Bit5 H_SIE_IntStat1 Indirectly specifies interrupt factors. Set to “1” when the H_SIE_IntStat1 register includes interrupt factors and the H_SIE_IntEnb1 register bit corresponding to the interrupt factors is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 229
Bit0 H_CHrIntStat Indirectly specifies interrupt factors. Set to “1” when the H_CHrIntStat register includes interrupt factors and the H_CHrIntEnb register bit corresponding to the interrupt factors is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
The DMA_Count_HH,HL,LH,LL values return to 0, and DMA operation continues. Bit0 DMA_Cmp Directly specifies interrupt factors. Set to “1” when the DMA transfer is stopped or if the specified transfer quantity has been sent and end processing is complete. EPSON S2R72V18 Technical Manual (Rev.1.00)
Set to “1” if the FIFO area for the corresponding area becomes full when the AREAn{n=0-5}Join_0.JoinFIFO_Stat bit is set to “1.” Bit0 FIFO_Empty Directly specifies interrupt factors. Set to “1” if the FIFO area for the corresponding area becomes empty when the AREAn{n=0-5}Join_0.JoinFIFO_Stat bit is set to “1.” EPSON S2R72V18 Technical Manual (Rev.1.00)
It indicates the port generating the interrupt when the XINT terminal is asserted. Bit7-2 Reserved Bit1 Port1MainIntStat Indirectly specifies interrupt factors. Indicates that Port 1 is the interrupt source. Bit0 Port0MainIntStat Indirectly specifies interrupt factors. Indicates that Port 0 is the interrupt source. EPSON S2R72V18 Technical Manual (Rev.1.00)
This register permits or prohibits interrupt signal (XINT) assertion by MainIntStat register interrupt factors. Interrupts are permitted if the corresponding bit is set to “1.” The EnUSB_DeviceIntStat, EnUSB_HostIntStat, and EnFinishedPM bits are enabled even in SLEEP state. The EnUSB_DeviceIntStat bit is not defined for Port 1. EPSON S2R72V18 Technical Manual (Rev.1.00)
0: Disable 1: Enable This register is not defined for Port 1. Permits or prohibits MainIntStat register USB_DeviceIntStat bit assertion by USB_DeviceIntStat register interrupt factors. The EnVBUS_Changed and EnD_SIE_IntStat bits are enabled even in SLEEP state. EPSON S2R72V18 Technical Manual (Rev.1.00)
0: Disable 1: Enable 0: EnH_CHrIntStat 0: Disable 1: Enable Permits or prohibits MainIntStat register USB_HostIntStat bit assertion by USB_HostIntStat register interrupt factors. The EnVBUS_Err bit and EnLineStateChanged bit are enabled even in SLEEP state. EPSON S2R72V18 Technical Manual (Rev.1.00)
3: RevisionNum [3] 2: RevisionNum [2] 1: RevisionNum [1] 0: RevisionNum [0] Indicates the LSI revision number. This register can be accessed even in SLEEP state. The revision number for the current specifications is 0x08. EPSON S2R72V18 Technical Manual (Rev.1.00)
Note that this register should only be written to for resets. Writing to this register in contravention of the AC spec except for resets will cause malfunctions. EPSON S2R72V18 Technical Manual (Rev.1.00)
XCS and CA9 terminal as the CPU writing state ends. This minimizes unnecessary power consumption, since the CPU interface initial driver is off if an attempt is made to operate signal lines other than the XCS and CA9 terminal. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 241
PM_State will be 0b01 if the referenced port is in SLEEP state and the other ports are in ACTIVE state. This bit should not be referenced, since it varies in sequence to the corresponding state from when the GoSLEEP or GoACTIVE bits are set until when MainIntStat.FinishedPM interrupt status is set. EPSON S2R72V18 Technical Manual (Rev.1.00)
The internal SCLK must be stabilized to 60 MHz ±10% within 5.1 ms after USB RESET detection if dropping to SLEEP state for USB SUSPEND during device operation. The total time for oscillator stabilization time + PLL stabilization time (within 250 µs) must therefore not exceed 5.1 ms. EPSON S2R72V18 Technical Manual (Rev.1.00)
7: VBUS_Enb 0: Disable 1: Enable / Host This sets host-related operations. This register is enabled even in SLEEP state. Bit7 VBUS_Enb Sets the VBUSEN terminal (output) state. The default is Low level. Bit6-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Selects and enables the HS, FS, or LS transceiver. 00: High Speed transceiver 01: Full Speed transceiver 10: Reserved 11: Low Speed transceiver This bit should not be set manually. It is automatically set by the hardware when H_NogoControl_0.AutoMode is set. Bit3-2 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 245
However, to detect signal line change status, refer to “1.2.2.2 Signal Line Change Status Usage” when this bit needs setting. OpMode “Normal Operation” Normal usage state “2Non-Driving” Non-used state “Disable Bitstuffing and NRZI encoding” Bitstuffing and NRZI encoding functions disabled in normal usage state “Power-Down” Only single-end receiver used EPSON S2R72V18 Technical Manual (Rev.1.00)
The HS receiver received value is indicated if XcvrSelect is “0” (with HS transceiver selected). The USB bus activity is indicated when TermSelect is “0.” LineState TermSelect DP / DM LineState [1:0] Don’t Care Bus activity 0b00 0b01 0b10 0b11 EPSON S2R72V18 Technical Manual (Rev.1.00)
Activity present: 0b01 No activity: 0b00 01 or 11 0b00 01 or 11 0b01 01 or 11 0b10 01 or 11 0b11 Note: The XcvrSelect[1:0] = “10” code is reserved and does not guarantee the operation. EPSON S2R72V18 Technical Manual (Rev.1.00)
Sets HS transmitter slew rate to one of four levels. 00: Slow 01: ↑ 10: ↓ 11: Fast Bit3-2 Reserved Bit1-0 MTM_TermValue[1:0] Sets HS transmission route termination to one of four levels. 00: High 01: ↑ 10: ↓ 11: Low EPSON S2R72V18 Technical Manual (Rev.1.00)
USB host block is suspended. If HOST x DEVICE is “1,” i.e., in host mode, the system clock is fed to the common block and USB host block, and provision of the system clock to the USB device block is suspended. EPSON S2R72V18 Technical Manual (Rev.1.00)
If this register is read when the FIFO contains byte boundaries, valid data is output to one side only. For detailed information, refer to “FIFO Access Fractional Number Processing.” To read out FIFO data using this register, the quantity of data that can be read should first be checked using the FIFO_RdRemain_H,L registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
For detailed information, refer to “FIFO Access Fractional Number Processing.” To write data to the FIFO using this register, the quantity of data that can be written must first be checked using the FIFO_WrRemain_H,L registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 252
Indicates the quantity of readable data within the FIFO connected to the CPU I/F by the AREAn{n=0-5}Join_0.JoinCPU_Rd bit. The FIFO_RdRemain_H and FIFO_RdRemain_L registers must both be accessed as a pair to obtain the FIFO readable data quantity. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 253
FIFO. Allow at least one CPU cycle before checking the FIFO free space. The FIFO_WrRemain_H and FIFO_WrRemain_L registers must be accessed as a pair to obtain FIFO free capacity. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 254
Enables reading of data in byte units from the FIFO set by the AREAn{n=0-5}Join_0.JoinCPU_Rd bit. To read out FIFO data using this register, the quantity of data that can be read must first be checked using the FIFO_RdRemain_H,L registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 255
Enables writing of data in byte units to the FIFO set by the AREAn{n=0-5}Join_0.JoinCPU_Wr bit. To write data to the FIFO using this register, the quantity of data that can be written must first be checked using the FIFO_WrRemain_H,L registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 256
RAM_RdControl register bit has been set and the RAM_Rd function started. Values cannot be guaranteed if this register is read while the RAM_Rd function is operating. Also note that writing to this register while the RAM_Rd function is operating will result in malfunctions. Bit1-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 257
1F} register value is enabled, the CPU_IntStat.RAM_RdCmp bit is set to “1,” and the bit is automatically cleared. The function for the RAM_GoRdCBW_CSW bit takes priority if set concurrently with the RAM_GoRdCBW_CSW bit. Bit5-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 258
RAM_Rd function is operating will result in malfunctions. Note that this register can be set to a maximum of 32 bytes. Setting a data quantity exceeding 32 bytes will result in malfunctions. Bit1-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 259
RAM_WrDoor_0,1 registers. Note that RAM_WrAdrs cannot be accurately checked immediately after writing to the RAM_WrDoor_0,1 registers. Allow at least one CPU cycle before checking RAM_WrAdrs. For detailed information on writing data, refer to “RAM_WrDoor_0,1 Registers.” EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 260
Note, however, that if the area to which descriptor data is written overlaps an area retained by another endpoint, the data can be overwritten. For a USB host, data can be written to the CBW areas by the RAM_WrDoor_0,1 registers. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 262
If the value set in the RAM_RdCount register is less than 32 bytes, the data read from RAM is stored in sequence from RAM_Rd_00. Register values above the count set in the RAM_RdCount register (e.g., RAM_Rd_10 to RAM_Rd_1F when the count setting is “16”) become invalid. EPSON S2R72V18 Technical Manual (Rev.1.00)
XDREQ is first negated, then asserted again once the free space or data is confirmed as being at least as equal to the assert count. In other words, transfers for the assert count number set are guaranteed for a single XDREQ assert. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 264
Negate Transferable quantity Mode ReqAssertCount [1:0] 16bit mode 8bit mode 0b00 Normal Normal 0b01 16Byte(8Count) 16Byte(16Count) 0b10 32Byte(16Count) 32Byte(32Count) 0b11 64Byte(32Count) 64Byte(64Count) The REQ assert count option is not used for the 00 (Normal) setting. EPSON S2R72V18 Technical Manual (Rev.1.00)
“0.” The CPU_IntStat register DMA_Cmp bit is also set to “1.” To restart the DMA transfer, check the DMA_Running bit or DMA_Cmp bit, then wait for the DMA to end. Bit0 DMA_Go Setting this bit to “1” starts the DMA transfer. EPSON S2R72V18 Technical Manual (Rev.1.00)
For writing, this indicates the quantity of free space in the FIFO connected to the DMA by the AREAn{n=0-5}Join_0.JoinDMA bit. The correct FIFO free space cannot be checked using this register immediately after a DMA write. Allow at least one CPU cycle before checking the FIFO free space. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 268
The count cannot be accurately checked using these registers immediately after DMA writing. Allow at least one CPU cycle before checking the count. These registers should be read out in the sequence of DMA_Count_HH,HL followed by DMA_Count_LH,LL. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO connected to the DMA by the AREAn{n=0-5}Join_0.JoinDMA bit. Here, the DMA_Control.Dir bit must be set to DMA read. DMA access is possible in the same way, whether DMA_RdData_0 or DMA_RdData_1 is accessed, when operating in 8-bit mode. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO connected to the DMA by the AREAn{n=0-5}Join_0.JoinDMA bit. The DMA_Control.Dir bit must be set to DMA write here. DMA access is possible in the same way, whether DMA_WrData_H or DMA_WrData_L is accessed when operating in 8-bit mode. EPSON S2R72V18 Technical Manual (Rev.1.00)
For normal use, to protect the CPU_Config and ClkSelect register settings, the CPU_Config and ClkSelect registers should be set as required before setting this register to a value other than 56h (e.g. 00h). This bit can be accessed even in SLEEP state. EPSON S2R72V18 Technical Manual (Rev.1.00)
This register must be set before operating the LSI. The register is enabled even in SLEEP state. Bit7-1 Reserved Bit1-0 ClkSelect This sets the clock frequency used by the LSI. 0: 12 MHz 1: 24 MHz EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the XINT output mode. 0: 1/0 mode 1: Hi-z/0 mode Bit5 DREQ_Level This sets the XDREQ logic level. 0: Negative logic 1: Positive logic Bit4 DACK_Level This sets the XDACK logic level. 0: Negative logic 1: Positive logic EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 274
0: 16bit Strobe mode 1: 16bit BE mode This bit indicates the value written to the CPUIF_MODE register during the initialization period. Bit0 Initialized This flag indicates that initialization is complete. It is normally read as “1.” EPSON S2R72V18 Technical Manual (Rev.1.00)
The DMA for this chip should be controlled exclusively by the software to prevent simultaneously launching with Port 0 and Port 1. Bit10,2 CPU_Endian Sets the CPUIF endian. Bit9,1 BusMode Sets the CPUIF write access mode. Bit14-11,9,6-3,0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
The area assigned to the FIFO area AREAx{x=0-5} extends up to the first byte of the address set by AREAx{x=0-5}EndAdrs. The AREAnFIFO_Clr register ClrAREAx{x=0-5} bit must always be set to “1” and the FIFO area AREAx{x=0-5} FIFO cleared after setting AREAx{x=0-5}StartAdrs and AREAx{x=0-5}EndAdrs. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 277
Note that the LSI will not operate correctly if the MaxSize for the USB device/host joined exceeds the area set here. The same applies if the FIFO area overlaps another FIFO area. This LSI has 4.5 kB of internal RAM and supports addresses up to 0x1200. Bit1-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
The area assigned to the FIFO area AREAx{x=0-5} extends up to the first byte of the address set by AREAx{x=0-5}EndAdrs. The AREAnFIFO_Clr register ClrAREAx{x=0-5} bit must always be set to “1” and the FIFO area AREAx{x=0-5} FIFO cleared after setting AREAx{x=0-5}StartAdrs and AREAx{x=0-5}EndAdrs. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 279
Note that the LSI will not operate correctly if the MaxSize for the USB device/host joined exceeds the area set here. The same applies if the FIFO area overlaps another FIFO area. This LSI has 4.5 kB of internal RAM and supports addresses up to 0x1200. Bit1-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
DMA is running (i.e., while the DMA_Running bit is “1”). This register only initializes the data retention information. It does not write or clear the data itself. Data in the RAM therefore cannot be cleared by this bit. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO_Rd_0,1, FIFO_ByteRd, and FIFO_Wr_0,1 registers. Only one of the JoinDMA, JoinCPU_Rd, and JoinCPU_Wr bits should be set to “1” at any given time. Writing “1” to more than one bit simultaneously may destabilize operations. EPSON S2R72V18 Technical Manual (Rev.1.00)
EPb or channel EPb. Bit1 JoinEPaCHa This connects endpoint EPa or channel CHa to the FIFO area AREAx{x=0-5}. Connecting enables performance of the transactions related to data transfers using endpoint EPa or channel EPa. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 283
Exercise caution when setting multiple JoinEPxCHx{x=0,a-e} bits simultaneously to the same FIFO area. Unforeseen operations may result, depending on the transaction order. We recommend against setting JoinEPxCHx{x=0,a-e}bits to the same FIFO area under normal conditions. EPSON S2R72V18 Technical Manual (Rev.1.00)
Do not set this register bit to “1” while the FIFO area is connected to the port (the bit corresponding to the AREAn{n=0-5}Join_0 register is set to “1”) and each port is running. Doing so will lead to malfunctions. EPSON S2R72V18 Technical Manual (Rev.1.00)
Do not set this register bit to “1” while the FIFO area is connected to the endpoint or channel (the bit corresponding to the AREAn{n=0-5}Join_1 register is set to “1”) and each endpoint and channel transaction is executed. Doing so will lead to malfunctions. EPSON S2R72V18 Technical Manual (Rev.1.00)
Addresses are shown as offset addresses from the base address 000h for Port 0. Port1 Offset Address 0x200 Port0 Offset Address 0x000 Base Address Fig. 3-1 Address notation EPSON S2R72V18 Technical Manual (Rev.1.00)
DisBusDetect bit to “1” to disable USB RESET/SUSPEND state detection to prevent incorrect detection of continuous resets. The DisBusDetect bit should be cleared to “0” to enable USB RESET/SUSPEND state detection after the reset processing has ended. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 288
The firmware should perform the following processing to prevent assertion of the XINT interrupt signal by the interrupt status when switching from this state. <When changing from DEVICE mode in ACTIVE state> Process and clear the interrupt status (D_SIE_IntStat.Bit5 to 0) Disable the interrupt status (D_SIE_IntEnb.Bit5 to 0) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 289
3. Register Details <When changing to DEVICE mode in ACTIVE state> Clear the interrupt status (D_SIE_IntStat.Bit5 to 0) Enable the interrupt status (D_SIE_IntEnb.Bit5 to 0) EPSON S2R72V18 Technical Manual (Rev.1.00)
This is set to “1” when the 13 CSW bytes are sent correctly. Bit2 CSW_Err Directly specifies interrupt factors. This is set to “1” when an error (ACK is not returned) occurs during CSW transmission. Bit1-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Bit2 D_EPcIntStat Indirectly specifies interrupt factors. This is set to “1” when the D_EPcIntStat register contains an interrupt factor and the D_EPcIntEnb register bit corresponding to the interrupt factor is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 292
Bit0 D_EPaIntStat Indirectly specifies interrupt factors. This is set to “1” when the D_EPaIntStat register contains an interrupt factor and the D_EPaIntEnb register bit corresponding to the interrupt factor is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
This is set to “1” when a NAK is returned in an IN transaction. Bit2 OUT_TranNAK Directly specifies interrupt factors. This is set to “1” when a NAK is returned in response to an OUT or PING transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 294
This is set to “1” if a STALL is returned in an IN transaction, if a packet error occurs, or if the handshake times out. Bit0 OUT_TranErr Directly specifies interrupt factors. This is set to “1” if a STALL is returned in an OUT transaction or if a packet error occurs. EPSON S2R72V18 Technical Manual (Rev.1.00)
This is set to “1” when a NAK is returned in an IN transaction. Bit2 OUT_TranNAK Directly specifies interrupt factors. This is set to “1” when a NAK is returned in response to an OUT or PING transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 296
This is set to “1” if a STALL is returned in an IN transaction, if a packet error occurs, or if the handshake times out. Bit0 OUT_TranErr Directly specifies interrupt factors. This is set to “1” if a STALL is returned in an OUT transaction or if a packet error occurs. EPSON S2R72V18 Technical Manual (Rev.1.00)
“1.” A NAK is returned to the host for endpoints cleared to “0.” Enable transactions by joining the endpoint to the FIFO area by setting the D_EPx{x=0,a-e} registers appropriately and using the AREAn{n=0-5}Join.JoinEPxCHx{x=0,a-e} bit if the corresponding bit of this register is set. EPSON S2R72V18 Technical Manual (Rev.1.00)
PING token is issued by the host. Enable transactions by joining the endpoint to the FIFO area by setting the D_EPx{x=0,a-e} registers appropriately and using the AREAn{n=0-5}Join.JoinEPxCHx{x=0,a-e} bit if the corresponding bit of this register is set. EPSON S2R72V18 Technical Manual (Rev.1.00)
0: Disable 1: Enable 0: EnSetAddressCmp 0: Disable 1: Enable This permits or prohibits assertion of the MainIntStat register D_SIE_IntStat bit using the D_SIE_IntStat register interrupt factors. The EnNonJ bit is enabled even in SLEEP state. EPSON S2R72V18 Technical Manual (Rev.1.00)
This is automatically set to “1” to enable the NonJ state detection function upon detection of the USB SUSPEND state when using the AutoNegotiation function. Clear this bit to “0” to reset from the USB SUSPEND state. For detailed information on the AutoNegotiation function, refer to the “Functions: AutoNegotiation Function” description. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 307
Bit0 ActiveUSB The LSI stops all USB device functions, since this bit is cleared to “0” after a hard reset. Setting this bit to “1” after setting the LSI allows operation as a USB device. EPSON S2R72V18 Technical Manual (Rev.1.00)
“Disable Bitstuffing and NRZI encoding” Set to this state when in USB test mode. “Power-Down” Set to this state when in USB SUSPEND state. * We recommend setting this register to “41h” when the USB cable has been disconnected. EPSON S2R72V18 Technical Manual (Rev.1.00)
XcvrControl register TermSelect and XcvrSelect bits should be set according to speed, and OpMode should be set to “10” (Disable Bitstuffing and NRZI encoding) before setting the EnHS_Test bit to “1” in this test mode. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 310
PID and CRC are added by SIE when sending test packets. This means that the data written to the FIFO consists of data from the following DATA0 PID data to the CRC16 data of the test packet data described in the USB standard Rev 2.0. EPSON S2R72V18 Technical Manual (Rev.1.00)
This write-only register sets endpoint operations. Bit7 AllForceNAK This sets the ForceNAK bit to “1” for all endpoints. Bit6 EPrForceSTALL This sets the ForceSTALL bit to “1” for the EPa, EPb, EPc, EPd, and EPe endpoints. Bit5-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
CBW support, refer to the BulkOnlyConfig register section. Bit1 GoCSW_Mode Setting this bit to “1” runs CSW support for the corresponding endpoint. For detailed information on the endpoint running CSW support, refer to the BulkOnlyConfig register section. Bit0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
BulkOnlyControl.GoCSW_Mode bit when endpoint EPc is the IN endpoint. Do not enable the bulk-only support function with more than one OUT endpoint. Similarly, do not enable the bulk-only support function with more than one IN endpoint. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 314
BulkOnlyControl.GoCBW_Mode bit when endpoint EPa is the OUT endpoint. Similarly, CSW support is implemented by setting the BulkOnlyControl.GoCSW_Mode bit when endpoint EPa is the IN endpoint. Do not enable the bulk-only support function with more than one OUT endpoint. EPSON S2R72V18 Technical Manual (Rev.1.00)
Set with the higher 8 bits of Wvalue. EP0SETUP_4 Set with the lower 8 bits of WIndex. EP0SETUP_5 Set with the higher 8 bits of WIndex. EP0SETUP_6 Set with the lower 8 bits of WLength. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 316
3. Register Details EP0SETUP_7 Set with the higher 8 bits of WLength. EPSON S2R72V18 Technical Manual (Rev.1.00)
SetAddress() request is complete and USB_Address has been set. Bit7 Reserved Bit6-0 USB_Address This sets the USB address. This is written to automatically by the AutoSetAddress function. Writing is possible, but it will be rewritten automatically on receiving a SetAddress() request. EPSON S2R72V18 Technical Manual (Rev.1.00)
“0,” the ForceNAK bits are set to “1,” and the ToggleStat bits are set to “1.” Since the ProtectEP0 bit is set when the SETUP transaction is run, it is also set for a SetAddress() request. Setting this bit to “1” prevents changes to EP0 ForceNAK and ForceSTALL bit settings. EPSON S2R72V18 Technical Manual (Rev.1.00)
This indicates the USB frame number updated each time an SOF token is received. Bit15 FnInvalid This bit is set to “1” if an error occurs in the SOF packet received. Bit14-11 Reserved Bit10-0 FrameNumber[10:0] This indicates FrameNumber for the SOF packet received. EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the endpoint EP0. Bit7 Reserved Bit6-3 EP0MaxSize[6:3] This sets MaxPacketSize for endpoint EP0. This endpoint can be used with any of the sizes shown below selected. 8, 16, 32, or 64 bytes 64 bytes Bit2-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
The D_DescAdrs_H,L registers are incremented by the amount of data transmitted for each transaction, and the D_DescSize_H,L registers are decremented by the amount of data transmitted. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 322
ReplyDescriptor bit is cleared to “0,” and the D_EP0IntStat register DescriptorCmp bit and D_EP0IntStat register IN_TranACK bit are set to “1.” For further details, refer to the section that describes how functions are used. EPSON S2R72V18 Technical Manual (Rev.1.00)
ToggleClr bit, the ToggleClr bit function is given precedence. Bit2 ToggleClr This clears the endpoint EP0 IN transaction toggle sequence bit to “0.” If set at the same time as the ToggleSet bit, this bit function is given precedence. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 324
“0” and cannot be set to “1” while the D_SETUP_Control.ProtectEP0 bit is “1.” If a transaction is underway, this bit setting will be enabled from the subsequent transaction for a preset duration after the start of the transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
If the transaction is already running when this bit is set to “1,” the bit is not set until the transaction ends. It is set to “1” once the transaction ends. The bit is set to “1” immediately if the transaction is not underway. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 326
“0” and cannot be set to “1” while the D_SETUP_Control.ProtectEP0 bit is “1.” If a transaction is underway, this bit setting will be enabled from the subsequent transaction for a preset duration after the start of the transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
8, 16, 32, or 64 bytes 512 bytes The transfer quantity can be set as required within the ranges shown below when using the endpoint for interrupt transfers. Up to 64 bytes Up to 1,024 bytes EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 328
3. Register Details The transfer quantity can be set as required within the ranges shown below when using the endpoint for isochronous transfers. 1 to 1,023 bytes 1 to 1,024 bytes EPSON S2R72V18 Technical Manual (Rev.1.00)
Whether or not PING flow control is used for this endpoint is set for the OUT direction (INxOUT = 0). Set this bit to “1” for the Interrupt OUT endpoint. − Set for Bulk OUT endpoint. Bulk OUT − Set for Interrupt OUT endpoint. Interrupt OUT EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 330
3. Register Details Bit5 Set to “1” for Isochronous transfer. Set to “0” for endpoints using bulk transfer or interrupt transfer. Bit4 Reserved Bit3-0 EndpointNumber This sets an endpoint number between 0x1 and 0xF. EPSON S2R72V18 Technical Manual (Rev.1.00)
* This automatically sets the ForceNAK bit to “1” if a short packet is received at the end of a normal OUT transaction. The default setting is AF_NAK_Short function enabled. Setting this bit to “1” disables the AF_NAK_Short function. If the AutoForceNAK bit is set to “1,” the AutoForceNAK bit takes precedence. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 332
Setting this bit to “1” returns a STALL response to the endpoint EPx{x=a-e} transaction. This bit takes precedence over the ForceNAK bit setting. If a transaction is underway, this bit setting will be enabled from the subsequent transaction for a preset duration after the start of the transaction. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO for other endpoints using D_DescAdrs_H,L and D_DescSize_H,L register specifications. Ideally, this should be from the address (0x0030) after the CSW area has been reserved to the first address of the area reserved in AREA0 to 5. EPSON S2R72V18 Technical Manual (Rev.1.00)
FIFO for other endpoints using D_DescAdrs_H,L and D_DescSize_H,L register specifications. Ideally, this should be from the address (0x0030) after the CSW area has been reserved to the first address of the area reserved in AREA0 to 5. EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the corresponding endpoint EnShortPkt bit to “1” if the amount of data remaining in the FIFO is less than the maximum packet size after DMA ends. It is enabled when the endpoint connected to DMA is in the IN direction. Bit5-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
The response returned to the IN token depends on the D_EnEP_IN_ISO_H,L setting. A zero-length packet is returned to the host for an endpoint for which the corresponding bit is set to “1.” A NAK is returned to the host for an endpoint cleared to “0.” EPSON S2R72V18 Technical Manual (Rev.1.00)
PING token is issued by the host. If the corresponding bit in this register is set, enable transactions by appropriately setting the D_EPx{x=0,a-e} related registers and joining the endpoint to the FIFO area using the AREAn{n=0-5}Join.JoinEPxCHx{x=0,a-e} bit. EPSON S2R72V18 Technical Manual (Rev.1.00)
The response returned to the IN token depends on the D_EnEP_IN_ISO_H,L setting. A zero-length packet is returned to the host for an endpoint for which the corresponding bit is set to “1.” A NAK is returned to the host for an endpoint cleared to “0.” EPSON S2R72V18 Technical Manual (Rev.1.00)
PING token is issued by the host. If the corresponding bit in this register is set, enable transactions by appropriately setting the D_EPx{x=0,a-e} related registers and joining the endpoint to the FIFO area using the AREAn{n=0-5}Join.JoinEPxCHx{x=0,a-e} bit. EPSON S2R72V18 Technical Manual (Rev.1.00)
Addresses are shown as offset addresses from the base address 000h for Port 0 and from the base address 200h for Port 1. Port1 Offset Address 0x200 Port0 Offset Address 0x000 Base Address Fig. 3-2 Address notation EPSON S2R72V18 Technical Manual (Rev.1.00)
“1”, and subsequent processing corresponds to HS devices. This bit must therefore always be cleared to “0” when the device is disconnected. Bit0 DetectDevChirpNG Directly specifies interrupt factors. Set to “1” if an error chirp signal is received from the device. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 342
Process and clear the interrupt status (H_SIE_IntStat_0.Bit4 to 0) Disable the interrupt status (H_SIE_IntEnb_0.Bit4 to 0) <Switching to HOST mode in the ACTIVE state> Clear the interrupt status (H_SIE_IntStat_0.Bit4 to 0) Enable the interrupt status (H_SIE_IntEnb_0.Bit4 to 0) EPSON S2R72V18 Technical Manual (Rev.1.00)
HostDeviceSel.HOSTxDEVICE bit is “1” (i.e., in HOST mode), even if power management is ACTIVE. The firmware should perform the following processing to prevent assertion of the interrupt signal XINT by the interrupt status when switching from this state. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 344
Process and clear the interrupt status (H_SIE_IntStat_1.Bit3 to 0) Disable the interrupt status (H_SIE_IntEnb_1.Bit3 to 0) <Switching to HOST mode in ACTIVE state> Clear the interrupt status (H_SIE_IntStat_1.Bit3 to 0) Enable the interrupt status (H_SIE_IntEnb_1.Bit3 to 0) EPSON S2R72V18 Technical Manual (Rev.1.00)
Set to “1” in the cases shown below, based on the transfer speed. HS: When the host controller issues a micro frame 0 SOF token FS: When the host controller issues an SOF token LS: When the host controller issues keepalive EPSON S2R72V18 Technical Manual (Rev.1.00)
Bit0 H_CHaIntStat Indirectly specifies interrupt factors. Set to “1” when the H_CHaIntStat register contains an interrupt factor and the H_CHaIntEnb register bit corresponding to that interrupt factor is enabled. EPSON S2R72V18 Technical Manual (Rev.1.00)
This bit is set to “1” upon a condition code stall, data overrun, data underrun or upon three successive retry errors for a transaction. This bit is also set to “1” when the H_CH0Config_0.TranGo bit is cleared by the firmware. In this case, ConditionCode indicates the final transaction results. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 348
This bit is also set to “1” if stop processing ends for a stage other than the status stage or if the status stage ends with a transaction error for the control transfer support function stop processing because the H_CTL_SupportControl register CTL_SupportGo bit is cleared. EPSON S2R72V18 Technical Manual (Rev.1.00)
This bit is set to “1” when a retry error occurs three times in succession for a transaction, including condition code stalls, data overruns, and data underruns. This bit is also set to “1” when the H_CHaConfig_0.TranGo bit is cleared by the firmware. In this case, ConditionCode indicates the final transaction results. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 350
This bit is also set to “1” if stop processing ends for a transport other than the CSW transport during bulk-only support function stop processing because the H_CHaBO_SupportCtl register BO_SupportGo bit is cleared or if an error is detected in the CSW transport. EPSON S2R72V18 Technical Manual (Rev.1.00)
This bit is set to “1” when a retry error occurs three times in succession for a transaction, including condition code stalls, data overruns, and data underruns. This bit is also set to “1” when the H_Chx{x=b-e}Config_0.TranGo bit is cleared by the firmware. In this case, ConditionCode indicates the final transaction results. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 352
No transaction was performed because the FIFO free space UFFER VERRUN was smaller than the maximum packet size in an isochronous transfer. • No transaction was performed due to insufficient FIFO valid UFFER NDERRUN data in an isochronous transfer. Other Reserved Bit3-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
“0” once stop processing is completed (requires approximately 6 cycles for a 60 MHz clock). In this case, check that the bit has been changed to “0” before setting H_NegoControl_0.AutoMode GoIDLE or GoDISABLED or before setting H_USB_Test.EnHS_Test. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 361
GoWAIT_CONNECTtoOP (switches continuously from WAIT_CONNECT to OPERATIONAL state) 1100: GoRESETtoOP (switches continuously from RESET to OPERATIONAL state) 1110: GoSUSPENDtoOP (switches continuously from SUSPEND to OPERATIONAL state) 1111: GoRESUMEtoOP (switches continuously from RESUME to OPERATIONAL state) All others: Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 362
Use the following procedure to switch from any state to the IDLE state (using GoIDLE). • Write 0x80 to the H_NegoControl_0 register. • Confirm that the H_NegoControl_0.AutoModeCancel bit has changed to 0. • Write 0x01 to the H_NegoControl_0 register. EPSON S2R72V18 Technical Manual (Rev.1.00)
Waits for the device chirp to end after raising the device chirp error status; ends the USB Reset after running the host chirp on completion of the device chirp. Bit0 RmtWkupDetEnb Enables or disables the remote wakeup detection function. EPSON S2R72V18 Technical Manual (Rev.1.00)
This test mode enables the host port to receive data in HS mode. Bit2 TEST_J Setting this bit to “1” concurrently with the EnHS_Test bit allows switching to Test_J test mode. This test mode enables the host port to send “J” in HS mode. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 365
PID and CRC are added by SIE when sending test packets. This means that the data written to the FIFO consists of data from the following DATA0 PID data to the CRC16 data of the test packet data described in the USB standard Rev 2.0. EPSON S2R72V18 Technical Manual (Rev.1.00)
Sets the higher 8 bits of Wvalue. CH0SETUP_4 Sets the lower 8 bits of WIndex. CH0SETUP_5 Sets the higher 8 bits of WIndex. CH0SETUP_6 Sets the lower 8 bits of WLength. CH0SETUP_7 Sets the higher 8 bits of WLength. EPSON S2R72V18 Technical Manual (Rev.1.00)
The reset value for this register is the value that can be read by power management in the ACTIVE state. The reset value is read as 0000h in all other states. Bit15-11 Reserved Bit10-0 FrameNumber [10:0] Indicates FrameNumber for the SOF packet to be sent. EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the initial value of the toggle sequence bit at the start of a transaction. It also indicates the toggle sequence bit state after the transaction has been started or completed. 0: Toggle 0 1: Toggle 1 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 369
“1.” (To perform a new transaction, clear the FIFO and reset the channel information.) This bit does not need to be set when using the control transfer support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
01: OUT − Issues an IN token. 10: IN 11: Reserved − Use of this value is prohibited. This bit does not need to be set when using the control transfer support function. Bit5-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the channel CH0 MaxPacketSize for host operations. Bit7 Reserved Bit6-0 MaxPktSize[6:0] This sets the channel CH0 MaxPacketSize. Set to one of the following: LS: 8bytes FS: 8, 16, 32, 64 bytes HS: 64 bytes All other settings are prohibited. EPSON S2R72V18 Technical Manual (Rev.1.00)
A zero-length packet is issued when an OUT transaction is performed with TotalSize = 0. This register does not need to be set when performing a SETUP transaction or when using the control transfer support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
It can be set to any value from 0 to 15. Bit3 Reserved Bit2-0 Port[2:0] This sets the port number of the hub to which the function performing the transfer over channel CH0 connects. It can be set to any value from 0 to 7. EPSON S2R72V18 Technical Manual (Rev.1.00)
It can be set to any value from 0 to 15. Bit3-0 EP_Number[3:0] This sets the endpoint number for the transfer over channel CH0. It can be set to any value from 0 to 15. EPSON S2R72V18 Technical Manual (Rev.1.00)
If a packet error is detected in mid-sequence, the H_CH0IntStat register CTL_SupportStop bit is set, and the transaction stops. In this case, the cause is set to the ConditionCode register to enable inspection. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 376
The CTL_SupportCmp bit is set if the control transfer ends normally in the status stage. In all other cases, the CTL_SupportStop bit is set. Refer to CTL_SupportState for the stage in which the control transfer stopped. EPSON S2R72V18 Technical Manual (Rev.1.00)
The PID received is invalid or no PID value is defined. • The data toggle included in the data packet from the endpoint fails to match the expected value (toggle mismatch). Other Reserved Bit3-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the initial value of the toggle sequence bit at the start of a transaction. It also indicates the toggle sequence bit state after the transaction has been started or completed. 0: Toggle 0 1: Toggle 1 This bit does not need to be set when using the bulk-only support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 379
“1.” (To perform a new transaction, clear the FIFO and reset the channel information.) This bit does not need to be set when using the bulk-only support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
H_CHaTotalSizeHH to LL registers ends at exactly the Max Packet Size. This bit is enabled only for OUT transfers. Bit2-1 Reserved Bit0 TotalSizeFree Setting this bit to “1” cancels any restrictions on transfer size, regardless of H_CHaTotalSizeHH to LL register settings. EPSON S2R72V18 Technical Manual (Rev.1.00)
These set the channel CHa MaxPacketSize. Set to one of the following: FS: 8, 16, 32, 64 bytes (32 or 64 bytes when using bulk-only support function) HS: 512 bytes All other settings are prohibited. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 383
The remaining transfer quantity can be read by reading these registers after the transaction has been started by the H_CHaConfig_0 register TranGo bit. A zero-length packet is issued when an OUT transaction is performed with TotalSize = 0. This register does not need to be set when using the bulk-only support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
It can be set to any value from 0 to 15. Bit3 Reserved Bit2-0 Port[2:0] This sets the port number of the hub to which the function performing the transfer over channel CHa connects. It can be set to any value from 0 to 7. EPSON S2R72V18 Technical Manual (Rev.1.00)
This sets the endpoint number for the transfer over channel CHa. It can be set to any value from 0 to 15. This bit does not need to be set when using the bulk-only support function. EPSON S2R72V18 Technical Manual (Rev.1.00)
H_CHaIntStat register BO_SupportStop bit is set and the transaction stops. In this case, the cause is set to the H_CHaConditionCode register to enable inspection. If the ConditionCode value is “000” when the H_CHaIntStat register BO_SupportStop bit is set to “1,” the CSW value is incorrect. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 387
The transport can be stopped by clearing this bit while running the bulk-only support function. The BO_SupportCmp bit is set if the CSW transport ends normally here. The BO_SupportStop bit is set in all other cases. Refer to BO_TransportState for the stopped transport. EPSON S2R72V18 Technical Manual (Rev.1.00)
The amount of data received can be checked using this register when fewer than 13 bytes of data have been received in CSW transport. This register value has no meaning if a handshake was received in CSW transport or other than for CSW transport. EPSON S2R72V18 Technical Manual (Rev.1.00)
The H_CBW_Control register BO_SupportGo bit is set to “1” and the endpoint number of the transfer destination device for OUT-direction transfer (CBW transport or Data OUT transport) is set using the bulk-only support function. It can be set to any value from 0 to 15. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 390
The H_CBW_Control register BO_SupportGo bit is set to “1” and the endpoint number of the transfer destination device for IN-direction transfer (CSW transport or Data IN transport) is set using the bulk-only support function. It can be set to any value from 0 to 15. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 391
The PID received is invalid or no PID value is defined. • The data toggle included in the data packet from the endpoint fails to match the expected value (toggle mismatch). Other Reserved Bit3-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 392
This sets the initial value of the toggle sequence bit at the start of a transaction. It also indicates the toggle sequence bit state after the transaction has been started or completed. 0: Toggle 0 1: Toggle 1 EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 393
This allows resumption of the transaction from the point at which it was stopped by resetting this bit to “1.” (To perform a new transaction, clear the FIFO and reset the channel information.) EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 394
AutoZerolen Setting this bit to “1” automatically adds a zero-length packet after the transfer size set in the H_CHx{x=b-e}TotalSizeHH to LL registers ends at exactly the MaxPacketSize. This bit is enabled only for OUT transfers. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 395
TotalSize value is “0.” For OUT transfers, the data packet size will be the smaller of MaxPktSize and TotalSize. For IN transfers, the expected data packet size will be the smaller of MaxPktSize and TotalSize. 11: Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 396
FS: 8, 16, 32, 64 bytes HS: 512 bytes The transfer size can be set as follows when using this channel for interrupt transfers. LS: Up to 8 bytes FS: Up to 64 bytes HS: Up to 1,024 bytes EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 397
3. Register Details The transfer size can be set as follows when using this channel for isochronous transfer. FS: Up to 1,023 bytes HS: Up to 1,024 bytes All other settings are prohibited. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 399
The remaining transfer quantity can be read by reading these registers after the transaction has been started by the H_CHx{x=b-e}Config_0 register TranGo bit. A zero-length packet is issued when an OUT transaction is performed with TotalSize = 0. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 400
It can be set to any value from 0 to 15. Bit3 Reserved Bit2-0 Port[2:0] This sets the port number of the hub to which the function performing the transfer over channel CHx{x=b-e} connects. It can be set to any value from 0 to 7. EPSON S2R72V18 Technical Manual (Rev.1.00)
It can be set to any value from 0 to 15. Bit3-0 EP_Number[3:0] This sets the endpoint number for the transfer over channel CHx{x=b-e}. It can be set to any value from 0 to 15. EPSON S2R72V18 Technical Manual (Rev.1.00)
Interval[10:3] Frame − Specifies the interval in ms units. It can be set to any value from 1 to 255 frames. Interval[2:0] must be set entirely to “0” when setting this bit. EPSON S2R72V18 Technical Manual (Rev.1.00)
H_CHx{x=b-e}Config_0 TranGo bit is set to “1.” If this channel is set for interrupt or isochronous transfers, the transfer cycle is maintained, even if no transactions can be performed because the bit is set to “1.” EPSON S2R72V18 Technical Manual (Rev.1.00)
The data packet received is less than the maximum packet NDERRUN size; the data size is less than the IRP (TotalSize). Treated as a retry error if CRC error and bit stuffing error are detected simultaneously. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 405
No transaction was performed because the FIFO free space UFFER VERRUN was smaller than the maximum packet size in an isochronous transfer. • No transaction was performed due to insufficient FIFO valid UFFER NDERRUN data in an isochronous transfer. Other Reserved Bit3-0 Reserved EPSON S2R72V18 Technical Manual (Rev.1.00)
For registers larger than Short, use divided access with Short and cast in the CPU memory for use. The registers for which odd and even addresses are swapped are shown below for CPU_Endian=“1” (little endian). Reading and writing is possible to/from CD[15:0] for these registers with the 16-bit registers arranged unchanged. EPSON S2R72V18 Technical Manual (Rev.1.00)
Page 412
Revision History Revision History (Rev. 1.00) Revision details Date Section Rev. Type Details (old version) 10/12/2007 0.79 All pages Newly established 7/15/2008 1.00 Revision “Disconnection detection is performed for the uSOF(HS_SOF) EOP time period, and the device is determined to be disconnected if identified as disconnected three times in succession”...