i m using PIC16F877, assembly language to display ADC value on LCD..
before that, i already success to get the display value from 0.00-16.00..
but now i want to display the value from -5.00 until 5.00..
so how should i do in order to get the range??
i had try to display a range of 0.00-2.00..
after that, i add instruction of "sublw 0x64"..
when i play around with ADC, the result show
(first value)1.00...0.98..0.50...0.00..2.54...2.00...1.53(last value)
it start with 1 and decrease until 0.00, after 0.00, it directly jump to 2.54 and decrease again..
how should i do if i want the result decrease to 0.00 and then increase to the value i want..
how to make it display '-' before value 0.00 and '+' after value 0.00..
thanks....
before that, i already success to get the display value from 0.00-16.00..
but now i want to display the value from -5.00 until 5.00..
so how should i do in order to get the range??
i had try to display a range of 0.00-2.00..
after that, i add instruction of "sublw 0x64"..
when i play around with ADC, the result show
(first value)1.00...0.98..0.50...0.00..2.54...2.00...1.53(last value)
it start with 1 and decrease until 0.00, after 0.00, it directly jump to 2.54 and decrease again..
how should i do if i want the result decrease to 0.00 and then increase to the value i want..
how to make it display '-' before value 0.00 and '+' after value 0.00..
thanks....