The invention discloses a writing and
triggering device of an electronic pen. The device comprises a pen shell and a pen tip; the device is characterized by further comprising a
capacitor movable pole, a
capacitor fixed pole, a flexible element, a
capacitance value measuring circuit, a
data processing circuit and a
wireless transmitting circuit; the
capacitor movable pole is arranged at the front end of the pen shell and can move vertically; the capacitor fixed pole is fixed in the pen shell and cannot move freely; one end of the flexible element is fixed at the capacitor movable pole, and the other end of the flexible element is fixed at the capacitor fixed pole or on a part with a
phase displacement change with the pen shell; the
capacitance value measuring circuit and a
capacitance fixing circuit are formed into a capacitor body, and two poles of the capacitor body are respectively connected with a capacitance input end of the capacitance value measuring circuit; the digital
processing circuit is connected with the capacitance value measuring circuit and used for reading the capacitance numerical value from the capacitance value measuring circuit; and the
wireless transmitting circuit is connected with the
data processing circuit and used for transmitting the pen tip touch data. The device provided by the invention can independently finish mechanical contact writing and triggering in a writing pen and can detect the wiring pressure size.