Modbus-LED-driver-master

所属分类:单片机开发
开发工具:C51
文件大小:7KB
下载次数:15
上传日期:2017-06-06 00:07:15
上 传 者我是传奇2017
说明:  modbus协议,点亮LED灯,AVR单片机平台。
(Modbus protocol, lit LED lights, AVR microcontroller platform.)

文件列表:
LED-Driver.c (1422, 2016-04-17)
avr_modbus.c (9554, 2016-04-17)
avr_modbus.h (1046, 2016-04-17)
avr_utils.c (400, 2016-04-17)
avr_utils.h (248, 2016-04-17)
hardware_mega8.c (6333, 2016-04-17)
hardware_mega8.h (1510, 2016-04-17)

# Modbus LED driver *Slave LED driver controlled by MODBUS RTU protocol* ### Hardware unit MCU: Atmel AtMega8
XTAL: 14.7456 MHz
USART Baud Rate: 9600
Communication Parameters: 8 Data, 1 Stop, No Parity
Digital inputs: 2
PWM outputs: 4
Power supply: 12 VDC
Communication: RS485
ModbusID - address of unit `void SetREG(unsigned int index, unsigned int val)` - change register value
`unsigned int GetREG(unsigned int index)` - return value of register `SetREG(11, 0);` - set RED light intensity (PWM intensity)
`SetREG(12, 0);` - set GREEN light intensity (PWM intensity)
`SetREG(13, 0);` - set BLUE light intensity (PWM intensity)
`SetREG(14, 0);` - set WHITE light intensity (PWM intensity)
*Range 0 - 200* Set the output (acceleration / deceleration of intensity change is included)
`SetRedDutyWish(GetREG(11));`
`SetGreenDutyWish(GetREG(12));`
`SetBlueDutyWish(GetREG(13));`
`SetWhiteDutyWish(GetREG(14));`

近期下载者

相关文件


收藏者