Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

ST9 Scheda tecnica(PDF) 108 Page - STMicroelectronics

Il numero della parte ST9
Spiegazioni elettronici  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 Scheda tecnica(HTML) 108 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 104Page - STMicroelectronics ST9 Datasheet HTML 105Page - STMicroelectronics ST9 Datasheet HTML 106Page - STMicroelectronics ST9 Datasheet HTML 107Page - STMicroelectronics ST9 Datasheet HTML 108Page - STMicroelectronics ST9 Datasheet HTML 109Page - STMicroelectronics ST9 Datasheet HTML 110Page - STMicroelectronics ST9 Datasheet HTML 111Page - STMicroelectronics ST9 Datasheet HTML 112Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 108 / 146 page
background image
108/146
ST9 USER GUIDE
Table 10.
SCI.C Functions
4.8.2.4.3 SCI Files using DMA in the Loopback Mode
The SCI function file is <sci\appli3\sci.c> and contains 5 functions that are initialized for
sending 26 bytes from memory to the serial link.
The SCI is in Loopback mode, so that the bytes sent are then received by the SCI and stored
in the register file (from R16).
It uses DMA channels:
– From memory to peripheral for the transmission
– From the peripheral to the register file to receive the bytes.
No ports are used.
4.8.2.4.4 SCI Files using Character Matching
The SCI function file is <sci\appli4\sci.c> and contains 5 functions that are initialized for re-
ceiving data on the input pin of the SCI and it only reacts when it receives character
SCI_MATCH (defined in sci.h).
Port used: Rx (S0IN)
FUNCTION
DESCRIPTION AND COMMENTS
void INIT_SCI_DMA(void);
Initialization of general parameters dedicated to the SCI:
- Baud Rate Generator: 9600 bauds.
- Characters: Eight data bits, one stop bit, odd parity.
- Pins...
The baud rate generator must be initialized following this structure
(BRGHR first and BRGLR at the end).
Initialization of the IT: vector, priority.
Initialization of DMA in transmission
void START_SendDMA(un-
signed char * TransmitBuff-
erMem, unsigned int
SCI_count);
After a few extra initialization, the transmission starts by loading data reg-
ister(TXBR) with the first value to send.
void
INTSCI_TransmitEOB(void)
;
Interrupt subroutine which occurs when a whole block of data has been
transferred using DMA.
In fact, the buffer “table” is sent three times and then DMA is disabled.



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


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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