SPI
所属分类:单片机开发
开发工具:C/C++
文件大小:29KB
下载次数:63
上传日期:2012-05-07 13:09:13
上 传 者:
水瓶座
说明: stm8 SPI源代码
www.zxkjmcu.com
文件列表:
SPI (0, 2009-03-10)
SPI\SPI_FastCommunication (0, 2009-03-10)
SPI\SPI_FastCommunication\main.c (8968, 2008-09-25)
SPI\SPI_FastCommunication\stm8_interrupt_vector.c (3401, 2008-09-25)
SPI\SPI_FastCommunication\stm8s_conf.h (5616, 2008-09-25)
SPI\SPI_FastCommunication\stm8s_it.c (14099, 2008-09-25)
SPI\SPI_FastCommunication\stm8s_it.h (3669, 2008-09-25)
SPI\SPI_FullDuplexUART1 (0, 2009-03-10)
SPI\SPI_FullDuplexUART1\main.c (6969, 2008-09-25)
SPI\SPI_FullDuplexUART1\main.h (2132, 2008-09-25)
SPI\SPI_FullDuplexUART1\stm8_interrupt_vector.c (3401, 2008-09-25)
SPI\SPI_FullDuplexUART1\stm8s_conf.h (5598, 2008-09-25)
SPI\SPI_FullDuplexUART1\stm8s_it.c (13983, 2008-09-25)
SPI\SPI_FullDuplexUART1\stm8s_it.h (3665, 2008-09-25)
SPI\SPI_SimplexLCD (0, 2009-03-10)
SPI\SPI_SimplexLCD\main.c (7529, 2008-09-25)
SPI\SPI_SimplexLCD\main.h (2127, 2008-09-25)
SPI\SPI_SimplexLCD\stm8_interrupt_vector.c (3401, 2008-09-25)
SPI\SPI_SimplexLCD\stm8s_conf.h (5609, 2008-09-25)
SPI\SPI_SimplexLCD\stm8s_it.c (13978, 2008-09-25)
SPI\SPI_SimplexLCD\stm8s_it.h (3662, 2008-09-25)
/** @page SPI_SimplexLCD Communication with a monochrome LCD
@par Example description
This example provides a short description of how to use the SPI peripheral
in order to communicate with a monochrome LCD peripheral like the one present
on the eval-board.
This example runs on STM8S-128K and STM8S-32K products
@par Directory contents
- main.c Main file containing the "main" function
- main.h Main functions prototype
- stm8s_conf.h Library Configuration file
- stm8s_it.c Interrupt routines source (not used in this example)
- stm8s_it.h Interrupt routines declaration
- stm8_interrupt_vector.c Interrupt vectors table
- mono_lcd.c Contains all basic functions to control the LCD
- mono_lcd.h Functions prototypes
@par Hardware environment
- This example runs on STMicroelectronics STM8/128-EVAL evaluation board and need a mono LCD.
@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
- Compile the directory content files and required Library files :
+ stm8s_exti.c
+ stm8s_gpio.c
+ stm8s_spi.c
- Rebuild all files: Project->Rebuild all.
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
- A welcome message should be displayed on the LCD
- Press the Key button in order to change the message on the LCD
Go to main file: SPI_SimplexLCD\main.c
*/
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
近期下载者:
相关文件:
收藏者: