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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…