Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

initilisation troubles

Status
Not open for further replies.

Lilikin

New Member
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


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
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top