Closed colesnicov closed 2 years ago
Hi,
I think this pin is mandatory (to flush the data in MAX7219). You can also reuse DI and CLK pins when CS is LOW. Or use RESET pit.
MAX7219_send(uint8_t reg, uint8_t data) { MAX7219_CS_HIGH(); MAX7219_write(reg); MAX7219_write(data); MAX7219_CS_LOW(); __asm("nop"); MAX7219_CS_HIGH(); }
czw., 27 sty 2022 o 01:21 Colesnicov Denis Petrovich < @.***> napisał(a):
Hello. Can I omit the CS pin from the connection? I miss one free pin on attiny13.
— Reply to this email directly, view it on GitHub https://github.com/lpodkalicki/attiny-max7219-led-tube-display-library/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJOZHQP34Z6SFYDLB2QABTUYCFZDANCNFSM5M4OXA4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
-- Łukasz Podkalicki
I wondered if it could be used as with other SPI chips. If there is only one SPI chip on the line, then the CS pin can be permanently active. Then only two wires would be needed to control the chip, as in the case of the hc595. ?
Yeah, I understand but it's not typical SPI.
Take a look at Page 6: Serial Addressing Modes - https://github.com/lpodkalicki/attiny-max7219-led-tube-display-library/blob/master/docs/max7219.pdf
/LP
czw., 27 sty 2022 o 11:06 Colesnicov Denis Petrovich < @.***> napisał(a):
I wondered if it could be used as with other SPI chips. If there is only one SPI chip on the line, then the CS pin can be permanently active. Then only two wires would be needed to control the chip, as in the case of the hc595. ?
— Reply to this email directly, view it on GitHub https://github.com/lpodkalicki/attiny-max7219-led-tube-display-library/issues/2#issuecomment-1023044045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJOZHWLBPKW3ANZJF7EW2DUYEKKNANCNFSM5M4OXA4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: <lpodkalicki/attiny-max7219-led-tube-display-library/issues/2/1023044045@ github.com>
-- Łukasz Podkalicki
Hello. Can I omit the CS pin from the connection? I miss one free pin on attiny13.