| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 192 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 192 Page - Microchip Technology |
|
192 / 283 page ![]() SEC2410/SEC4410 DS00001587C-page 192 2013 - 2014 Microchip Technology Inc. If the SCSI commands passes, and the command is a write, and the LUN is not write protected, there are two possibil- ities. 1. The CONT_WR bit is set for this LUN, and the calculated physical starting address matches the internal start address. The next access to the media is started at starting address in the SCSI command. The FMDU com- mand is CONTINUE_WRITE. 2. The CONT_WR bit is not set for this LUN or the calculated physical start address does not match the internal start address. The next access to the media is started at starting address in the SCSI command. The FMDU com- mand is NEW_WRITE. If the LUN is write protected, the WRITE_PROT interrupt is generated to the Processor. To execute the read or write command, the CBWP sets the FMC_DEV_SEL to the LUN addressed in the CBW. It sets the EP_CNT register with the length, and send out an encoded version of the SCSI command on the FMI bus. The encoded version of the command will have at least the following information: 1. Start Address in the media. This is the calculated physical start address. This is always 32 bit logical block address, which is equivalent to a 41 byte address. It is the same regardless of the size in the SCSI command. 2. Length of transfer. 3. Block Size (encoded) 4. Command (NEW_READ, CONT_READ, NEW_WRITE, CONT_WRITE) 5. Identifier for the FMC selected. 6. ID of the unit within the controller. This is only valid for FMCs that have multiple devices. 7. Device Type (only has meaning to certain controllers) 8. Timing and control signals. (CONT_WR, CONT_RD etc) 9. Error Signals If the SCSI commands passes, and the command is a Test Unit Ready, the hardware copies the TAG and the LUN READY bit into the CSW and goes directly to SEND_CSW stage. Once the CBW is processed, the CBW processor is free to use that buffer again. If the CBW is forwarded to the Pro- cessor, the CBWP relies on the Processor to generate the appropriate completion notification. If the CBW command is a READ, then it means there is a buffer trapped at SIE EP2 WRITE work queue. In that case the CBWP must issue a FLUSH to the SIE to release that buffer. 18.6.4 CBW PROCESSING – WAIT_PROCESSOR This state is entered when the CBW has been forwarded to the Processor. The Processor has two ways of dealing with this. The first is that the Processor will disable auto CBW processing. When this happens, the CBWP is disabled, and when it is re-enabled, the state machine starts over. The second way is the RESUME bit is hit, and the CBWP goes to the WAIT_FMC state assuming that the Processor has programmed the LUN and FMDU registers appropriately. The AutoCBW processor normally issues two buffer to SIE EP2 WRITE. The first buffer will receive the CBW, which it will forward to the host in this state. The second buffer may or may not be used. If the USB host does not post another OUT, the second buffer will be pending on the queue of SIE EP2 WRITE. The Processor can clear this buffer with a flush if it desires. If the USB host posts an OUT after the CBW, the second buffer will be used, and will be posted on the FMDU work queue, waiting to be processed. If the Processor is very quick to respond to the forwarded CBW, it may be possible that the second buffer is still on the SIE work queue, when the Processor gets the CBW. The Processor is then responsible for waiting until the buffer is correctly issued. 18.6.5 CBW PROCESSING – WAIT_FMC After posting the encoded SCSI command, the CBW processor stays in this state waiting for the FMC to signal it is ready. This is a widely variable time. The FMC may start immediately, or it may take hundreds of microseconds. 18.6.6 CBW PROCESSING – DATA_PHASE This state is entered when the FMC signals it ready for the data transfer. In this state the CBW processor reads or writes blocks of data. If the transfer is a read (USB IN) the CBWP assigns buffers from it WRLUT pool. As completions come in, more data is read and enqueued. If the transfer is a write, the data is written to the media as it comes in with the Work Request. This continues until the EP_CNT count has been reached. If the EP_CNT count ends in the middle of a buffer, |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |