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 | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
SLW_DELAY[3:0] | |||||||||
Access | R/W | R/W | R/W | R/W | |||||
Reset | c | c | c | c |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
SYS_DIV[3:0] | |||||||||
Access | R/W | R/W | R/W | R/W | |||||
Reset | c | c | c | c |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
SLW_DIV[2:0] | |||||||||
Access | R/W | R/W | R/W | ||||||
Reset | c | c | c |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
SLW_UP | SLW_DN | SLW_BUSY | |||||||
Access | R/W | R/W | R/W | ||||||
Reset | c | c | c |
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.
Value | Description |
---|---|
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
Value | Description |
---|---|
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
Value | Description |
---|---|
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
Value | Description |
---|---|
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
Value | Description |
---|---|
0 | Disables Clock Slewing |
1 | Enables Clock Slewing on a clock switch |
Bit 0 – SLW_BUSY Clock Switch Slewing Active Status Bit-Read-Only
Value | Description |
---|---|
0 | Clock Switch has reached its final value |
1 | Clock frequency is being actively slewed |