A CMOS smart temperature sensor with a 3σ inaccuracy of ±0.5°C from -50°C to 120°C