Works for 8bits timer