Difference between revisions of "STM32 MAX7219/MAX7221"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:C]][[Category:STM32 Development]][[Category:STM32 HAL]][[Category:STM32CubeMX]][[Category:STM32CubeIde]][[Category:Embedded]][[Category:STM32]]{{metadesc|Using MAX7219 LED Driver on STM32}} | + | [[Category:C]][[Category:STM32 Development]][[Category:STM32 HAL]][[Category:STM32CubeMX]][[Category:STM32CubeIde]][[Category:Embedded]][[Category:STM32]][[Category:Work in progress]]{{metadesc|Using MAX7219 LED Driver on STM32}} |
+ | The MAX7219 and MAX7221 are designed especially to drive 7 segment LED display units. While the 7 segment displays is the natural target they _can_ also be used to drive 8x8 LED matrix. | ||
+ | |||
+ | The difference between the MAX7219 and MAX7221 is that the latter is 100 % SPI compatible but the MAX7219 is not. The difference is the way the CS (Chip Select) pin is handled. In the MAX7221, data will only be "received" if the CS pin is low. This means the MOSI, MISO and CLK lines can be shared with other SPI devices. The MAX7219 will receive characters no matter the state of the CS line and the CS line is only used to latch the data. In short, the MAX7221 can share the SPI line while the MAX7219 need a dedicated one. | ||
== Miscellaneous Links == | == Miscellaneous Links == | ||
+ | * [https://github.com/lbthomsen/stm32-max72xx STM32 MAX72xx Library] | ||
+ | * [[MAX7219/MAX7221|MAX7219/MAX7221 detailed description]] | ||
* [https://github.com/lbthomsen/stm32-max72xx/blob/master/doc/MAX7219-MAX7221.pdf MAX7219/MAX7221 Datasheet] | * [https://github.com/lbthomsen/stm32-max72xx/blob/master/doc/MAX7219-MAX7221.pdf MAX7219/MAX7221 Datasheet] |
Latest revision as of 03:21, 2 June 2022
The MAX7219 and MAX7221 are designed especially to drive 7 segment LED display units. While the 7 segment displays is the natural target they _can_ also be used to drive 8x8 LED matrix.
The difference between the MAX7219 and MAX7221 is that the latter is 100 % SPI compatible but the MAX7219 is not. The difference is the way the CS (Chip Select) pin is handled. In the MAX7221, data will only be "received" if the CS pin is low. This means the MOSI, MISO and CLK lines can be shared with other SPI devices. The MAX7219 will receive characters no matter the state of the CS line and the CS line is only used to latch the data. In short, the MAX7221 can share the SPI line while the MAX7219 need a dedicated one.