| 数据搜索系统,热门电子元器件搜索 |
|
ST9 数据表(PDF) 107 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 数据表(HTML) 107 Page - STMicroelectronics |
|
107 / 146 page ![]() 107/146 ST9 USER GUIDE Table 9. SCI.C Functions 4.8.2.4.2 SCI Files using DMA The SCI function file is <sci\appli2\sci.c> and contains 4 functions that are initialized for sending 26 bytes from the ST9 to the serial link (RS232) by using the DMA. It uses DMA channel (from memory). Port used: – Tx (S0OUT) (Uses End of Transmission interrupts) FUNCTION DESCRIPTION AND COMMENTS void INIT_SCI(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). void INIT_SCI_IT(void); Initialization of the IT: vector, priority. void SCI_SendByte(un- signed char ToSend); It sends byte ToSend to serial link. This routine also enables end of transmission IT. void INTSCI_TransmitReady(voi d); Interrupt subroutine which occurs after the transmission of one charac- ter. If 10 bytes have been transferred, it disables the IT and so stops the trans- mission. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |