LED Control via I2C

LED Control via I2C

Pulse-based Control Application

系统可能需要单个LED,可以在非常宽的频谱中改变颜色。为实现这一目标,RGB LED控件用于改变不同颜色的占空比。一世2C is used in this application as an easy way to change duty cycle.

一世ngredients

GreenPak图

Design Steps

  1. 将GPIO引脚配置为RGB阴极连接的开漏输出。
  2. 添加LUT逻辑和CNT / DLY2以创建具有EN信号的发电机。
  3. 配置CNT / DLY块上升边延迟.
  4. 为每个输出添加和配置LUTSTechnique: Configuring Standard Logic w/ LUT Macrocells.
  5. Connect each LUT output to the desired output pins.
  6. 一世2C virtual inputs can be changed individually or simultaneously using the I2C virtual output address.
  7. CNT / DLY块的计数器数据可以单独或同时使用I来改变2C.

资源

GreenPAK Designer files