






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Inter-Integrated Circuit (I2C) CommunicationsCommunications
1
2
When a device on a bus talks, all hear what isall hear what is said.
An address is used to specify what device the communication is intended for.
Copyright Delmar Cengage Learning 2008. All Rights Reserved. From: Reese/Bruce/Jones, “Microcontrollers: From Assembly to C with the PIC24 Family”.
3
Copyright Delmar Cengage Learning 2008. All Rights Reserved. From: Reese/Bruce/Jones, “Microcontrollers: From Assembly to C with the PIC24 Family”.
4
These are primitive operations.
7
These are use the primitive operations to read/write 1 or more bytes to a slave.
8
9
10
24LC515 I 2 C Address Format, Write Operation
Most efficient to write 64 bytes at a time as write takes 3 – 5 ms to complete.p
Poll device to see when the write is finished.
13
24LC515 I 2 C Read Operation
We will do this to read the device, and always will read 64 bytes at a time. 14
Support Functions
Poll device to see when the write is finished.
Write 64 bytes in **** pu_bufb f** tto device
15
Support Functions
Read 64 bytes from device, return in *pu_buf
16
19