Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait
- SDA low
- SCL low
- wait
- for each bit
- if bit is set: SDA high
- if bit is unset: SDA low
- wait
- SCL high
- wait
- wait
- SCL low
- wait
- wait
- SDA high
- SCL high
- wait
- wait
- check ACK status
- SDA low
- SCL low
- wait
- return ACK status
- wait
- SCL low
- SDA high
- for each bit (8 bits)
- SCL high
- wait
- wait
- SCL low
- wait
- check and store received bit
- wait
- do a NACK or ACK depending on if it is the last byte
- wait
- SCL low
- SDA high
- for each bit (8 bits)
- SCL high <--------
- wait
- check and store received bit <--------
- wait
- SCL low <--------
- wait
- wait
- do a NACK or ACK depending on if it is the last byte
- - Byte mode sequential
- - Page mode Sequential
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement