| 数据搜索系统,热门电子元器件搜索 |
|
AN969 数据表(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN969 数据表(HTML) 7 Page - STMicroelectronics |
|
7 / 10 page ![]() 7/10 SCI COMMUNICATION BETWEEN ST7 AND PC 4 SCI COMMUNICATION BETWEEN ST7 AND PC VIA RS232 The software for this application is the SCI driver. The complete software can be found in the the ST internet website. It is of course only an example. It is up to the user to adapt it to his specific application. 4.1 GENERAL DESCRIPTION In this application, a ST72F264 is connected to a PC. The communication is performed using the «hyperterminal» application of Windows 98. Characters are sent by the PC in ASCII code to the ST7. Every 4 characters received by the ST7 are sent back to the PC and can be read on its screen. The software is a polling SCI communication between an ST72F264 and a PC via RS232. The communication works at 9600bps and has 1 stop bit. The first part of the program performs the initialization of the ST72F264, core and SCI periph- eral. Then it enters transmission mode, sends the content of a 4-byte buffer to the PC. The initial- ized value of the buffer is «test» in ASCII code. When the 4 characters are sent, transmission mode is ended and the SCI peripheral enters reception mode. In reception mode, the software waits for the user to send 4 ASCII characters from the PC. Each character is put in the buffer until the fourth is received. Then reception mode is ended, and goes back to transmission mode which will send the new contents of the buffer and so on. As the ST7 sends the same characters as received, it is very easy to check if the communica- tion is correct. Note that this program does not manage communication errors. 4.2 HARDWARE The ST7 SCI peripheral cannot be directly connected to a PC, as it uses the RS232 protocol. The conversion between SCI and RS232 can be done using a MAX232. An overview sche- matic is presented below (Figure 3.). |
|
|
链接网址 |
| 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 |