add assert to tim prescaler