Edward Gisske wrote : > I am working of a 16C617 project and have been dealing with > some annoying behavior on Port B. I am using B:3 as a PWM > output. Everytime that I write to a*different* Port B pin,... How ? Using bcf/bsf with PORTB as the target ? > I have to reinitialize B:3 high... What does "reinitialize" means ? Re-writing the TRISB reg ? Or the PORTB reg ? > to unclamp the PWM output. In what way is the PWM output "clamped" ? > Is this some sort of byproduct of the Read:Modify:Write > issue, Could be, depends on what you actualy are doing. Can't say since you don't realy tell us. > and does anyone know of a handy avoidance technique? *If* its the R-M-W problem, it's the standard shadow register thing. But that could be hard if you are doing SW-PWM. But since you already have a solution, maybe just build that into your application ? Best Regards, Jan-Erik. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.