Abstract: This application note discusses the similarities and differences, both hardware and software, between the older MAX7219 and MAX7221 LED display drivers and the newer MAX6950 and MAX6951 drivers. These drivers are five-digit or eight-digit common-cathode LED display drivers controlled through a high-speed serial interface.
This application note discusses the similarities and differences, both hardware and software, between the older MAX7219 and MAX7221 LED display drivers and the newer MAX6950 and MAX6951 drivers. These drivers are five-digit or eight-digit common-cathode LED display drivers controlled through a high-speed serial interface. Table 1 shows the hardware differences between the drivers.
Table 1. Comparison of Hardware Features
The newer MAX6950 and MAX6951 drivers are the only choice for systems where 3V or 3.3V is the highest supply voltage available. Their lower logic input thresholds also allow them to be interfaced directly to a microprocessor running from as low as 2.5V. The use of the lowest-possible supply voltage naturally minimizes driver dissipation, making it easier to run the driver at full output current for the brightest display.
The MAX7219 or MAX7221 drivers should be used where the display employed is the "stick" type with the segment connections communed internally. An eight-digit common-cathode stick display would have 8 cathode pins (one for each digit cathode) and 8 segment pins (wired internally to each digit). The MAX6950 and MAX6951 drivers use a multiplexing scheme that changes the segment connections for each digit and cannot be used with internally communed multi-digit types.
Table 2 shows the MAX7219/MAX7221 register set compared with the MAX6950/MAX6951 register set. Although the register functionality is broadly similar, the register addresses are different. However, it is possible to write software code that will interface both register sets correctly. This would allow a processor to write either a MAX7221 or a MAX6951 and achieve the same result. The technique involves selecting a subaddress range for the MAX7221 that does not conflict with the MAX6951 registers. This is shown below as the recommended hex codes. When these MAX7221 registers are written, the appropriate MAX6951 registers are written also, to the addresses in italics. The only problem with this approach is that the MAX6950/MAX6951 control registers (addresses 01 to 07) conflict with the MAX7219/MAX7221 digit registers. The solution is to rewrite the conflicting digit register after every change to the corresponding control register. This seems to be a burden at first, but in practice the control registers are rarely changed after initialization, with the exception of the Intensity register.
Dual-target code will not be able to take advantage of the blink features of the MAX6950/MAX6951 in order to maintain lowest-common-denominator functionality. Also, the decoded font characters above nine are different between the parts.
Table 2. Register Address Map Comparison
This application note discusses the similarities and differences, both hardware and software, between the older MAX7219 and MAX7221 LED display drivers and the newer MAX6950 and MAX6951 drivers. These drivers are five-digit or eight-digit common-cathode LED display drivers controlled through a high-speed serial interface. Table 1 shows the hardware differences between the drivers.
Table 1. Comparison of Hardware Features
|
|
|
| |
Supply voltage minimum |
|
| ||
Supply voltage maximum |
|
| ||
Maximum segment current |
|
12mA (2.7V = V+ = 3.0V) | ||
Maximum number of seven-segment digits |
|
|
| |
Types of seven-segment digits that can be used |
|
| ||
Maximum number of discrete LEDs |
|
|
| |
Can drive 8x8 matrix digits? |
|
|
| |
Interface type |
|
| ||
Interface speed maximum |
|
| ||
Interface Dout pin for cascading devices? |
|
| ||
Interface logic input thresholds |
|
| ||
Through-hole package |
|
| ||
Surface-mount package |
|
| ||
Slew-limited LED drive outputs? |
|
| ||
Multiplex clock generation |
|
| ||
Multiplex timing period per digit |
|
| ||
Automatic segment blinking? |
|
| ||
LED intensity levels |
| |||
Character decoding |
|
|
The newer MAX6950 and MAX6951 drivers are the only choice for systems where 3V or 3.3V is the highest supply voltage available. Their lower logic input thresholds also allow them to be interfaced directly to a microprocessor running from as low as 2.5V. The use of the lowest-possible supply voltage naturally minimizes driver dissipation, making it easier to run the driver at full output current for the brightest display.
The MAX7219 or MAX7221 drivers should be used where the display employed is the "stick" type with the segment connections communed internally. An eight-digit common-cathode stick display would have 8 cathode pins (one for each digit cathode) and 8 segment pins (wired internally to each digit). The MAX6950 and MAX6951 drivers use a multiplexing scheme that changes the segment connections for each digit and cannot be used with internally communed multi-digit types.
Table 2 shows the MAX7219/MAX7221 register set compared with the MAX6950/MAX6951 register set. Although the register functionality is broadly similar, the register addresses are different. However, it is possible to write software code that will interface both register sets correctly. This would allow a processor to write either a MAX7221 or a MAX6951 and achieve the same result. The technique involves selecting a subaddress range for the MAX7221 that does not conflict with the MAX6951 registers. This is shown below as the recommended hex codes. When these MAX7221 registers are written, the appropriate MAX6951 registers are written also, to the addresses in italics. The only problem with this approach is that the MAX6950/MAX6951 control registers (addresses 01 to 07) conflict with the MAX7219/MAX7221 digit registers. The solution is to rewrite the conflicting digit register after every change to the corresponding control register. This seems to be a burden at first, but in practice the control registers are rarely changed after initialization, with the exception of the Intensity register.
Dual-target code will not be able to take advantage of the blink features of the MAX6950/MAX6951 in order to maintain lowest-common-denominator functionality. Also, the decoded font characters above nine are different between the parts.
Table 2. Register Address Map Comparison
|
|
|
|
HEX CODE
|
No-Op |
|
|
No-Op |
|
Digit 0 |
|
|
| |
Digit 1 |
|
|
| |
Digit 2 |
|
|
| |
Digit 3 |
|
|
| |
Digit 4 |
|
|
| |
Digit 5 |
|
|
| |
Digit 6 |
|
|
| |
Digit 7 |
|
|
| |
Decode Mode |
|
|
Conflicts with MAX7219/MAX7221 Digit 0 |
|
Intensity |
|
|
Conflicts with MAX7219/MAX7221 Digit 1 |
|
Scan Limit |
|
|
Conflicts with MAX7219/MAX7221 Digit 2 |
|
Configuration |
|
|
Conflicts with MAX7219/MAX7221 Digit 3 |
|
Display Test |
|
|
Conflicts with MAX7219/MAX7221 Digit 6 |
|
|
|
Decode Mode |
| |
|
|
Intensity |
| |
|
|
Scan Limit |
| |
|
|
Configuration |
| |
|
|
Display Test |
| |
|
|
Digit 0 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 1 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 2 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 3 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 4 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 5 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 6 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 7 plane P0 only (plane 1 unchanged) |
| |
|
|
Digit 0 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 1 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 2 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 3 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 4 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 5 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 6 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 7 plane P1 only (plane 0 unchanged) |
| |
|
|
Digit 0 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 1 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 2 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 3 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 4 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 5 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 6 plane P0 and plane P1 (with same data) |
| |
|
|
Digit 7 plane P0 and plane P1 (with same data) |
|
评论
查看更多