| 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) 29 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT49CU80 bảng dữ liệu(HTML) 29 Page - Holtek Semiconductor Inc |
|
29 / 54 page ![]() HT49RU80/HT49CU80 Rev. 1.20 29 December 16, 2009 U C R 1 R e g i s t e r b 7 S T O P S P R T B N O U A R T E N b 0 T X B R K R X 8 T X 8 T r a n s m i t d a t a b i t 8 ( w r i t e o n l y ) R e c e i v e d a t a b i t 8 ( r e a d o n l y ) T r a n s m i t b r e a k c h a r a c t e r 1 : t r a n s m i t b r e a k c h a r a c t e r s 0 : n o b r e a k c h a r a c t e r s D e f i n e s t h e n u m b e r o f s t o p b i t s 1 : t w o s t o p b i t s 0 : o n e s t o p b i t P a r i t y t y p e b i t 1 : o d d p a r i t y f o r p a r i t y g e n e r a t o r 0 : e v e n p a r i t y f o r p a r i t y g e n e r a t o r P a r i t y e n a b l e b i t 1 : p a r i t y f u n c t i o n e n a b l e d 0 : p a r i t y f u n c t i o n d i s a b l e d N u m b e r o f d a t a t r a n s f e r b i t s 1 : 9 - b i t d a t a t r a n s f e r 0 : 8 - b i t d a t a t r a n s f e r U A R T e n a b l e b i t 1 : e n a b l e U A R T , T X & R X p i n s a s U A R T p i n s 0 : d i s a b l e U A R T , T X & R X p i n s a s I / O p o r t p i n s P R E N ¨ PERR The PERR flag is the parity error flag. When this read only flag is ²0² it indicates that a parity error has not been detected. When the flag is ²1² it indi- cates that the parity of the received word is incor- rect. This error flag is applicable only if Parity mode (odd or even) is selected. The flag can also be cleared by a software sequence which involves a read to the USR status register, followed by an ac- cess to the RXR data register. · UCR1 register The UCR1 register together with the UCR2 register are the two UART control registers that are used to set the various options for the UART function, such as overall on/off control, parity control, data transfer bit length etc. Further explanation on each of the bits is given below: ¨ TX8 This bit is only used if 9-bit data transfers are used, in which case this bit location will store the 9th bit of the transmitted data, known as TX8. The BNO bit is used to determine whether data transfers are in 8-bit or 9-bit format. ¨ RX8 This bit is only used if 9-bit data transfers are used, in which case this bit location will store the 9th bit of the received data, known as RX8. The BNO bit is used to determine whether data transfers are in 8-bit or 9-bit format. ¨ TXBRK The TXBRK bit is the Transmit Break Character bit. When this bit is ²0² there are no break characters and the TX pin operates normally. When the bit is ²1² there are transmit break characters and the transmitter will send logic zeros. When equal to ²1² after the buffered data has been transmitted, the transmitter output is held low for a minimum of a 13-bit length and until the TXBRK bit is reset. ¨ STOPS This bit determines if one or two stop bits are to be used. When this bit is equal to ²1² two stop bits are used, if the bit is equal to ²0² then only one stop bit is used. ¨ PRT This is the parity type selection bit. When this bit is equal to ²1² odd parity will be selected, if the bit is equal to ²0² then even parity will be selected. ¨ PREN This is parity enable bit. When this bit is equal to ²1² the parity function will be enabled, if the bit is equal to ²0² then the parity function will be disabled. ¨ BNO This bit is used to select the data length format, which can have a choice of either 8-bits or 9-bits. If this bit is equal to ²1² then a 9-bit data length will be selected, if the bit is equal to ²0² then an 8-bit data length will be selected. If 9-bit data length is se- lected then bits RX8 and TX8 will be used to store the 9th bit of the received and transmitted data re- spectively. ¨ UARTEN The UARTEN bit is the UART enable bit. When the bit is ²0² the UART will be disabled and the RX and TX pins will function as General Purpose I/O pins. When the bit is ²1² the UART will be enabled and the TX and RX pins will function as defined by the TXEN and RXEN control bits. When the UART is disabled it will empty the buffer so any character re- maining in the buffer will be discarded. In addition, the baud rate counter value will be reset. When the UART is disabled, all error and status flags will be reset. The TXEN, RXEN, TXBRK, RXIF, OERR, FERR, PERR, and NF bits will be cleared, while the TIDLE, TXIF and RIDLE bits will be set. Other con- trol bits in UCR1, UCR2, and BRG registers will re- main unaffected. If the UART is active and the UARTEN bit is cleared, all pending transmissions and receptions will be terminated and the module will be reset as defined above. When the UART is re-enabled it will restart in the same configuration. |
|
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 |