SWord = $0A08 'intensity register, mediumįOR digit = 1 TO 8 'make sure all segments of all digits are off SWord = $0900 'decode register, no decode Here is a re-do of the code fragment that clears the display for sure and then programs four digits to letters. I use a 20K to +5V.Īs to extra segments, they may well be left over from before you turned decode off or however the MX7219 powered up. I think your getting stuck may be due to not having a pullup on CS. Only when I enable no decode mode and assign various digits to SWHi and SWLo, several random segments come on, but MAX7219 stucks after that, and I have to cycle power to make it responsive again. However, despite my attempts, I was not able to make it display any other chars. SHIFTOUT DIN, CLK, MSBFIRST, 'shift out 16 bits SWord = $0A05 'intensity register, mediumįOR Digit = 0 TO 3 'go from right to left SWord = $0C01 'shutdown register, normal operation SWord VAR Word 'word which is shifted out to 7219 I know that MAX7219 has so called "no decode" mode, which I already enabled, I'm using the code below for this: I want to be able to display on 4 segment LED connected to BS2 via MAX7219 not only digits, but also some letters, which can be displayed, say A,C, H, L, P, E and some others.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |