| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT49CU80 bảng dữ liệu(PDF) 28 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT49CU80 bảng dữ liệu(HTML) 28 Page - Holtek Semiconductor Inc |
|
28 / 54 page ![]() HT49RU80/HT49CU80 Rev. 1.20 28 December 16, 2009 · USR register The USR register is the status register for the UART, which can be read by the program to determine the present status of the UART. All flags within the USR register are read only. Further explanation on each of the flags is given below: ¨ TXIF The TXIF flag is the transmit data register empty flag. When this read only flag is ²0² it indicates that the character is not transferred to the transmit shift registers. When the flag is ²1² it indicates that the transmit shift register has received a character from the TXR data register. The TXIF flag is cleared by reading the UART status register (USR) with TXIF set and then writing to the TXR data register. Note that when the TXEN bit is set, the TXIF flag bit will also be set since the transmit buffer is not yet full. ¨ TIDLE The TIDLE flag is known as the transmission com- plete flag. When this read only flag is ²0² it indicates that a transmission is in progress. This flag will be set to ²1² when the TXIF flag is ²1² and when there is no transmit data, or break character being trans- mitted. When TIDLE is ²1² the TX pin becomes idle. The TIDLE flag is cleared by reading the USR regis- ter with TIDLE set and then writing to the TXR regis- ter. The flag is not generated when a data character, or a break is queued and ready to be sent. ¨ RXIF The RXIF flag is the receive register status flag. When this read only flag is ²0² it indicates that the RXR read data register is empty. When the flag is ²1² it indicates that the RXR read data register con- tains new data. When the contents of the shift regis- ter are transferred to the RXR register, an interrupt is generated if RIE=1 in the UCR2 register. If one or more errors are detected in the received word, the appropriate receive-related flags NF, FERR, and/or PERR are set within the same clock cycle. The RXIF flag is cleared when the USR register is read with RXIF set, followed by a read from the RXR reg- ister, and if the RXR register has no data available. ¨ RIDLE The RIDLE flag is the receiver status flag. When this read only flag is ²0² it indicates that the receiver is between the initial detection of the start bit and the completion of the stop bit. When the flag is ²1² it in- dicates that the receiver is idle. Between the com- pletion of the stop bit and the detection of the next start bit, the RIDLE bit is ²1² indicating that the UART is idle. ¨ OERR The OERR flag is the overrun error flag, which indi- cates when the receiver buffer has overflowed. When this read only flag is ²0² there is no overrun er- ror. When the flag is ²1² an overrun error occurs which will inhibit further transfers to the RXR receive data register. The flag is cleared by a software se- quence, which is a read to the status register USR followed by an access to the RXR data register. ¨ FERR The FERR flag is the framing error flag. When this read only flag is ²0² it indicates no framing error. When the flag is ²1² it indicates that a framing error has been detected for the current character. The flag can also be cleared by a software sequence which will involve a read to the USR status register followed by an access to the RXR data register. ¨ NF The NF flag is the noise flag. When this read only flag is ²0² it indicates a no noise condition. When the flag is ²1² it indicates that the UART has de- tected noise on the receiver input. The NF flag is set during the same cycle as the RXIF flag but will not be set in the case of an overrun. The NF flag can be cleared by a software sequence which will involve a read to the USR status register, followed by an ac- cess to the RXR data register. U S R R e g i s t e r b 7 R I D L E O E R R N F P E R R b 0 R X I F T I D L E T X I F T r a n s m i t d a t a r e g i s t e r e m p t y 1 : c h a r a c t e r t r a n s f e r r e d t o t r a n s m i t s h i f t r e g i s t e r 0 : c h a r a c t e r n o t t r a n s f e r r e d t o t r a n s m i t s h i f t r e g i s t e r T r a n s m i s s i o n i d l e 1 : n o t r a n s m i s s i o n i n p r o g r e s s 0 : t r a n s m i s s i o n i n p r o g r e s s R e c e i v e R X R r e g i s t e r s t a t u s 1 : R X R r e g i s t e r h a s a v a i l a b l e d a t a 0 : R X R r e g i s t e r i s e m p t y R e c e i v e r s t a t u s 1 : r e c e i v e r i s i d l e 0 : d a t a b e i n g r e c e i v e d O v e r r u n e r r o r 1 : o v e r r u n e r r o r d e t e c t e d 0 : n o o v e r r u n e r r o r d e t e c t e d F r a m i n g e r r o r f l a g 1 : f r a m i n g e r r o r d e t e c t e d 0 : n o f r a m i n g e r r o r N o i s e f l a g 1 : n o i s e d e t e c t e d 0 : n o n o i s e d e t e c t e d P a r i t y e r r o r f l a g 1 : p a r i t y e r r o r d e t e c t e d 0 : n o p a r i t y e r r o r d e t e c t e d F E R R |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |