View Single Post
  #2   Spotlight this post!  
Unread 06-10-2007, 23:29
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,619
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: PIC bsf instruction

I'm far from an expert on the PIC, but looking over the data sheet and instruction set, it seems that bsf and bcf should be working like you'd think. I don't know how MPASM handles things, but perhaps you don't have the right bank selected or something. Also, and this is a complete guess, but there might be some issue with stale data or a delayed write back or something with those happening back to back, so perhaps tossing some NOPs in front, in between, and behind all your loop instructions there and see if that fixes things.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter