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

X  

AN969 数据表(PDF) 7 Page - STMicroelectronics

部件名 AN969
功能描述  SCI COMMUNICATION BETWEEN ST7 AND PC
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN969 数据表(HTML) 7 Page - STMicroelectronics

Back Button AN969 Datasheet HTML 2Page - STMicroelectronics AN969 Datasheet HTML 3Page - STMicroelectronics AN969 Datasheet HTML 4Page - STMicroelectronics AN969 Datasheet HTML 5Page - STMicroelectronics AN969 Datasheet HTML 6Page - STMicroelectronics AN969 Datasheet HTML 7Page - STMicroelectronics AN969 Datasheet HTML 8Page - STMicroelectronics AN969 Datasheet HTML 9Page - STMicroelectronics AN969 Datasheet HTML 10Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 7 / 10 page
background image
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.).



Html Pages

1 2 3 4 5 6 7 8 9 10


数据表 下载

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