and set the conversion clock to fosc/2ADCON2 = %10000000 ' ...and right justify result
way out of specs
ADCON2 = %10000011 ' ...and right justify result and use frc
and set the conversion clock to fosc/2ADCON2 = %10000000 ' ...and right justify result
way out of specs
ADCON2 = %10000011 ' ...and right justify result and use frc
I changed
ADCON2 = %10000000
to
ADCON2 = %10000011
it is still the same![]()
What is your ADC source and how is it connected?
What are the current readings and what are the expected readings?
Dave
Always wear safety glasses while programming.
Source is pressure sensor (output 0 - 1V), wchich is normaly working with 10-bit A/D - PIC16F877 conection.
I built conection with PIC18F2455, but not working properly.![]()
Problem is solved, I changed LCD display, it is OK.
Thanks for your help.
kuba230,
If I may jump in here now that your problem is solved...
So just curious... Was the 'bad' LCD displaying garbage characters or was it displaying a somewhat valid number??but not working properly, value on LCD display is not correct.
Please be more specific as to what the 'bad' LCD was displaying.
Being more specific on describing the problem is more likely to help solve future problems
dwight
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
To clarify... the reason I asked the above question(s) is because it seems to me that if the LCD was displaying any reasonable characters then the LCD was working.
Was it an LCD contrast issue or were the characters complete garbage??
Is it possible that you also fixed something else in your code that was suggested by the other reply's to your questions and that was the real problem??
That is why I asked about what exactly you were seeing on the LCD.
dwight
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Bookmarks