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.

TimesetTIMESET address, valueaddress : 시간정보가 기억되어 있는 주소 (0~6 까지 사용가능)value : 시간정보값RTC 칩에 새로운 정보를 기입하는 명령입니다. 시간을 다시 설정할 때 필요한 명령입니다. 초기출하상태에서는 알수 없는 값이 들어있습니다.번지 내용 범위 비트구성0 초 0~59 10 자릿수 10 이하 자릿수1 분 0~59 10 자릿수 10 이하 자릿수2 시 0~23 10 자릿수 10 이하 자릿수3 일 01~310 자릿수 10 이하 자릿수14 요일 0~6 10 이하 자릿수5 월 1~12 10 10 이하 자릿수6 년도 00~9910 자릿수 10 이하 자릿수다음은 Timeset 과 Time ( ) 명령을 사용해서 새로운 시간정보를 셋팅하고, 그 내용을 표시하는샘플 프로그램입니다.Const Device =CT1700Dim I As ByteTimeset 0,0 '초Timeset 1,&H24 '분Timeset 2,&H9 '시Timeset 3,&H21 '일Timeset 4,&H6 '요일Timeset 5,&H4 '월Timeset 6,&H5 '연도DoI = Time(6)Debug "200",Hex I,"년 "I = Time(5)Debug Hex2 I,"월 "I = Time(4)Select Case ICase 0Debug "일요일 "Case 1Debug "월요일 "Case 2Debug "화요일 "Case 3Debug "수요일 "Case 4219

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

Saved successfully!

Ooh no, something went wrong!