Browse Source

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

pull/1/head
daid303 12 years ago
parent
commit
38ee395ac7
  1. 3
      Marlin/temperature.cpp

3
Marlin/temperature.cpp

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

Loading…
Cancel
Save