ENGLISH 简体中文 日本語 한국어  

    로그인 | 회원가입 


   
 
키워드나 부품번호를 입력해주세요    




애플리케이션 노트 2791

Using the MAX6955 LED Display Driver with a PIC Microcontroller to Scroll Messages

Abstract: A circuit and program listing for using the MAX6955 LED display driver with a PIC microcontroller and 14-segment displays.

The MAX6955 is an LED display driver with an I2C™-compatible, serial interface capable of supporting Fast Mode speeds up to 400kHz. It is capable of driving sixteen 7-segment, eight 14-segment, eight 16-segment or 128 separate LEDs. This application note describes a 14-segment application circuit and an example program that continuously scrolls the message:

"THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG".

The program, shown in Listing 1, can be modified to scroll alphanumeric messages with a length of 8 to 126 characters. The application circuit shown in Figure 1 consists of the MAX6955, the PIC18F442 and four super bright red 14-segment dual character displays from Lumex (Part number LDD-F5406RI).

Figure 1. MAX6955 application schematic.
For Larger Image
Figure 1. MAX6955 application schematic.

The example assembly program continuously scrolls the alphanumeric characters located in the lookup table of the program. The alphanumeric message length is adjustable from 8 to 126 characters long including all blank spaces (0x20). It is recommended to add 7 blank spaces at the beginning and end of the message to obtain the best scrolling effect. In order to customize the message, first modify the hexadecimal representation of the character to scroll in the lookup table of the program. Then modify the CharCount variable value to the number of alphanumeric characters in the selected message including all blank spaces. The program calculates the correct shift count using the equation:

CharCount - 7 = ShiftCountPlusOne
ShiftCount = ShiftCountPlusOne - 1

For example, "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" contains 43 characters. Adding 7 blank spaces before and after the message increases the character count to 57. Using the equation above shows that a message with a character count of 57 would be shifted a total of 49 segments from right to left.

The example program also contains function calls to interface the MAX6955 to the PIC using the internal MSSP I2C port. Since other microcontrollers have similar on-chip peripherals, the example I2C communication routines provided were purposely broken down into single I2C function calls so that the code can be quickly implemented with other microcontrollers. Table 1 shows the single I2C compatible function calls used in the example assembly program.

Listing 1. An example assembly program that interfaces the MAX6955 to the PIC18F442's internal MSSP I2C peripheral.
alt-click (PC) or option-click (Mac) to download Listing 1.

Listing 1. An example assembly program that interfaces the MAX6955 to the PIC18F442's internal MSSP I2C peripheral.

Table 1. Single I2C compatible function calls.
Single I2C compatible function calls Description
HWI2C_start Performs an I2C compatible start condition.
HWI2C_repeatedStart Performs an I2C compatible repeated start condition.
HWI2C_W_write Performs all I2C compatible write operations including the initial slave address write frame.
HWI2C_readMore_W Performs an I2C compatible read operation with Master ACK.
HWI2C_readLast_W Performs an I2C compatible read operation with Master NACK.
HWI2C_stop Performs an I2C compatible stop condition.


관련 부품  APP 2791: Oct 23, 2003
MAX6955 I/O 익스팬더 및 키 스캔 기능이 내장된 2-Wire 인터페이스, 2.7V ~ 5.5V LED 디스플레이 드라이버 전체 데이터 시트
(PDF, 608kB)
무료 샘플

자동 업데이트
관심 분야의 애플리케이션 노트가 나올 때 자동으로 업데이트를 원하십니까? 그렇다면 EE-Mail™을 신청하십시오.


We Want Your Feedback!



의견을 보내주세요!
위 내용이 도움이 되셨나요?
여러분의 의견을 기다립니다 — Maxim은 보내주신 정정이나 제안사항을 반영하고 있습니다. 이 페이지를 평가하고 의견을 보내주십시오.

 

다운로드, PDF 형식다운로드, PDF 형식 (39kB)
 AN2791, AN 2791, APP2791, Appnote2791, Appnote 2791

        •         •         •     개인정보보호 정책     •     법적 고지

    Copyright © 2009 by Maxim Integrated Products