To provide an oscillator circuit for having a small variation in a refresh period in relation to variation in a detected temperature, and capable of enlarging a difference between a period at a higher temperature and a period at a lower temperature.
A current source 101 generates current having a current value depending on temperature. Oscillators 102 (0)-(3) oscillate with a period depending on current inputted from the current source 101, respectively. Relationship between an oscillation period and ambient temperature is set up to a mutually different one for each oscillator 102. An oscillation signal outputted by any of Oscillator 102 (0)-(3) is inputted into a dividing circuit 104, via a period switching circuit 103. The number of dividing at the dividing circuit 104 is set to a smaller value as a detected ambient temperature gets higher, based on the ambient temperature detected by a temperature sensor 105.