10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NOTE 8DS1620 디지털 온도센서DS1620 은 디지털 온도센서 칩입니다. 칩 내부에 온도센서와 변환테이블이 내장되어 있어, 유저는 단지, SPI 통신으로 온도값만 읽어오면 됩니다. 별도의 온도변환 테이블을 작성할 필요가 없으므로 보다 간편하게 온도를 측정할 수 있는 방법입니다. –55 도~125 도까지 0.5 도 단위로 측정할수 있습니다.SOUT VINSIN VSSATN RESVSS VDDP0 P15P1 P14P2 P13P3 P12P4 P11P5 P10P6P9P7P8CB220DQCLKRSTGNDVDDT(HI)T(LO)T(COM)DS1620Const Device = CB280Const iorst = 7Const ioclk = 6Const iodq = 5Dim I As IntegerHigh iorst ‘ init ds1620Shiftout ioclk,iodq,0,12,8Shiftout ioclk,iodq,0,3,8Low iorstDoHigh iorstShiftout ioclk,iodq,0,&haa,8i = Shiftin(ioclk,iodq,4,9)i = idebug dec i,crLow iorstDelay 100Loop최종 결과인 I 값을 나누기 2 하면 현재온도값을 알 수 있습니다. 415

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!