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

X  

ST9 数据表(PDF) 95 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) 95 Page - STMicroelectronics

Back Button 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 ST9 Datasheet HTML 98Page - STMicroelectronics ST9 Datasheet HTML 99Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 95 / 146 page
background image
95/146
ST9 USER GUIDE
– Set the transmit transaction counter to the number of characters to be transmitted minus one
(not the TDCPR, which is also only set once at initialisation, and points permanently to the
transmit transaction counter).
– Set the TXD bit of the IDPR register. This bit enables the Transmitter holding register empty
flag (TXHEM bit of register ISR) to trigger a DMA transfer when the last character is sent.
When TXD is reset, the holding register empty flag would trigger an interrupt instead.
– Load the Transmit Buffer Register (TXBR) with the first character to be sent. This starts the
DMA process as soon as this character is transmitted.
– Clear the Transmitter holding register empty flag (TXHEM bit of register ISR) and the Trans-
mitter buffer register empty flag (TXSEM bit of register ISR) to prevent DMA transfer from
starting before the first character is fully transmitted.
– Enable the end of DMA interrupt by setting the Transmitter Data Interrupt Mask (TXDI bit of
register IMR).
The DMA is now started and will stop when the transaction counter reaches zero.
Note:
The transmit address register is initialized with the address of the second word and the transmit
transaction counter is initialized to the number of characters to be transmitted minus one, be-
cause the DMA transfer begins when the first word is transmitted (a write in the Transmit Holding
Register), so the first word is transmitted “by hand”.
4.6.1.2.2 Receiver Side
The receiver side is a little more complicated as two kinds of events can occur during recep-
tion:
– There can be transmission errors that must be handled.
– A break is received or a character match event can occur.
The receiver is set in a ready for DMA condition by the initialisation code.
Reception normally finishes when the DMA transaction counter has reached zero. But this is
not necessarily the way one wants to use the serial input, since it implies that the number of
characters to be received must be known before the transfer starts. In most cases, character-
type messages have a variable length.
In this application, the transaction counter is not expected to reach zero, since the size of the
buffer assigned for reception exceeds the longest message defined in the specification. Thus,
if the transaction counter reaches zero this is in fact an overflow condition. In this case, the
contents of the buffer are discarded and a new reception is initiated. In both cases, the steps
to perform an End of Block are:
– Reset the Receiver End of Block (RXEOB bit of register IMR) to remove the interrupt request.
– Use the received characters, if required.



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