Hi everybody, I am a beginner in PBP, just started 2 weeks ago...
am experiencing problems with porta.5 and 4 of 16f873a, i cant make them high, i dont know what could be the problem...
also, I tried to insert some line of assembly codes using the asm...endasm instruction but the compiler returns an error "opcode expected instead of porta,portb.." if anybody knows what s happening, please help me

thank you in advance

ps: i am building a safe system with 3x4 keypad connected to portc, 3 7segment displays connected to portb , porta.0,1 and 2 switch between the displays and porta.4 and 5 are my output to buzzer and relay, this is the sample program i wrote to check my hardware , and i seem to dont get it right...and i still have to do the keypad interfacing...

adcon1=6
trisa=0
trisb=0
portb=%11111111
porta.0=1
porta.1=1
porta.2=1
porta.4=1
porta.5=1
sound porta.3,[100,5000]
end
'the program above worked except that i dint get any output from ra4 and ra5


'there is the one that returned me errors
adcon1=6
trisa=0
trisb=0
asm
movlw 0ffh
movwf portb
bsf porta,0
bsf porta,1
bsf porta,2
bsf porta,5
endasm
sound porta,[100,50]
end

'thankyou