Replace the 1ms delay for 2 nops to get a 100ns delay. #259
This commit is contained in:
parent
5df5e4c4a2
commit
38ee395ac7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue