| Electronic Components Datasheet Search |
|
48GA004 Datasheet(PDF) 151 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
48GA004 Datasheet(HTML) 151 Page - Microchip Technology |
|
151 / 268 page ![]() 2010 Microchip Technology Inc. DS39881D-page 151 PIC24FJ64GA004 FAMILY 16.0 INTER-INTEGRATED CIRCUIT (I2C™) The Inter-Integrated Circuit™ (I2C™) module is a serial interface useful for communicating with other periph- eral or microcontroller devices. These peripheral devices may be serial EEPROMs, display drivers, A/D Converters, etc. The I2C module supports these features: • Independent master and slave logic • 7-bit and 10-bit device addresses • General call address, as defined in the I2C protocol • Clock stretching to provide delays for the processor to respond to a slave data request • Both 100 kHz and 400 kHz bus specifications. • Configurable address masking • Multi-Master modes to prevent loss of messages in arbitration • Bus Repeater mode, allowing the acceptance of all messages as a slave regardless of the address • Automatic SCL A block diagram of the module is shown in Figure 16-1. 16.1 Peripheral Remapping Options The I2C modules are tied to fixed pin assignments, and cannot be reassigned to alternate pins using peripheral pin select. To allow some flexibility with peripheral multiplexing, the I2C1 module in all devices, can be reassigned to the alternate pins, designated as ASCL1 and ASDA1 during device configuration. Pin assignment is controlled by the I2C1SEL Configu- ration bit; programming this bit (= 0) multiplexes the module to the ASCL1 and ASDA1 pins. 16.2 Communicating as a Master in a Single Master Environment The details of sending a message in Master mode depends on the communications protocol for the device being communicated with. Typically, the sequence of events is as follows: 1. Assert a Start condition on SDAx and SCLx. 2. Send the I2C device address byte to the slave with a write indication. 3. Wait for and verify an Acknowledge from the slave. 4. Send the first data byte (sometimes known as the command) to the slave. 5. Wait for and verify an Acknowledge from the slave. 6. Send the serial memory address low byte to the slave. 7. Repeat steps 4 and 5 until all data bytes are sent. 8. Assert a Repeated Start condition on SDAx and SCLx. 9. Send the device address byte to the slave with a read indication. 10. Wait for and verify an Acknowledge from the slave. 11. Enable master reception to receive serial memory data. 12. Generate an ACK or NACK condition at the end of a received byte of data. 13. Generate a Stop condition on SDAx and SCLx. Note: This data sheet summarizes the features of this group of PIC24F devices. It is not intended to be a comprehensive reference source. For more information, refer to the “PIC24F Family Reference Manual” , ”Section 24. Inter-Integrated Circuit (I2C™)” (DS39702). |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |