数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST9 数据表(PDF) 93 Page - STMicroelectronics

部件名 ST9
功能描述  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST9 数据表(HTML) 93 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 89Page - STMicroelectronics ST9 Datasheet HTML 90Page - STMicroelectronics ST9 Datasheet HTML 91Page - STMicroelectronics ST9 Datasheet HTML 92Page - STMicroelectronics ST9 Datasheet HTML 93Page - STMicroelectronics ST9 Datasheet HTML 94Page - STMicroelectronics ST9 Datasheet HTML 95Page - STMicroelectronics ST9 Datasheet HTML 96Page - STMicroelectronics ST9 Datasheet HTML 97Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 93 / 146 page
background image
93/146
ST9 USER GUIDE
have its own clock frequency supplied on pins RXCLK and TXCLK for receive and transmit,
respectively. Here, we use the BRG to clock both sections.
At the clock input of the transmit and receive shift registers, two other dividers can be inserted,
to further divide the frequency by 16. It must be used in Asynchronous mode to allow detection
of the start bit using a local clock. If an external clock is supplied, at the same frequency and
phase as the serial incoming data, the 16x divisor must not be used. Here, the predivisor is
used.
The UART is surrounded by logic that allows it to detect errors on reception, a break state on
the line, and also to recognize a match between the character received and a reference char-
acter stored in a register. This last feature is used here. The ACR register is loaded with the
value 10 representing the LF character, and the IMR interrupt mask register is set to enable an
interrupt on a character match. Since DMA is used to transfer the incoming characters to
memory, this technique is used to detect the end of message, if we state that all commands
must end with an LF character.
4.6.1.2 DMA Controller
The DMA is used for the automatic data transfer from memory or a register to the serial trans-
mitter or from the serial receiver to a register or memory, or both.
The working of the DMA in conjunction with the UART merits some detailed explanation, be-
cause it is subtle and you need to take some precautions to make it work properly. Once ini-
tialized, it is easy to use and it consumes very little computing power to initialise transmission
or re-enable reception.
The DMA transfers in each direction are controlled by two registers: the DMA transaction
counter and the DMA pointer. The transaction counter is used to stop the transaction when a
predefined number of characters is transferred. The DMA pointer points to the character to be
sent or to the location that will hold the next character to be received. To initialise a DMA
transfer, the transaction counter must be set to the number of characters to be transferred and
the DMA pointer must be set to the beginning of the storage area that contains the data to be
transmitted or that will hold the data string received.
Transfers can occur between the UART and either the memory or register file.
The transaction counter and the DMA pointer must be registers in the register file. If the reg-
ister file is involved in the transfer, both the transaction counter and the pointer must be single
bytes (the addressing range of the register file is 0 to 255). If the memory is involved, the
counter and the pointer must be each a pair of registers, since the addressing range in
memory is 0 to 65535 for one segment.
Once you have defined in which registers you will put the counter and the pointer, you must let
the SCI know. The SCI has two registers for this purpose called the DMA Address Pointer



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


链接网址



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