A temperature compensation method using diode is described.It is designed for non-gated integrated circuitry and has been used in charge measurement of BESⅢtime of flight electronics.Detailed tests suggests that the temperature coefficient of charge measurement,with this compensation method,is about 0.6mV/℃,covering the wide temperature range of 30~50℃and input signal dynamic range of 200~5000mV,which meets the requirement of BESⅢproject.