bmsherma, Try this...
SELECT CASE VOLTAGE
CASE < 257
PORTC = %0001
CASE < 513
PORTC = %0010
CASE < 769
PORTC = %0100
CASE < 1024
PORTC = %1000
END SELECT
Pause 100
I use this construct when determining groups of numbers. You start with the smallest and move up to the largest.
Dave Purola,
N8NTA
Bookmarks