Patent ID: 7346051

Claim:
A stacked device comprising a stack of a master device and a plurality of slave devices, having identical terminal arrangements, said master device comprising: a command transmission unit configured to input an identification command to a terminal of an adjacent slave device; an ID (identifier) reception unit configured to receive, from the slave devices, slave device IDs that have been set in response to said identification command; and a correspondence storage unit configured to store correspondences between the slave devices and the IDs; each slave device comprising: a through-wire for interconnecting at least one terminal of the slave device and an adjacent slave device; and a command reception unit configured to receive said identification command; and an ID setting unit configured to set the ID of the slave device based on said identification command; wherein the positions of the terminals that are interconnected with said adjacent slave device differing in each slave device, so that, in each slave device, said slave device command reception unit receives an identification command having a modified value as a result of transiting through-wires that are connected at differing positions in each slave device.