User's Manual

CY8CKIT-042-BLE-A Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 002-11468 Rev. *A 117
Advanced Topics
6.1.2 Write/Read Operation
The device datasheet includes details on how to perform a write/read operation with the F-RAM.
Figure 6-2 and Figure 6-3 provide a snapshot of the write/read packet structure as a quick reference.
Figure 6-2. F-RAM Single-Byte and Multiple-Byte Write Packet Structure
Figure 6-3. F-RAM Single-Byte and Multiple-Byte Read Packet Structure
As shown in the figures, all operations start with the slave address followed by the memory address.
For write operations, the bus master sends each byte of data to the memory, and the memory
generates an acknowledgement condition. For read operations, after receiving the complete slave
address and memory address, the memory begins shifting data from the current address on the next
clock.