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.

I2CstartI2CSTARTI2C 클록과 데이터핀을 Start 상태로 만듭니다. 이 명령 수행후에 SCL, SDA 핀은 모두 LOW 상태가 됩니다.SDASCLI2CstopSTARTI2CSTOPI2C 클록과 데이터핀을 Stop 상태로 만듭니다. 이 명령 수행후에 SCL, SDA 핀은 모두 HIGH 상태가 됩니다.SDASCLI2Cread( )Variable = I2CREAD(dummy)Variable : 결과를 저장할 변수명dummy : 의미없는 값.STOPSET I2C 에서 설정한 클록과 데이터 핀으로 부터 한바이트의 데이트를 읽어옵니다. 괄호안에는아무것도 적어주지 않습니다. Acknowledge 펄스를 발생시켜 주며 응답여부는 확인하지 않습니다.A = I2CREAD(0)괄호안에는 의미없는 숫자 하나를 써줍니다. 보통은 0 을 씁니다.243

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

Saved successfully!

Ooh no, something went wrong!