I have assembled the code bellow using gpasm 1.4.0.
list P=PIC16F84, R=D
temp1 equ 0Ch
temp2 equ 0Dh
count equ 0Eh
start bsf STATUS,RP0
main movf PORTB ,W
It's supposed to copy the content from inputs in pins B0 to B4 from PORTB and copy to outputs in pins A0 to A4 from PORTA.
The MCU Monitor shows that the code is executing okay.
The TRISA and TRISB is correctly configured (setting every pin in PORTA as output and every pin in PORTB as input).
The value recorded in register PORTB corresponds to the electrical levels driven to the pins and is correctly copied to PORTA.
Thus, I'm able to change the value of the A4 bit in PORTA register by changing B4.
Nevertheless, A4 electrical voltage keep stuck in 0V, no matter the value in the register PORTA.