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

This commit is contained in:
daid303 2012-12-17 11:12:11 +01:00
parent 5df5e4c4a2
commit 38ee395ac7

View file

@ -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;