I'm using SimulIDE_1.0.0-RC3_Lin64 in linux 20.04 and compiled the code bellow in gpasm 1.4.0, and it should copy the content of PORTB to PORTA.
I'm using fixed volt sources as inputs in PORTB and cannot cause any change in this port. I've checked MCU monitor and PORTB values is always 00000000.
I noticed that when putting the component of PIC16F84 in the schematic the messages
"Warning: Register not found: "PINA"
Warning: Register not found: "PINB" "
appeared in the terminal.
- Code:
list p=PIC16F84, r=DEC
include "p16f84.inc"
org 0
goto start
org 8
start bsf STATUS, RP0
movlw b'00000000'
movwf TRISA
movlw b'11111111'
movwf TRISB
movlw b'00000000'
movwf INTCON
bcf STATUS, RP0
inLoop movf PORTB, W
movwf PORTA
clrwdt
goto inLoop
end
I'm using fixed volt sources as inputs in PORTB and cannot cause any change in this port. I've checked MCU monitor and PORTB values is always 00000000.
I noticed that when putting the component of PIC16F84 in the schematic the messages
"Warning: Register not found: "PINA"
Warning: Register not found: "PINB" "
appeared in the terminal.