| поискавой системы для электроныых деталей |
|
PIC14000 датащи(PDF) 49 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC14000 датащи(HTML) 49 Page - Microchip Technology |
|
49 / 153 page ![]() © 1996 Microchip Technology Inc. Preliminary DS40122B-page 49 PIC14000 7.5.1 SLAVE MODE In slave mode, the SCLx and SDAx pins must be configured as inputs (TRISC<7:6> or TRISD<1:0> are set). The I2C module will override the input state with the output data when required (slave-transmitter). When an address is matched or the data transfer from an address match is received, the hardware automatically will generate the acknowledge (ACK) pulse, and then load the I2CBUF with the received value in the I2CSR. There are two conditions that will cause the I2C module not to give this ACK pulse. These are if either (or both) occur: • the Buffer Full (BF), I2CSTAT<0>, bit was set before the transfer was received, or • the Overflow (I2COV), I2CCON<6> bit was set before the transfer was received. In this case, the I2CSR value is not loaded into the I2CBUF, but the I2CIF bit is set. Table 7-2 shows what happens when a data transfer byte is received, given the status of the BF and I2COV bits. The shaded boxes show the conditions where user software did not properly clear the overflow condition. The BF flag is cleared by reading the I2CBUF register while the I2COV bit is cleared through software. The SCL clock input must have a minimum high and low for proper operation. The high and low times of the I2C specification as well as the requirement of the I2C module is shown in the AC timing specifications. TABLE 7-2: DATA TRANSFER RECEIVED BYTE ACTIONS Status Bits as Data Transfer is Received BF I2COV I2CSR-> I2CBUF Generate ACK Pulse Set I2CIF bit (I2C interrupt if enabled) 0 0 Yes Yes Yes 1 0 No No Yes 1 1 No No Yes 0 1 No No Yes |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |