yllongboy
Newbie level 6
pic16f877 porta
hi there..
could anyone help me with my problem ....
im trying to send data on port A of pic16f877
but nothing happens... here is my sample code....
list p=16f877
#include <p16f877.inc>
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_ON & _LVP_ON & _DEBUG_OFF & _CPD_OFF
ORG 0x00
start
CLRW
BSF STATUS, RP0
MOVLW 0x06
MOVWF ADCON1
MOVLW 0X00
movwf trisa
BCF STATUS, RP0
LOOP
MOVLW 0XFF
MOVWF PORTA
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movlw 0x00
movwf porta
GOTO LOOP
END
..... this is just a simple blinking of the led... just to see if i could really send data to port A
hi there..
could anyone help me with my problem ....
im trying to send data on port A of pic16f877
but nothing happens... here is my sample code....
list p=16f877
#include <p16f877.inc>
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_ON & _LVP_ON & _DEBUG_OFF & _CPD_OFF
ORG 0x00
start
CLRW
BSF STATUS, RP0
MOVLW 0x06
MOVWF ADCON1
MOVLW 0X00
movwf trisa
BCF STATUS, RP0
LOOP
MOVLW 0XFF
MOVWF PORTA
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movlw 0x00
movwf porta
GOTO LOOP
END
..... this is just a simple blinking of the led... just to see if i could really send data to port A