<p>In a particular embodiment, a device (102) includes a reference voltage circuit (110) to generate a controlled voltage. The device includes a frequency circuit (106) configured to generate a frequency output signal (328) having a pre-set frequency and a counter (304) to generate a count signal (310) based on the pre-set frequency. The device also includes a delay circuit (306) coupled to receive the count signal and to produce a delayed digital output signal (312) and a latch (320) to generate a pulse (130). The pulse has a first edge (132) responsive to a write command and a trailing edge (134) formed in response to the delayed digital output signal. In a particular embodiment, the pulse width of the pulse corresponds to an applied current level that exceeds a critical current to enable data to be written to an element of the memory but does not exceed a predetermined threshold.</p>