A CMOS smart temperature sensor with a 3 sigm Inaccuracy of +-0.5 deg C from -50 deg C to 120 deg C