atwoz , What type of variable is "b0" defined as? If it is declared as a byte it is only counting to 255..... Declare it as a word..

Dave Purola,
N8NTA