wayoda / LedControl

An Arduino library for MAX7219 and MAX7221 Led display drivers
Other
464 stars 243 forks source link

Logic needs timing control on fast processors ... #11

Open nkolban opened 8 years ago

nkolban commented 8 years ago

We have a project underway to run Sketches written for Arduinos on the Raspberry Pi. With its GHz processor, it is 50x faster than the Arduino. This is causing problems with the library which is bit banging SPI because the timings of the bits now become 50x faster. Obviously the library is perfect for real arduinos but we might want to address the notion that CPU speeds will get faster and logic may break. For example, I believe that max clock for the 7219 is 10MHz ... but at 1GHz ... processor speeds and bit banging ... the time which a signal is high or low may be too short without some timing logic built in or hardware SPI timing controls.

gordoste commented 6 years ago

Yes, I ran into this issue when running MAX7219 from ESP8266 with 2 metres of wire. The frequency of the signals is high enough that the signal cannot be received properly by the MAX7219. Running same code on Arduino Uno works perfectly but I want WiFi :)