UART

所属分类:处理器开发
开发工具:C/C++
文件大小:89KB
下载次数:38
上传日期:2008-02-20 11:33:12
上 传 者与路共舞
说明:  ST的ARM9,STR912F44W,串口程序,调试通过,可以做为大家参考,是IAR的开发环境
(ST)

文件列表:
UART\91x_conf.h (3676, 2006-05-30)
UART\91x_it.c (15603, 2006-05-30)
UART\main.c (6188, 2006-05-30)
UART\uart.dep (5041, 2007-03-20)
UART\uart.ewd (27513, 2006-05-30)
UART\uart.ewp (44899, 2006-05-17)
UART\uart.eww (158, 2006-05-17)
UART\Debug (0, 2007-08-25)
UART\settings\uart.dbgdt (6604, 2007-03-20)
UART\settings\uart.dni (519, 2007-03-20)
UART\settings\uart.wsdt (5156, 2007-03-20)
UART\settings (0, 2007-08-25)
UART\UART\91x_conf.h (3676, 2006-05-30)
UART\UART\91x_it.c (15603, 2006-05-30)
UART\UART\main.c (6188, 2006-05-30)
UART\UART\uart.ewd (27513, 2006-05-30)
UART\UART\uart.ewp (44899, 2006-05-17)
UART\UART\uart.eww (158, 2006-05-17)
UART\UART (0, 2007-08-25)
UART (0, 2007-08-25)

/******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** * File Name : Readme.txt * Author : MCD Application Team * Date First Issued : 05/18/2006 : Version 1.0 * Description : Description of the UART Example1. ******************************************************************************** * History: * 05/24/2006 : Version 1.1 * 05/18/2006 : Version 1.0 ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This example provides a description of how to use the UART with hardware flow control and communicate with the Hyperterminal. First, the UART0 sends the TxBuffer to the hyperterminal and still waiting for a string from the hyperterminal that you must enter which must end by '\r' character (keypad ENTER button). Each byte received is retransmitted to the Hyperterminal. The string that you have entered is stored in the RxBuffer array. The receive buffer have a RxBufferSize bytes as maximum. The UART0 is configured as follow: - Word Length = 7 Bits - Two Stop Bit - No parity - BaudRate = 115200 baud - Hardware flow control disabled - Receive and transmit enabled - Receive and transmit FIFOs are enabled - Transmit and Receive FIFOs levels have 8 bytes depth Directory contents ================== 91x_conf.h Library Configuration file 91x_it.c Interrupt handlers main.c Main program Hardware environment ==================== - All the UART0 signals (Rx, Tx) must be connected to a DB9 connector using a RS232 transceiver. + UART0_Rx (P5.1) + UART0_Tx (P3.4) - Connect a null-modem female/female RS232 cable between the DB9 connector and PC serial port. - Hyperterminal configuration: - Word Length = 7 Bits - Two Stop Bit - No parity - BaudRate = 115200 baud - flow control: None How to use it ============= In order to make the program work, you must do the following : - Put the Jumpers U0TX to on the position 1-3(only for STR912-SK IAR Board) - Run the example ******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****

近期下载者

相关文件


收藏者