글
serial communication에서 inturrupt를 사용하는 이유
Skills/Programming
2016. 2. 15. 14:56
openCM 9.04의 예를 들어보자.
openCM의 처리기에서는 loop() 구문의 내용이 계속 돌고 있다.
이 속에서 serial communication의 데이터를 처리하면 그 사이에 들어오는 데이터를 받지 못하는 경우가 발생한다.
따라서 interrupt 구문 안에서 데이터를 처리해야 하며, interrupt 구문은 최대한 간결하게 짜는 것이 좋겠다.
'Skills > Programming' 카테고리의 다른 글
시리얼 통신 (serial communication ) 연결 안될 때.. open port 실패 (0) | 2016.02.19 |
---|---|
[아두이노] arduino에서 char to int (0) | 2016.02.16 |
[안드로이드] 디바이스를 못찾을 때.. (0) | 2016.02.06 |
MFC에서 소켓통신이 잘 안될 때.. [유니코드 멀티바이트] (0) | 2016.01.14 |
[OpenGL] 3D coordinates from 2D mouse click ( Convert Screen Coordinate to World Coordinate ) (0) | 2015.06.22 |