| 전자부품 데이터시트 검색엔진 |
|
AN1797 데이터시트(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1797 데이터시트(HTML) 6 Page - STMicroelectronics |
|
6 / 9 page ![]() 6/9 STR71x UART COMMUNICATION WITH A PC USING RS232 3 SERIAL COMMUNICATION BETWEEN STR71X AND PC VIA RS232 The software used for this application is the UART driver. It is up to you to adapt it to your spe- cific application. 3.1 GENERAL DESCRIPTION In this application, an STR71x is connected to a PC. The communication is performed using the Windows “HyperTerminal” application. Characters are sent by the PC in ASCII code to the STR71x. Each time 4 characters are re- ceived by the STR71x, they are sent back to the PC and can be read on its screen. The software is a polling serial communication between an STR71x and a PC via RS232 using the UART0. The communication works at 9600bps, 8-bit word length without parity and has 1 stop bit. The first part of the program performs the initialization of the STR71x core and UART0 periph- eral. The program sends the content of a 4-byte buffer to the PC. The initialized value of the buffer is “test” in ASCII code. When the 4 characters are sent, the program 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 it goes back to trans- mission mode which will send the new contents of the buffer and so on. As the STR71x sends the same characters as received, it is very easy to check if the commu- nication is correct. Note that this program does not manage communication errors. 3.2 HARDWARE The STR71x UART peripheral cannot be directly connected to a PC, as it uses the RS232 pro- tocol. The conversion between UART and RS232 can be done using a ST3232. An overview schematic is presented below (Figure 3). |
|
|
링크 URL |
| 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 |