A method of manufacturing an electronic pen, the electronic pen including a coil and an integrated circuit including an internal capacitor array including a plurality of capacitive elements connected in parallel, wherein the coil and the internal capacitor array constitute the resonant circuit, the method comprising:
- changing a state of a predetermined portion of the plurality of capacitive elements constituting the internal capacitor array;
- and
- changing, according to variations in a reference resonance frequency of the resonance circuit before and after the state of the resonance circuit is changed, a state of a portion or all of at least one capacitive element constituting the inner capacitor array other than said predetermined portion of the plurality of capacitive elements.