Browse Source

Replace the 1ms delay for 2 nops to get a 100ns delay. #259

daid303 12 years ago
parent
commit
38ee395ac7
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/temperature.cpp

+ 2
- 1
Marlin/temperature.cpp View File

@@ -869,7 +869,8 @@ int read_max6675()
869 869
   WRITE(MAX6675_SS, 0);
870 870
   
871 871
   // ensure 100ns delay - a bit extra is fine
872
-  delay(1);
872
+  asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
873
+  asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
873 874
   
874 875
   // read MSB
875 876
   SPDR = 0;

Loading…
Cancel
Save