Raju C
Member level 2
I am doing program for synthesizer CMX7031,data i am taking from PIC18F , can any one tell me what is wrong with the below code?
LFSR 1,0X10
N_VALUE: MOVWF INDF1; ENTERED 'N' VALUE
;; UNTILL THE REMINDER IS LESS THAN DIVIDEND CALCULATE THE VALUE
SUBLW D'1024'
CPFSLT D'1024'
BRA $-4
ADDLW D'16384'
MOVWF SSP1BUF
CLRF INDF1
INCF FSR1L
BRA NVALUE
as it is 8 bit processor we cant add or substract it with 16 bit but as i am interfacing it with CMX7031 i need to program for synthesizer so how can i do this ? so any solutions pls
LFSR 1,0X10
N_VALUE: MOVWF INDF1; ENTERED 'N' VALUE
;; UNTILL THE REMINDER IS LESS THAN DIVIDEND CALCULATE THE VALUE
SUBLW D'1024'
CPFSLT D'1024'
BRA $-4
ADDLW D'16384'
MOVWF SSP1BUF
CLRF INDF1
INCF FSR1L
BRA NVALUE
as it is 8 bit processor we cant add or substract it with 16 bit but as i am interfacing it with CMX7031 i need to program for synthesizer so how can i do this ? so any solutions pls