PIC RMW problem

Oct 30, 2005 2 Replies

Nothing special. Usually when you enable a peripheral it "takes over" the relevant pins. The TRIS register bits are often still important, but they are internal latches and don't have the RWM issue.

Best regards, Spehro Pefhany

"it\'s the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com

A while back, you guys set me straight about PICs and their RMW port write problems. What do you do when PWM or something else is driving one of the port pins?



The only possible pitfall is where you turn the peripheral on & then off again - RMW issues may mean that when you turn off the peripheral pin function, the pin state may be different from what it was when the peripheral was turned on.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required