소스 검색

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

daid303 12 년 전
부모
커밋
38ee395ac7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      Marlin/temperature.cpp

+ 2
- 1
Marlin/temperature.cpp 파일 보기

@@ -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…
취소
저장