Fix timer8 period value and prescaler value setting