I have coded to perform ACD with interrupt. Now i need to transfer the data to two 7-Segment LED display. I am connecting my LED pins to Port C and Port D. How do I program to transfer the recieved byte from ADRESL and ADRESH to LED display?
My code for ADC with interrupt is given below:
LIST P=PIC18F458
#include P18F458.INC
ORG 0000H
GOTO MAIN
ORG 0008H
BTFSS PIR1, ADIF
RETFIE
GOTO AD_ISR
ORG 00100H
MAIN CLRF TRISC
CLRF TRISD
BSF TRISA, 0
MOVLW 81H
MOVWF ADCON0
MOVLW 0CEH
MOVWF ADCON1
BCF PIR1, ADIF
BSF PIE1, ADIE
BSF INTCON, PEIE
BSF INTCON, GIE
OVER CALL DELAY
BSF ADCON0, GO
BRA OVER
AD_ISR
ORG 200H
MOVFF ADRESL, PORTC
MOVFF ADRESL, PORTD
BCF PIR1, ADIF
RETFIE
END
Kindly help me how to code to send the HByte and LByte data to 7- segment led display