How can I exit my lookup table instruction with the desired value on PIC16F1829
问题 How can I get my code to work correctly when I include ADC conversion in it? I have a working code that displays two digits on 2 LED displays using a p16f1829. However, a problem arises when I try to include a code block that collects the results of an ADC conversion to display on the LED display (see below). A2D: ; Start the ADC NOP ; Requried ADC delay of 8uS => (1/(Fosc/4)) = (1/(500KHz/4)) = 8uS BANKSEL ADCON0 ; Selects memory bank containing ADCON0 register BSF ADCON0, GO ; Start the ADC