0
0
Embedded Cprogramming~5 mins

I2C addressing (7-bit and 10-bit) in Embedded C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the difference between 7-bit and 10-bit I2C addressing?
7-bit addressing uses 7 bits to identify a device on the I2C bus, allowing up to 128 addresses. 10-bit addressing uses 10 bits, allowing more devices (up to 1024 addresses) on the bus.
Click to reveal answer
beginner
How is a 7-bit I2C address transmitted on the bus?
The 7-bit address is sent in the first 7 bits of the address byte, followed by a single bit indicating read (1) or write (0).
Click to reveal answer
intermediate
How does 10-bit addressing start on the I2C bus?
It starts with a special 7-bit code '11110XX' where XX are the two most significant bits of the 10-bit address, followed by a read/write bit, then the remaining 8 bits of the address.
Click to reveal answer
intermediate
Why would you use 10-bit addressing instead of 7-bit?
Use 10-bit addressing when you need to connect more than 127 devices on the same I2C bus, as 7-bit addressing limits the number of unique addresses.
Click to reveal answer
beginner
In embedded C, how do you typically specify a 7-bit I2C address?
You specify the 7-bit address shifted left by 1 bit, leaving the least significant bit for read/write control.
Click to reveal answer
How many unique device addresses can 7-bit I2C addressing support?
A64
B128
C1024
D256
What is the first part of the 10-bit I2C address frame?
AA special 7-bit code starting with 11110
BThe full 10-bit address sent at once
COnly the lower 8 bits of the address
DA 7-bit address with read/write bit
In 7-bit addressing, what does the least significant bit of the address byte represent?
ARead or write operation
BDevice type
CBus speed
DError checking
Why might you shift a 7-bit I2C address left by 1 in embedded C code?
ATo match 10-bit addressing
BTo encrypt the address
CTo increase the address range
DTo make room for the read/write bit
Which addressing mode allows more devices on the I2C bus?
ABoth allow the same number
B7-bit addressing
C10-bit addressing
DNeither supports multiple devices
Explain how 7-bit and 10-bit I2C addressing differ in structure and usage.
Think about how many devices each can support and how the address is sent on the bus.
You got /4 concepts.
    Describe how you would represent a 7-bit I2C address in embedded C code and why.
    Remember the read/write bit is part of the address byte sent on the bus.
    You got /3 concepts.