全球最实用的IT互联网信息网站!

AI人工智能P2P分享&下载搜索网页发布信息网站地图

当前位置:诺佳网 > 电子/半导体 > 光电显示 >

采用MAXQ2000微控制器和MAX6970 LED驱动器显

时间:2009-07-25 21:07

人气:

作者:admin

标签: 微控制器 

导读:采用MAXQ2000微控制器和MAX6970 LED驱动器显-采用MAXQ2000微控制器和MAX6970 LED驱动器显示不同的LED排序Abstract: This note shows an application circuit and provides all the firmware required to interface the MAXQ2000 m...

采用MAXQ2000微控制器和MAX6970 LED驱动器显示不同的LED排序

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.
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 grounds 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.
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.

温馨提示:以上内容整理于网络,仅供参考,如果对您有帮助,留下您的阅读感言吧!
相关阅读
本类排行
相关标签
本类推荐

CPU | 内存 | 硬盘 | 显卡 | 显示器 | 主板 | 电源 | 键鼠 | 网站地图

Copyright © 2025-2035 诺佳网 版权所有 备案号:赣ICP备2025066733号
本站资料均来源互联网收集整理,作品版权归作者所有,如果侵犯了您的版权,请跟我们联系。

关注微信