pic12f629

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

Moderators: Benj, Mods

Post Reply
bobbykey
Posts: 1
Joined: Sun Dec 11, 2005 2:22 am
Contact:

pic12f629

Post by bobbykey »

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 
end 

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

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').

Post Reply