Getting started is confusing.

Status
Not open for further replies.

Simply add 'bsf PORTC,1' after your 'bsf PORTC,0', it may be wise to place a NOP between them as well.
 
You can also switch all of the LED's on or off by doing something like this:
movlw b'11111111'
movwf PORTB

By changing some of the ones to zero's you can decide which you want on or off (assuming you have LED's connected to the other PORTB pins).
 
@ crazylegsmurphy

Yes continuous direct bit manipulation is not a good idea like Nigel pointed.
Adding few "nop"s will resolve the problem.

You may refer what is Read Modify Write.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…