i have designed some code for a simple command pic but need help initilising can you help please here it is
this is my init phase i am getting errors all over can you help
porttx is a input all 8 bits
motorport is an output
ult is the second input
this is my init phase i am getting errors all over can you help
porttx is a input all 8 bits
motorport is an output
ult is the second input
Code:
list p=16f877a
include "pic16f877a.inc"
_config 0X3d18
cblock 0X20
command
blocks
motorport
porttx
endc
Running
ult
org 0x0000
movlw 0x07 ;move literal to w
bsf status, rp0
movwf ledtris
bcf status, rp0
clrf ledport
portB equ porttx
portc equ porttx
portd equ motorport