UDRn - USARTn I/O Data Register
UCSRnA - USART Control and Status Register A
RXCn - USART Recive Complete 수신 버퍼에 읽지 않은 데이터가 있을때 1로 설정
수신 버퍼가 비어 있다면 클리어
UDREn - USART Data Register Empty 송신버퍼가 새로운 데이터를 받을 준비가
되어 있는지 알려준다.
UCSRnB - USART control and status Register B
RXCIEn - RX Complete Interrupt Enable , RXC 플래그를 참조하여 인터펍트를 발생
RXENn - Receiver Enable , USART 수신을 활성화 시킨다. 수신 버퍼와 관련 동작 가능하도록 한다.
TXENn - Transmitter Enable , USART 송신을 활성화 시킨다.
UCSZn2 - Character Size ...............
UCSRnC - USART control and status Register C
UMSELn - USART Mode Select , 동기 or 비동기...설정
UPMn1:0 - Parity Mode , 패리티 모드의 종류와 설정할 값..
00 disabled 01 Reserved
10 endabled, Even Parity
11 enabled, Odd Parity
USBSn - USART Stop bit Select , Stop 비트 설정
UCSZn1:0 - UCSRB의 UCSZ2와 관련하여 Character Size 와 관련된 비트..
UCSZ2 UCSZ1 UCSZ0.............
000 5bit 001 , 010, 011 6,7,8bit
100, 101, 110 reserved 111 9bit
UBRRnL - USART Baud Rate Registers
UBRRnH - USART Baud Rate Registers
댓글 없음:
댓글 쓰기