1. A method of providing a reference voltage in an integrated circuit, comprising: programming a threshold voltage of a first non-volatile memory (NVM) transistor while coupled with a second NVM transistor; coupling a first capacitor between a floating gate of the first NVM transistor and a first voltage supply during the programming step; generating a single-ended reference voltage in response to the programmed threshold voltage of the first NVM transistor; and then adjusting a temperature coefficient associated with the single-ended reference voltage by introducing a first p-n junction in series with the first capacitor.