18.6.13 Slew Rate Control for Clock Switching

Note:
  • Perform the system unlock sequence before this register is written.
  • Updates to this register do not take affect until OSCCON.OSWEN is set.
Name: SLEWCON
Offset: 0x6C
Reset: 0x00000000

Bit 3130292827262524 
     SLW_DELAY[3:0] 
Access R/WR/WR/WR/W 
Reset cccc 
Bit 2322212019181716 
     SYS_DIV[3:0] 
Access R/WR/WR/WR/W 
Reset cccc 
Bit 15141312111098 
      SLW_DIV[2:0] 
Access R/WR/WR/W 
Reset ccc 
Bit 76543210 
      SLW_UPSLW_DNSLW_BUSY 
Access R/WR/WR/W 
Reset ccc 

Bits 27:24 – SLW_DELAY[3:0] Number of clocks generated at each slew step for a clock switch

Note: The input, cfg_slewcon_sel[] defines the reset value of this register field.
ValueDescription
0000 1 clock is generated at each slew step
0001 2 clocks is generated at each slew step
... ...
1111 16 clocks are generated at each slew step

Bits 19:16 – SYS_DIV[3:0] PBx Peripheral Clock Divisor Control value

ValueDescription
0000 Divide by 1 - SYS_CLK_OUT same frequency as SYS_CLK source - Default
0001 Divide by 2 - SYS_CLK_OUT is 1/2 of SYS_CLK source
0010 Divide by 3 - SYS_CLK_OUT is 1/3 of SYS_CLK source
... ...
1111 Divide by 16 - SYS_CLK_OUT is 1/16 of SYS_CLK source

Bits 10:8 – SLW_DIV[2:0] Divisor steps are used when doing slewed clock switches

Note: Each Divisor step lasts for four clocks
ValueDescription
000 No Divisor is used
001 Divide by 2 (21), then no divisor is used
010 Divide by 4 (22), then by 2, then no divisor is used
011 Divide by 8 (23), then by 4, then by 2, then no divisor is used
100 Divide by 16 (24), then by 8, then by 4, then by 2, then no divisor is used
... ...
111 Divide by 128 (27), then by 64, then by 32, then by 16, then by 8, then by 4, then by 2, then no divisor is used

Bit 2 – SLW_UP Enables clock slew for switching up to faster clocks

ValueDescription
0 Disables Clock Slewing
1 Enables Clock Slewing on a clock switch or exits from the Standby Sleep mode

Bit 1 – SLW_DN Enables clock slew for switching down to slower clocks

ValueDescription
0 Disables Clock Slewing
1 Enables Clock Slewing on a clock switch

Bit 0 – SLW_BUSY Clock Switch Slewing Active Status Bit-Read-Only

ValueDescription
0 Clock Switch has reached its final value
1 Clock frequency is being actively slewed