A system includes a nonvolatile semiconductor memory and an electronic device which includes the nonvolatile semiconductor memory. The nonvolatile semiconductor memory selects a first operation mode while the nonvolatile semiconductor memory is connected to a first capacitor having a first capacity, and the nonvolatile semiconductor memory selects a second operation mode while the nonvolatile semiconductor memory is connected to a second capacitor having a second capacity higher than a first capacity. The nonvolatile semiconductor memory operates in the selected one of the first and second operation modes. The first operation mode is a mode in which a peak of current consumption takes a first value, and a second operation mode is a mode in which a peak of current consumption takes a second value lower than the first value.