When pinmuxing is changed during runtime, does the previously selected bit need to be cleared before a new bit needs to be set?
So after you unlock the registers, if originally alternate function 2 was selected, but you want to change it to the default function, can you just OR a 1 in the correct bit position to the proper register? Or do you need to clear the bit for function 2, and then set the bit for the default function?
Thanks,
Dave