Hi Alain
It is not about the conversion. Let me explain what I think could be the problem you see.
When you are in ModeI=1, you are putting out a bar graph + a dot position. That is what I understand.
What happens is when you are doing the bar graph, you are rapidly swiping the leds with the dot to enable your eyes to see a bar.
After that happens, you wish to have another dot that stays on to represent the current reading. This too happens immediately after the bar is displayed; but, it happens after you erase the bar with LATA=0. Now, only the dot persists till the next time you refresh the display for bar and dot. This time between 2 display refreshes is tied to the delay for ADC in Wait1(your code).
I choose to not wait for ADC, but process it when ready. Therefore the Wait10
Regards
Bookmarks