The CPU 17 accesses multiple slots 41a and 41b
in a digital camera 1 at regular intervals to detect whether or not
memory cards 40a and 40b are mounted in the slots 41a
and 41b, respectively. Based on whether or not memory cards 40a
and 40b are mounted in the slots 41a and 41b,
respectively, the CPU 17 selects one slot as the slot to be accessed. There
are three modes available as the mode from which to perform this selection, i.e.,
a fixed mode, a priority mode and a manual operation mode.