For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Posts: 1
Joined: Sun Dec 11, 2005 2:22 am


Postby bobbykey » Sun Dec 11, 2005 2:23 am

will this make pin 7 an output if not can someone write the code for pin 7 to be an output to light an led on the pic12f629 so I can look at it.Thanks

Code: Select all

bsf       STATUS,RPO
              movlw     00h
              movwf     85h
              bcf       STATUS,RPO
start         movlw     01h
              movwf     05h
              goto      start

User avatar
Matrix Staff
Posts: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times

Postby Steve » Tue Jan 10, 2006 3:19 pm

You may have a problem with the bank-switching statements. Instead of RPO, it should be RP0 (i.e. the number zero, not the letter 'O').