10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTE 9DS1302 RTC 칩리얼 타임 클록 (Real Time Clock)칩이란, 마치 시계처럼 시분초,년월일이 자동적으로 갱신되는칩으로, 외부에서 SPI 통신으로 시간정보를 읽거나, 써넣을 수 있는 칩입니다. DS1302 를 큐블록과 연결하여 시간정보를 읽어오는 방법을 소개합니다.32768HzVCC2 VCCX1 SCLKX2 I/OGND RSTDS1302SOUT VINSIN VSSATN RESVSS VDDP0 P15P1 P14P2 P13P3 P12P4 P11P5 P10P6P9P7P8CB220핀이름 핀설명 입출력방향 설명RST Reset Input High 일때 전송이 유효함SCLK System Clock Input 동기신호I/O Data Input/Output Input / Output 데이터 입출력단자Const Device = CB220Const iorst = 7Const iodio = 6Const ioclk = 5Dim I As IntegerDim adr As ByteHigh iorstShiftout ioclk,iodio,0,&h8e,8Shiftout ioclk,iodio,0,0,8Low iorstDelay 1High iorstShiftout ioclk,iodio,0,&h80,8Shiftout ioclk,iodio,0,&H50,8Low iorst416

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

Saved successfully!

Ooh no, something went wrong!