I downloaded a PIC programme from the internet for a PIC16F88.
PORTA 1, 2 & 3 are used as analogue inputs.
But there is an instruction in the programme that I don’t understand.
movlw (1<<ana1)|(1<<ana2)|(1<<ana3)
I’m familiar with the normal movlw instruction, eg. movlw 0x1A, but not with the one above.
In the definitions, the parameters are defined as:-
ana3 equ 3 ; analog input AN3
ana2 equ 2 ; analog input AN2
ana1 equ 1 ; analog input AN1
Any assistance will be appreciated.
PORTA 1, 2 & 3 are used as analogue inputs.
But there is an instruction in the programme that I don’t understand.
movlw (1<<ana1)|(1<<ana2)|(1<<ana3)
I’m familiar with the normal movlw instruction, eg. movlw 0x1A, but not with the one above.
In the definitions, the parameters are defined as:-
ana3 equ 3 ; analog input AN3
ana2 equ 2 ; analog input AN2
ana1 equ 1 ; analog input AN1
Any assistance will be appreciated.