Explorar el Código

Adjust for timing shift on Max7219 displays on AVR's

Something has shifted.   The previous timing delays on the Max7219 debug displays is too tight without this correction.
I suspect something has been optimized and roughly 50ns of needed setup and hold time has disappeared.
This corrects the issue and the display results are clean again.
Roxy-3D hace 4 años
padre
commit
5d515c3a2f
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/feature/max7219.cpp

+ 1
- 1
Marlin/src/feature/max7219.cpp Ver fichero

@@ -121,7 +121,7 @@ uint8_t Max7219::suspended; // = 0;
121 121
   #define CRITICAL_SECTION_START() NOOP
122 122
   #define CRITICAL_SECTION_END()   NOOP
123 123
 #else
124
-  #define SIG_DELAY() DELAY_NS(188) // Delay for 0.1875µs (16MHz AVR) or 0.15µs (20MHz AVR)
124
+  #define SIG_DELAY() DELAY_NS(250) // Delay for 0.1875µs (16MHz AVR) or 0.15µs (20MHz AVR)
125 125
 #endif
126 126
 
127 127
 void Max7219::error(const char * const func, const int32_t v1, const int32_t v2/*=-1*/) {

Loading…
Cancelar
Guardar