|
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
|