UART1
所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:95KB
下载次数:21
上传日期:2013-04-24 18:37:01
上 传 者:
koric
说明: stm8s uart1_interrupt
文件列表:
UART1\UART1_HalfDuplex\main.c (7179, 2009-03-02)
UART1\UART1_HalfDuplex\stm8s_conf.h (7864, 2009-03-02)
UART1\UART1_HalfDuplex\stm8s_it.c (16553, 2009-03-02)
UART1\UART1_HalfDuplex\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_HalfDuplex\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_HyperTerminal_Interrupt\main.c (3704, 2009-03-02)
UART1\UART1_HyperTerminal_Interrupt\stm8s_conf.h (7882, 2009-03-02)
UART1\UART1_HyperTerminal_Interrupt\stm8s_it.c (17124, 2009-03-02)
UART1\UART1_HyperTerminal_Interrupt\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_HyperTerminal_Interrupt\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_Interrupt\main.c (9721, 2009-03-02)
UART1\UART1_Interrupt\main.h (2491, 2009-03-02)
UART1\UART1_Interrupt\stm8s_conf.h (7875, 2009-03-02)
UART1\UART1_Interrupt\stm8s_it.c (17226, 2009-03-02)
UART1\UART1_Interrupt\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_Interrupt\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_IrDA\Receive\main.c (5333, 2009-03-02)
UART1\UART1_IrDA\Receive\stm8s_conf.h (7875, 2009-03-02)
UART1\UART1_IrDA\Receive\stm8s_it.c (16553, 2009-03-02)
UART1\UART1_IrDA\Receive\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_IrDA\Receive\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_IrDA\Transmit\main.c (7382, 2009-03-02)
UART1\UART1_IrDA\Transmit\stm8s_conf.h (7876, 2009-03-02)
UART1\UART1_IrDA\Transmit\stm8s_it.c (16553, 2009-03-02)
UART1\UART1_IrDA\Transmit\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_IrDA\Transmit\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_MultiProcessor\main.c (5948, 2009-03-02)
UART1\UART1_MultiProcessor\stm8s_conf.h (7864, 2009-03-02)
UART1\UART1_MultiProcessor\stm8s_it.c (16723, 2009-03-02)
UART1\UART1_MultiProcessor\stm8s_it.h (4629, 2009-03-02)
UART1\UART1_MultiProcessor\stm8_interrupt_vector.c (5358, 2009-03-02)
UART1\UART1_Polling\main.c (5394, 2009-03-02)
UART1\UART1_Polling\stm8s_conf.h (7876, 2009-03-02)
... ...
/** @page UART1_Printf Retarget the C library printf function to the UART1
@par Example description
This example shows how to retarget the C library printf function to the UART1.
This implementation output the printf message on the Hyperterminal using UART1.
The UART1 is configured as follows:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Receive and transmit enabled
- UART1 Clock disabled
@par Directory contents
- UART1\UART1_Printf\main.c Main file containing the "main" function
- UART1\UART1_Printf\stm8s_conf.h Library Configuration file
- UART1\UART1_Printf\stm8s_it.c Interrupt routines source (not used in this example)
- UART1\UART1_Printf\stm8s_it.h Interrupt routines declaration
- UART1\UART1_Printf\stm8_interrupt_vector.c Interrupt vectors table
@par Hardware and Software environment
- This example runs only on STM8S208, STM8S207, STM8S103 and STM8S903 devices.
- This example has been tested with STMicroelectronics STM8/128-EVAL evaluation
board (STM8S208) and ST Visual Develop (STVD) toolchain (Cosmic compiler).
And can be easily tailored to any other supported device and development board.
- STM8/128-EVAL Set-up
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN13 and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: None
@par How to use it ?
In order to make the program work, you must do the following :
- Create a project and setup all project configuration
- Add the required Library files :
- stm8s_clk.c
- stm8s_uart1.c
- Edit stm8s.h file to select the device you are working on (#define STM8S208, in this case).
@b Tip: You can tailor the provided project template to run this example, for more
details please refer to "stm8s_fwlib_um.chm" user manual; select "Peripheral Examples"
then follow the instructions provided in "How to proceed" section.
- Rebuild all files: Build-> Rebuild all.
- Load project image: Debug->Start Debugging
- Run program: Debug->Run (Ctrl+F5)
*/
/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
近期下载者:
相关文件:
收藏者: