| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
H8S/2454 bảng dữ liệu(PDF) 1004 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8S/2454 bảng dữ liệu(HTML) 1004 Page - Renesas Technology Corp |
|
1004 / 1376 page ![]() Section 16 USB Function Module (USB) Rev. 1.00 Sep. 19, 2008 Page 974 of 1342 REJ09B0467-0100 16.8 DMA Transfer 16.8.1 Overview DMA transfer can be performed for endpoints 1 and 2 in this module. Note that word or longword data cannot be transferred. When endpoint 1 holds at least one byte of valid receive data, a DMA request for endpoint 1 is generated. When endpoint 2 holds no valid data, a DMA request for endpoint 2 is generated. If the DMA transfer is enabled by setting the EP1 DMAE bit in the DMA transfer setting register to 1, zero-length data reception at endpoint 1 is ignored. When the DMA transfer is enabled, the EP1 RDFN bit and EP2 PKTE bit do not need to be set to 1 in TRG1. (Note that the PKTE bit in TRG1 must be set to 1 when the transfer data is less than the maximum number of bytes). When all the data received at EP1 is read, the FIFO automatically enters the EMPTY state. When the maximum number of bytes (64 bytes) are written to the EP2 FIFO, the FIFO automatically enters the FULL state, and the data in the FIFO can be transmitted (see figures 16.21 and 16.22). 16.8.2 Setting for the On-chip DMAC The on-chip DMAC should be set for USB requests (using the DREQ signal), low-level input activation, byte size, full-address mode transfer, and the DTA bit = 1 in the DMABCR register. The on-chip DMAC will then be stopped after transfer has been completed the specified number of times. However, note that the DREQ signal continues to be asserted (held at the low level) regardless of the state of the DMAC when the DMA transfer requests still remains in this module. 16.8.3 DMA Transfer for Endpoints 1 and 4 When the data received at EP1 is transferred by the DMAC, the USB function module automatically performs the same processing as writing 1 to the RDFN bit in TRG1 if the currently selected FIFO becomes empty. Accordingly, in DMA transfer, do not write 1 to the RDFN bit in TRG1. If the user writes 1 to the RDFN bit in DMA transfer, correct operation cannot be guaranteed. Figure 16.21 shows an example of receiving 150 bytes of data from the host. In this case, internal processing which is the same as writing 1 to the RDFN bit in TRG1 is automatically performed three times. This internal processing is performed when the currently selected data FIFO becomes empty. Accordingly, this processing is automatically performed both when 64-byte data is sent and when data less than 64 bytes is sent. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |