Updated HAL CMOS functionality