データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

ST9 データシート(PDF) 57 Page - STMicroelectronics

部品番号 ST9
部品情報  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 データシート(HTML) 57 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 53Page - STMicroelectronics ST9 Datasheet HTML 54Page - STMicroelectronics ST9 Datasheet HTML 55Page - STMicroelectronics ST9 Datasheet HTML 56Page - STMicroelectronics ST9 Datasheet HTML 57Page - STMicroelectronics ST9 Datasheet HTML 58Page - STMicroelectronics ST9 Datasheet HTML 59Page - STMicroelectronics ST9 Datasheet HTML 60Page - STMicroelectronics ST9 Datasheet HTML 61Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 57 / 146 page
background image
57/146
ST9 USER GUIDE
3.5.2 How the DMA Works
The DMA consists of a transfer between a memory or register file and a peripheral, in either di-
rection. Assuming the peripheral is configured to handle externally supplied data or to provide
data to external circuits, two steps are needed for a transfer to occur.
The transfer must be requested by some event or condition.
A mechanism must handle reading the data from one part and writing to the other part.
The term DMA transfer represents the transfer of a single byte of data. Usually, more than one
byte is transferred and the transfer occurs in bursts. Thus, a third step is involved:
A mechanism that counts the transfers and stops them when the count is finished.
To the programmer, these mechanisms appear as registers to be properly initialized. The
three steps are handled as follows (see Figure 23).
3.5.2.1 Transfer Requests
The DMA transfer is requested in exactly the same way as an interrupt is requested. Ac-
cording to its type, the peripheral concerned sends a request based on an external event such
as a character received or transmitted by the Serial Channel Interface. You configure this in
the registers belonging to the peripheral involved. Special bits in the registers indicate that the
peripheral ready status, instead of requesting an interrupt, requests a DMA transfer.
3.5.2.2 Transfer Execution
A DMA transfer can involve a memory location or a register in the register file. In any case, the
transfer requires an address and a counter. This address and counter are stored in registers
which you can define anywhere in the register file. The address register value is automatically
incremented after each transfer and the counter register value is decremented so that the next
transfer will involve the next address and this mechanism will continue until the counter is
equal to 0. Depending on whether the transfer addresses memory or the register file, there are
two cases.
If the transfer addresses the register file, the address register and the counter register are
single registers (a byte is enough to address 256 registers). The address of this address reg-
ister is stored in one of the peripheral's registers, named DCPR. The low bit (RM) of this reg-
ister is set to zero indicating that the register file is involved in the transfer. The address reg-
ister must have an even address to address the DMA address, the next register storing the
DMA transaction counter.
If the transfer addresses the memory, the registers that hold the address and the counter must
be two double registers. In this case, the DMA address is pointed by the DAPR pointer register
and the DMA transaction counter is pointed by the DCPR pointer register. The low bit of the



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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