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

master
daid303 12 years ago
parent 5df5e4c4a2
commit 38ee395ac7

@ -869,7 +869,8 @@ int read_max6675()
WRITE(MAX6675_SS, 0);
// 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
SPDR = 0;

Loading…
Cancel
Save