Display Different LED Sequence

display different led sequences using the maxq2000 microcontroller with the max6970 led driver
abstract: this note shows an application circuit and provides all the firmware required to interface the maxq2000 microcontroller evaluation (ev) kit to the max6970, an 8-port, 36v constant-current led driver. included in this application note are schematics and microcontroller firmware. the example c program was written and assembled for the maxq® microcontroller with the iar embedded workbench®.
overview the max6970 is an 8-port, 36v constant-current led driver that uses a 4-wire serial interface. using this application note, the max6970 can be used with the maxq2000 16-bit risc microcontroller to create a variety of simple led sequences with the touch of a button.
hardware setup the circuit discussed in this application note utilizes the max6970evkit and the maxq2000-kit. the max6970 evaluation (ev) kit schematic is shown in figure 1. a maxq2000 ev kit board is included in the max6970 ev kit design. however for this application, it will be detached from the on-board maxq2000, since the maxq2000 ev kit has pushbutton features that would otherwise be used to control the led sequences.
figure 1. max6970evkit schematic.
remove the shunts from jumpers ju1-ju5. the system is configured by connecting pin 2 of ju1-ju5 (which corresponds to din, clk, le, dout, and active-low oe) of the max6970 ev kit board to the maxq2000 ev kit board (figure 2). move the shunt on jumper ju14 to the 2-3 position and apply a 3.3v supply to the vcc pad of the max6970 ev kit. before turning on the power supply, ensure that the ground from the maxq2000 and max6970 ev kits are connected together. all other jumpers on the max6970 ev kit should remain in their default positions of 1-2. figure 3 shows the actual setup between the maxq2000 and max6970 ev kits.
figure 2. hardware configuration block diagram.
more detailed image (pdf, 1.75mb)
figure 3. maxq2000 ev kit and max6970 ev kit setup.
displaying an led sequence the maxq2000 ev kit has a pushbutton (sw5), which will be used to select the led sequence. push down on the button for approximately 500ms and the first sequence of leds will turn on. the program consists of five different led sequences, as shown in table 1. each bit of the 8-bit data sent to the slave corresponds to a led on the max6970 ev kit. when the pushbutton count is 1, the sequence 0x55 will turn on for 250ms, alternate to 0xaa, and light up for 250ms. this sequence will repeat itself until the next time that sw5 is pressed. if sw5 is pressed during push count 5, then the next sequence will return to push count 1.
table 1. pushbutton sequence order push count sequence
1 0x55, 0xaa
2 0xff, 0x00
3 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80
4 0x80, 0x40,0x20, 0x10, 0x08, 0x04, 0x02, 0x01
5 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff
firmware overview the example maxq iar workbench c program files initialize the max2000 serial interface to communicate with the max6970. the serial interface clock is 8mhz when the system clock of the maxq2000 is 16mhz.
iar embedded workbench is a registered trademark of iar systems ab.
maxq is a registered trademark of maxim integrated products, inc.

关于电源测试行业解决方案的介绍
苹果发布iOS12.2公测版 AirPods2或将有黑色版本
特斯拉超级充电桩工厂将于明年第一季度投产
窑尾布袋除尘器舱室腐蚀如何解决
疫情后的智慧交通会不会迎来发展
Display Different LED Sequence
热烈欢迎玉林师范学院领导老师莅临我司参观考察
变压器空载无功损耗怎样补偿?
索尼手机上机Android 10时间发布
什么牌子的骨传导运动耳机好?佩戴舒适的运动耳机推荐
浅析监控图像处理系统的软件结构
三星发布了业界首款符合3GPP 5G NR标准的AU产品
ZUKEdge评测 值不值得买
FaceU AR应用被Toutiao 3亿美元收购
基于ARM9-Linux平台的车载导航系统设计
无线语音通信Mesh系统应用
浅谈压接端子的标准和压接不良
区块链技术的更新加快物联网应用产品向智能便捷方向发展
人类如何从与工厂自动化中涉及的不同类型的机器人的交互中受益
用AT89C2051单片机控制的多回路自动浇水系统的工作原理及设计