workshop:uart
This is an old revision of the document!
Table of Contents
UART
UART(Universal Asynchronous Receiver/Transmitter) 이름으로 알 수 있듯이 리시버와 트랜시버가 따로 존재하고 시간 클럭 정보가 없는 비동기식 이다.
시작(start bit)과 끝(stop bit) 신호가 있고 그 사이를 일정 시간으로 잘라서 비트를 구분한다.
속도 설정가능하고 데이터포맷 설정이 가능하다. 종류로 RS-232, RS-422, RS-485 등이 있다.
컴퓨터와 RS232를 통해서 통신을 해보자. UART 디버깅 할때 유용함.
Python 설치
- Python 2.7.3 http://python.org/download/
- Pyserial Win32 (pyserial-2.5.win32.exe) google에서 pyserial win32 검색
arduino code
pyserial
pyserial을 설치하고, 파이썬 인터프리터에서 다음과 같이 입력해보자. 어떻게 될지 예상해보자.
import_serial_s_serial.serial_dev_ttyusb0_s.write_1_1_s.write_0_1}
python gui button
workshop/uart.1344868343.txt.gz · Last modified: 2018/07/18 14:09 (external edit)