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
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
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.
Have something to add? Share your thoughts — no account required.
Ask the community — no account required