/** @page STM8S_DALI_AN stm8s DALI library: STM8S DALI application note
@par Example description
DALI is standardized interface to control "intelligent" light sources.
This AN describes DALI slave library and simple user application using this library.
The main purpose of this firmware package is to provide resources to build
light control application which uses DALI as communication interface.
DALI slave library comes with simple application example (DALI slave device). It was
designed (and tested) for use with this evaluation hardware: STM8S Discovery board (see
UM0817 - STM8S Discovery User manual on www.st.com/mcu) together with DALI
transceiver board. Application example controls the luminance of the on-board LED diode.
Light intensity is controlled by PWM method using built-in Timer. As DALI master device
can be used ST7DALI evaluation kit (board and PC software - see www.st.com/mcu) or some
commercial DALI controller (e.g. from Osram).
@par Directory contents
See AN for detailed description.
+ libraries
+ DALIStack
+ inc
- dali.h - high level DALI stack functions header file
- dali_cmd.h - DALI commands implementation header file
- dali_config.h - configuration of DALI slave device header file
- dali_pub.h - public functions header file
- dali_regs.h - DALI register management header file
- eeprom.h - read/write management for EEPROM data header file
- lite_timer_8bit.h - DALI timing management header file
+ src
- dali.c - high level DALI stack functions source file
- dali_cmd.c - DALI commands implementation source file
- dali_config.c - configuration of DALI slave device source file
- dali_pub.c - public functions source file
- dali_regs.c - DALI register management source file
- eeprom.c - read/write management for EEPROM data source file
- lite_timer_8bit.c - DALI timing management source file
+ STM8S_StdPeriph_Driver (only used files are listed here)
+ inc
- stm8s.h - HW registers definitions and memory mapping
- stm8s_flash.h - flash driver header file (needed only with for IAR)
+ src
- stm8s_flash.c - flash driver source file (needed only with IAR)
+ Project
+ inc
- DALIslave.h - low level DALI pin driver header file
- stm8_it.h - interrupt service routines header file
- stm8s_conf.h - STM8S peripheral modules configuration header file
+ src
- DALIslave.c - low level DALI pin driver source file
- stm8_interrupt_vector.c - interrupt vector table content source file
- stm8_it.c - interrupt service routines source file
- eeprom_itf.c - utility code for automatic EEPROM memory access (needed only with IAR)
- main.c - Main file containing the "main" function
+ STVD
+ raisonance
- STM8DALI.stw - Contains the STVD workspace for cosmic compiler
- stm8dalislave.stp - Contains the STVD project for cosmic compiler
+ cosmic
- STM8DALI.stw - Contains the STVD workspace for raisonance compiler
- stm8dalislave.stp - Contains the STVD project for raisonance compiler
+ EWSTM8
- STM8DALI.eww - Contains the EWSTM8 workspace for IAR compiler
- stm8dalislave.ewp - Contains the EWSTM8 project for IAR compiler
@par Hardware environment
- Plug DALI transceiver board to STM8S Discovery board. Load firmware into the STM8S105 on
STM8S Discovery board using USB and STVD or EWSTM8 software. Connect DALI transceiver board to
DALI master device with 2 wires (DALI bus). As DALI master device can be used
ST7DALI evaluation kit or some commercial DALI controller.
@par How to use it with STVD ?
- Open the STVD workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
@par How to use it with EWSTM8 ?
- Open the EWSTM8 workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Download and Debug
- Run program: Debug->Go (F5)
*/
/******************* (C) COPYRIGHT 2012 STMicroelectronics *****END OF FILE****/
没有合适的资源?快使用搜索试试~ 我知道了~
STM8s库v4.0版本
共93个文件
c:36个
h:35个
html:2个
4星 · 超过85%的资源 需积分: 34 29 下载量 19 浏览量
2012-12-04
15:59:27
上传
评论 1
收藏 2.58MB ZIP 举报
温馨提示
Release Notes for STM8S/A Standard Peripherals Library Drivers (StdPeriph_Driver)
资源推荐
资源详情
资源评论
收起资源包目录
stm8s_dali_lib(V4.0.0).zip (93个子文件)
stm8s_dali_lib(V4.0.0)
STM8Sx_AN3298_FW_V4.0.0
Utilities
PC_Software
ST7 DALI Master
setup.exe 137KB
SETUP.LST 4KB
PowerControl2.CAB 1.97MB
Third_Party
ST7DALI_KIT
10393.pdf 550KB
_htmresc
logo.bmp 7KB
Project
EWSTM8
settings
stm8dalislave.dni 485B
stm8dalislave.cspy.bat 1KB
STM8DALI.wsdt 2KB
stm8dalislave.dbgdt 63B
stm8dalislave.ewp 43KB
STM8DALI.eww 167B
stm8dalislave.dep 11KB
Debug
Obj
stm8dalislave.pbd 2KB
List
Exe
lnkstm8s105c6.icf 4KB
inc
DALIslave.h 2KB
stm8s_it.h 5KB
stm8s_conf.h 4KB
src
DALIslave.c 11KB
main.c 6KB
stm8_interrupt_vector.c 3KB
stm8s_it.c 14KB
eeprom_itf.c 1KB
STVD
Raisonance
stm8dalislave.stp 24KB
STM8DALI.stw 215B
Cosmic
stm8dalislave.stp 23KB
STM8DALI.stw 215B
readme.txt 5KB
Release_Notes.html 34KB
Libraries
DALIStack
inc
dali_pub.h 7KB
lite_timer_8bit.h 2KB
eeprom.h 1KB
dali_cmd.h 1KB
dali.h 2KB
dali_regs.h 4KB
dali_config.h 4KB
src
eeprom.c 3KB
dali_config.c 7KB
dali_pub.c 21KB
dali_regs.c 5KB
lite_timer_8bit.c 3KB
dali_cmd.c 46KB
dali.c 8KB
STM8S_StdPeriph_Driver
inc
stm8s_beep.h 3KB
stm8s_itc.h 7KB
stm8s_tim4.h 5KB
stm8s_tim2.h 14KB
stm8s_wwdg.h 2KB
stm8s_exti.h 5KB
stm8s_gpio.h 6KB
stm8s_i2c.h 27KB
stm8s_iwdg.h 4KB
stm8s.h 112KB
stm8s_adc1.h 15KB
stm8s_flash.h 13KB
stm8s_tim5.h 19KB
stm8s_tim1.h 26KB
stm8s_tim6.h 9KB
stm8s_tim3.h 13KB
stm8s_adc2.h 11KB
stm8s_rst.h 3KB
stm8s_clk.h 17KB
stm8s_awu.h 5KB
stm8s_spi.h 13KB
stm8s_uart2.h 19KB
stm8s_uart1.h 16KB
stm8s_can.h 25KB
stm8s_uart3.h 15KB
_htmresc
logo.bmp 7KB
src
stm8s_can.c 48KB
stm8s_adc1.c 23KB
stm8s_uart2.c 29KB
stm8s_tim6.c 15KB
stm8s_tim3.c 37KB
stm8s_beep.c 5KB
stm8s_clk.c 22KB
stm8s_rst.c 3KB
stm8s_flash.c 25KB
stm8s_tim1.c 84KB
stm8s_i2c.c 32KB
stm8s_tim4.c 12KB
stm8s_tim2.c 46KB
stm8s_wwdg.c 4KB
stm8s_adc2.c 13KB
stm8s_tim5.c 50KB
stm8s_gpio.c 8KB
stm8s_itc.c 10KB
stm8s_uart3.c 24KB
stm8s_exti.c 6KB
stm8s_uart1.c 26KB
stm8s_spi.c 14KB
stm8s_awu.c 6KB
stm8s_iwdg.c 3KB
Release_Notes.html 66KB
共 93 条
- 1
资源评论
- 渤昀2018-10-11学习参考下,感谢分享
- kul2014-08-26貌似还没出4.1的吧,基本上都是2.00版本的。现在用的2.0.0版本
- hzpj0012013-01-09看了好像是目前最新的版本,不错,准备用用.
- c77028422013-06-13看了好像是目前最新的版本,不错,准备用用.
yh8637
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功