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.

I want to try this out..Help Please

Status
Not open for further replies.
TRIS = direction (0 for output)
PORT = high or low (0 for low)

Don't connect anything to the unused pins.

Here's another advanced tip:
RBPU will turn a weak pullup on PORTB, handy for pushbuttons.

I must have them set.

it looks like this. Is this right?

init
movlw 0 ;initialise port settings
tris portb
movwf portb
movlw 1
tris porta
bcf porta,0
 
Last edited:
tris porta?

try

bcf trisa,0

don't forget tris & port are in different banks.

Sorry it took a few days to get back here. SUCCESS!!! I have built the new hardware and completed the new asm. I am going to post a site in the next week and cite all the help i had to accomplish this project. Thanks for the help there "ericgibbs". See ya soon.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top