| 数据搜索系统,热门电子元器件搜索 |
|
HT83F60 数据表(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT83F60 数据表(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 62 page ![]() HT83FXX Rev. 1.30 32 June 7, 2010 · SRW Bit The SRW bit in the SIMC1 register defines whether the microcontroller slave device wishes to read data from the I 2C bus or write data to the I2C bus. The microcontroller should examine this bit to determine if it is to be a transmitter or a receiver. If the SRW bit is set to ²1² then this indicates that the master wishes to read data from the I 2 C bus, therefore the microcontroller slave device must be setup to send data to the I 2C bus as a transmitter. If the SRW bit is ²0² then this indicates that the master wishes to send data to the I 2C bus, therefore the microcontroller slave device must be setup to read data from the I 2C bus as a receiver. · Acknowledge Bit After the master has transmitted a calling address, any slave device on the I 2C bus, whose own internal address matches the calling address, must generate an acknowledge signal. This acknowledge signal will inform the master that a slave device has accepted its calling address. If no acknowledge signal is received by the master then a STOP signal must be transmitted by the master to end the communication. When the HAAS bit is high, the addresses have matched and the microcontroller slave device must check the SRW bit to determine if it is to be a transmitter or a receiver. If the SRW bit is high, the microcontroller slave device should be setup to be a transmitter so the HTX bit in the SIMC1 register should be set to ²1² if the SRW bit is low then the microcontroller slave device should be setup as a receiver and the HTX bit in the SIMC1 reg- ister should be set to ²0². · Data Byte The transmitted data is 8-bits wide and is transmitted after the slave device has acknowledged receipt of its slave address. The order of serial bit transmission is the MSB first and the LSB last. After receipt of 8-bits of data, the receiver must transmit an acknowledge sig- nal, level ²0², before it can receive the next data byte. If the transmitter does not receive an acknowledge bit signal from the receiver, then it will release the SDA line and the master will send out a STOP signal to re- lease control of the I 2C bus. The corresponding data will be stored in the SIMDR register. If setup as a transmitter, the microcontroller slave device must first write the data to be transmitted into the SIMDR regis- ter. If setup as a receiver, the microcontroller slave de- vice must read the transmitted data from the SIMDR register. · Receive Acknowledge Bit When the receiver wishes to continue to receive the next data byte, it must generate an acknowledge bit, known as TXAK, on the 9th clock. The microcontroller slave device, which is setup as a transmitter will check the RXAK bit in the SIMC1 register to determine if it is to send another data byte, if not then it will release the SDA line and await the receipt of a STOP signal from the master. D a t a 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 1 S = S t a r t ( 1 b i t ) S A = S l a v e A d d r e s s ( 7 b i t s ) S R = S R W b i t ( 1 b i t ) M = S l a v e d e v i c e s e n d a c k n o w l e d g e b i t ( 1 b i t ) D = D a t a ( 8 b i t s ) A = A C K ( R X A K b i t f o r t r a n s m i t t e r , T X A K b i t f o r r e c e i v e r 1 b i t ) P = S t o p ( 1 b i t ) S C L S t a r t S D A S R W A C K A C K S t o p S C L S D A S l a v e A d d r e s s S S A S R M D A D A S S A S R M D A D A P I 2C Communication Timing Diagram S C L S D A S t a r t b i t D a t a s t a b l e D a t a a l l o w c h a n g e S t o p b i t Data Timing Diagram |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |