| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT46CU26 bảng dữ liệu(PDF) 35 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46CU26 bảng dữ liệu(HTML) 35 Page - Holtek Semiconductor Inc |
|
35 / 86 page ![]() HT46RU26/HT46CU26 Rev. 1.00 35 June 12, 2008 I 2C Bus Serial Interface The I 2C bus is a bidirectional 2-wire communication in- terface originally developed by Philips Semiconductors. The possibility of transmitting and receiving data on only 2 lines offers many new application possibilities for microcontroller based applications and for this reason, an I 2C bus is implemented in this device. The I2C bus function is selectable via a configuration option. There are two lines associated with the I 2C bus, the first is known as SDA and is the Serial Data line, the second is known as SCL line and is the Serial Clock line. As many devices may be connected together on the same bus, their outputs are both open drain types. For this reason it is necessary that external pull-high resistors are connected to these outputs. Note that no chip select line exists, as each device on the I 2C bus is identified by a unique address, which will be transmitted and re- ceived on the I 2C bus. When two devices communicate with each other on the bidirectional I 2C bus, one is known as the master device and one as the slave device. Both master and slave can transmit and receive data, however, it is the master de- vice that has overall control of the bus. For this device, which only operates in slave mode, there are two meth- ods of transferring data on the I 2C bus, the slave trans- mit mode and the slave receive mode. Four registers exist to control the I 2C bus and its associated data trans- fer, HADR, HCR, HSR and HDR. Communication on the I 2C bus requires four steps, a START signal, a slave ad- dress transmission, a data transmission and finally a STOP signal. I 2C Bus Slave Address Register - HADR The HADR register is the location where the slave ad- dress of the microcontroller is stored. Bits 1~7 of the HADR register define the microcontroller slave address. Bit 0 is not implemented. When a master device, which is connected to the I 2C bus, sends out an address, which matches the slave address in the HADR register, the microcontroller slave device will be selected. I 2C Bus Input/Output Data Register - HDR The HDR register is the I 2C bus input/output data regis- ter. Before the microcontroller writes data to the I 2C bus, the actual data to be transmitted must be placed in the HDR register. After the data is received from the I 2C bus, the microcontroller can read it from the HDR register. Any transmission of data to the I 2C bus or reception of data from the I 2C bus must be made via the HDR register. I 2C Bus Control Register - HCR The I 2C bus control register HCR contains three bits. Bit 7, known as the HEN bit, determines if the I 2C bus func- tion is enabled or disabled, this bit must be set if the I 2C bus requires data transfer. Bit 4, known as the HTX bit, determines whether the device is in the transmit mode or receive mode, and must be set high if the device is to be setup as a transmitter. Bit 3, known as the TXAK bit, is the transmit acknowledge bit. After the receipt of 8 bits of data, this bit will be transmitted to the I 2C bus on the 9th clock. To continue receiving more data, this bit has to be reset to ²0² before more data is received. I 2 C D a t a R e g i s t e r ( H D R ) S l a v e A d d r e s s R e g i s t e r ( H A D R ) S h i f t R e g i s t e r H T X D i r e c t i o n C o n t r o l M U X A d d r e s s M a t c h ( H A A S ) I 2 C I n t e r r u p t S C L S D A D a t a I n ( T o L S B ) D a t a O u t ( F r o m M S B ) T r a n s m i t / R e c e i v e C o n t r o l U n i t H C F , 8 - b i t D a t a C o m p l e t e H B B , D e t e c t S t a r t o r S t o p D a t a B u s A d d r e s s C o m p a r a t o r T X A K , E n a b l e / D i s a b l e A c k n o w l e d g e S R W , R e a d / w r i t e S l a v e I 2C Bus Serial Interface Block Diagram H A D R R e g i s t e r b 7 b 0 N o t i m p l e m e n t e d , r e a d a s " 0 " S l a v e a d d r e s s I 2C Bus Slave Address Register |
|
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 |