
High-definition multimedia interface, consumer electronics control (HDMI-CEC) AN3127
12/36 Doc ID 16896 Rev 2
(EDID_EXT_VSDB_B0-1). Thereby, except for the root device, all devices have the physical
address stored in the EDID of their connected sink.
The physical address of each node is determined through the physical address discovery
process. This process is dynamic in that it automatically adjusts physical addresses as
required as devices are physically or electrically added or removed from the device tree.
All sinks and repeaters should perform the steps of physical address discovery and
propagation even if those devices are not CEC-capable. Sources are not required to
determine their own physical address unless they are CEC-capable.
All addresses are 4 digits long allowing for a 5-device-deep hierarchy. All are identified in the
form of n.n.n.n in the following description.
A sink or repeater that is acting as the CEC root device generates its own physical address:
0.0.0.0. The source or repeater reads its physical address from the EDID of the connected
sink. The CEC line may be connected to only one HDMI output so a device with multiple
HDMI outputs will read its physical address from the EDID on the CEC-connected output.
Each sink and repeater is responsible for generating the physical address of all source
devices connected to that device by appending a port number onto its own physical address
and placing that value in the EDID for that port.
1.4.5 Discovery algorithm
The following algorithm is used to allocate the physical address of each device whenever
HPD is de-asserted, or upon power-up:
Figure 8. Physical address discovery algorithm
$ISABLEASSERTIONOF (0$TOALLSOURCEDEVICES
)F)AM#%#ROOT
3ETMY? AD DR ES STO
%LSE
7AITFOR(0$FROM SINK
1UERYSINKFORMY ?ADDRESSOFMYCONNECTION
4HEDEVICESHALL RETAINTHISPHYSICALADDRESSUNTIL
(0$ISREMOVEDORT HEDEVICEISPOWEREDOFF
%NDIF
)FDEVICEHASCONNECT IONSFORSOURCEDEVICESTHEN
,ABELALLPOSSIBLE CONNECTIONSTOSOURCEDEVICES
UNIQUELYSTARTING FROMCONNECTION?LABELTOTHE
NUMBEROFSOURCEI NPUTCONNECTIONS
)FDEVICEHASSEPAR ATE%$)$SFOREACHSOURC ECONNECTION
THEN
)FMY?ADDRESSENDS WITHTHEN
3ETEACHSOU RCE?PHYSICAL?ADDRESSTOMY?ADDRESS
WITHTHEFIR STBEINGREPLACEDWITH
CONNECTION?L ABEL
%LSEIEBEYONDTHEFIFTHLAYEROFTHETREE
3ETEACHS OURCE?PHYSICAL?ADDRESSTO&&&&
%NDIF
%LSE
3ETEACHSOURCE?PH YSICAL?ADDRESSTOMY?ADDRESS
%NDIF
7RITESOURCE?PHYSIC AL?ADDRESSTO($-)63$"IN%$)$FOR
EACHSOURCECONNECTIO N
%NDIF
!LLOW(0$TOBEASSER TEDFORSOURCEDEVICES AI