I am using a pic16f690 on right justified counting upto 500 and displaying on a seven seg 3 digit, hundreds , tens , units , it works perfect from zero to 255, incrementing and rollover from 9 to 0, then it goes stupid,
at 256 the display shows 306, and continues to count up incrementing the units by one then the tens increment every rollover from 9 to 0 on the units, but the tens count upto 6 then increments the hundreds, then at 512 it goes back to normal again.
The part upto Check_256 works no problem, after it goes to over 255 it then goes daft, and then back to normal counting at 512
WHAT the hell is going wrong?
! am using left justified, and using the ADRESL file to get my input value.
is there some thing in the ADRESH file that is causing it to add 50 to the tens?
or is there a reason it wants to add 50?
at 256 the display shows 306, and continues to count up incrementing the units by one then the tens increment every rollover from 9 to 0 on the units, but the tens count upto 6 then increments the hundreds, then at 512 it goes back to normal again.
The part upto Check_256 works no problem, after it goes to over 255 it then goes daft, and then back to normal counting at 512
WHAT the hell is going wrong?
! am using left justified, and using the ADRESL file to get my input value.
is there some thing in the ADRESH file that is causing it to add 50 to the tens?
or is there a reason it wants to add 50?
Last edited: