1. A mobile System on Chip (SoC) comprising: a microprocessor; a first memory controller configured to control a refresh of a first memory; and a second memory controller configured to control a second memory, wherein a temperature sensor detects a temperature in the first memory, and when first temperature information received from the temperature sensor indicates that the detected temperature deviates from a predetermined temperature range, the first memory controller controls the first memory so as not to perform a self refresh, and wherein when the first temperature information received indicates that the detected temperature deviates from the predetermined temperature range, the first memory controller reads at least a part of data stored in the first memory and outputs the read data to the second memory controller, and the second memory controller controls the output data so as to be stored in the second memory.