I2C-LED-master

所属分类:其他
开发工具:IAR
文件大小:1420KB
下载次数:3
上传日期:2018-09-08 14:11:22
上 传 者subbu
说明:  STM8 LED BLINKING IAR WORK SPACE IDE

文件列表:
Document (0, 2013-07-26)
Document\I2C_Slave.vsd (150016, 2013-07-26)
Document\Modified Hardware.jpg (481698, 2013-07-26)
Document\Original Hardware (back).jpg (467821, 2013-07-26)
Document\Original Hardware (front).jpg (412107, 2013-07-26)
Firmware (0, 2013-07-26)
Firmware\Project (0, 2013-07-26)
Firmware\Project\I2C-LED.ewp (43348, 2013-07-26)
Firmware\Project\I2C-LED.eww (151, 2013-07-26)
Firmware\Source (0, 2013-07-26)
Firmware\Source\adafruit_i2c_led_emu.c (7527, 2013-07-26)
Firmware\Source\adafruit_i2c_led_emu.h (200, 2013-07-26)
Firmware\Source\led.c (11729, 2013-07-26)
Firmware\Source\led.h (341, 2013-07-26)
Firmware\Source\main.c (1885, 2013-07-26)
Firmware\Source\soft_i2c_slave.c (13857, 2013-07-26)
Firmware\Source\soft_i2c_slave.h (564, 2013-07-26)
Firmware\Source\stm8s_conf.h (4425, 2013-07-26)
Firmware\Source\stm8s_it.c (13506, 2013-07-26)
Firmware\Source\stm8s_it.h (5255, 2013-07-26)
Hardware (0, 2013-07-26)
Hardware\I2C-LED.pro (1684, 2013-07-26)
Hardware\I2C-LED.sch (11024, 2013-07-26)
Hardware\leds.dcm (154, 2013-07-26)
Hardware\leds.lib (27306, 2013-07-26)
Hardware\stmicroelectronics.dcm (296, 2013-07-26)
Hardware\stmicroelectronics.lib (1487, 2013-07-26)

#7-segment LED display with I2C interface The hardware for this project can be bought from http://item.taobao.com/item.htm?id=12715421542 (I'm not associated with the seller whatsoever) The original hardware was designed as a 4-digit voltmeter using STM8S003F3P6 MCU. But the accuracy and resolution cannot be trusted. I modify the firmware to turn the voltmeter into an I2C display device. The majority of the source code goes into bit banging the I2C slave protocol, as the original I2C pins are occupied by the LED. With full complier optimization I2C clock up to 50kHz is supported. A emulation layer for the "Adafruit 4-Digit 7-Segment Display Backpack" http://www.adafruit.com/products/878 is also implemented. Original Adafruit Arduino demo codes are used for testing (with reduced I2C clock). The free KickStart edition of "IAR Embedded Workbench for STMicroelectronics STM8" is used for development. STM8S/A Standard Peripherals Library (STM8S_StdPeriph_Driver V2.1.0) is also needed. Descriptions for this project can be found at http://www.ba0sh1.com/hacking-a-cheap-led-voltmeter/

近期下载者

相关文件


收藏者