The Clock Switch Enable (CSWEN) Configuration bit can be used to enable or disable the
clock switching capability. When CSWEN is set (CSWEN = 1
), writes to
NOSC and NDIV by user software will allow the system clock to switch between sources or
frequencies. When CSWEN is clear (CSWEN = 0
), writes to NOSC and NDIV
are ignored, preventing the system clock from switching from one source to another.