alaalwi11
Member level 1
- Joined
- Nov 30, 2010
- Messages
- 32
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Al khurtum-Sudan
- Activity points
- 1,626
:roll:Hi hello anyone i m new to this site so help me in my problem
my broblem i program pic 16f84 to read data from port a and display in port b
but there is one pin dosn't out signal
please help me
source code in pic assembly:
;F.ALI HASSAN
;specify SFRS
status equ 03
porta equ 05
trisa equ 85
portb equ 06
trisb equ 86
optio equ 81
org 00
;Initilize
start bsf status,5 ;select memory bank 1
movlw B'00011000'
movwf trisa ;porta according above pattern
movlw b'00000000'
movwf trisb ;all port B output
bcf status,5;select bank 0
bsf optio,5
;the "main"program starts her
clrf porta ;clear all bits in ports A
loop movf porta,0 ;move port A to W REGISTER
movwf portb ;move w register to port B
goto loop
end
my broblem i program pic 16f84 to read data from port a and display in port b
but there is one pin dosn't out signal
please help me
source code in pic assembly:
;F.ALI HASSAN
;specify SFRS
status equ 03
porta equ 05
trisa equ 85
portb equ 06
trisb equ 86
optio equ 81
org 00
;Initilize
start bsf status,5 ;select memory bank 1
movlw B'00011000'
movwf trisa ;porta according above pattern
movlw b'00000000'
movwf trisb ;all port B output
bcf status,5;select bank 0
bsf optio,5
;the "main"program starts her
clrf porta ;clear all bits in ports A
loop movf porta,0 ;move port A to W REGISTER
movwf portb ;move w register to port B
goto loop
end