| Os motores de busca de Datasheet de Componentes eletrônicos |
|
P89V660FBC Folha de dados(PDF) 29 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
P89V660FBC Folha de dados(HTML) 29 Page - NXP Semiconductors |
|
29 / 89 page ![]() P89V660_662_664_2 © NXP B.V. 2008. All rights reserved. Product data sheet Rev. 02 — 29 January 2008 29 of 89 NXP Semiconductors P89V660/662/664 80C51 with 512 B/1 kB/2 kB RAM, dual I2C-bus, SPI The I2C-bus will enter Master Transmitter mode by setting the STA bit. The I2C-bus logic will send the START condition as soon as the bus is free. After the START condition is transmitted, the SI bit is set, and the status code in S1STA should be 08H. This status code must be used to vector to an interrupt service routine where the user should load the slave address to S1DAT and data direction bit (SLA+W). The SI bit must be cleared before the data transfer can continue. When the slave address and R/W bit have been transmitted and an acknowledgment bit has been received, the SI bit is set again, and the possible status codes are 18H, 20H, or 38H for the master mode or 68H, 78H, or 0B0H if the slave mode was enabled (setting AA = Logic 1). The appropriate action to be taken for each of these status codes is shown in Table 22. 6.4.5.2 Master receiver mode In the Master Receiver mode, data is received from a slave transmitter. The transfer started in the same manner as in the Master Transmitter mode. When the START condition has been transmitted, the interrupt service routine must load the slave address and the data direction bit to I2C-bus Data Register (S1DAT). The SI bit must be cleared before the data transfer can continue. When the slave address and data direction bit have been transmitted and an acknowledge bit has been received, the SI bit is set, and the Status Register will show the status code. For master mode, the possible status codes are 40H, 48H, or 38H. For slave mode, the possible status codes are 68H, 78H, or B0H. Refer to Table 24 for details. After a repeated START condition, I2C-bus may switch to the Master Transmitter mode. Fig 8. Format in the Master Transmitter mode S R/W A DATA DATA data transferred (n Bytes + acknowledge) A A/A P slave address logic 0 = write logic 1 = read from master to slave from slave to master A = acknowledge (SDA LOW) A = not acknowledge (SDA HIGH) S = START condition P = STOP condition 002aaa929 Fig 9. Format of Master Receiver mode S R A slave address logic 0 = write logic 1 = read from master to slave from slave to master A = acknowledge (SDA LOW) A = not acknowledge (SDA HIGH) S = START condition 002aaa930 DATA DATA data transferred (n Bytes + acknowledge) A A P |
|
Ligação URL |
| ALLDATASHEET é útil para você? [ DONATE ] |
Sobre Alldatasheet | Publicidade | Contato conosco | Privacy Policy | Link para a ficha técnica | roca de Link | Lista de Fabricantes 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 |