\n

CLK

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0xC byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x20 Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x10 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x50 Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x60 Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection : not protected

Registers

CLK_PWRCTL (PWRCTL)

CLK_CLKSEL0 (CLKSEL0)

CLK_CLKSEL1 (CLKSEL1)

CLK_CLKDIV (CLKDIV)

CLK_AHBCLK (AHBCLK)

CLK_STATUS (STATUS)

CLK_CLKOCTL (CLKOCTL)

CLK_APBCLK (APBCLK)


CLK_PWRCTL (PWRCTL)

System Power-down Control Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_PWRCTL CLK_PWRCTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 XTLEN HIRCEN LIRCEN PDWKDLY PDWKIEN PDWKIF PDEN PDLXT HXTGAIN

XTLEN : XTL Enable Control (Write Protect) These two bits are default set to 00 and the XT_IN and XT_OUT pins are GPIO. Note: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

#00 : 0

XT_IN and XT_OUT are GPIO, disable both LXT HXT (default)

#01 : 1

HXT Enabled

#10 : 2

LXT Enabled

#11 : 3

XT_IN is external clock input pin, XT_OUT is GPIO

End of enumeration elements list.

HIRCEN : HIRC Enable Control (Write Protect)\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

48 MHz internal high speed RC oscillator (HIRC) Disabled

#1 : 1

48 MHz internal high speed RC oscillator (HIRC) Enabled

End of enumeration elements list.

LIRCEN : LIRC Enable Control (Write Protect)\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

10 kHz internal low speed RC oscillator (LIRC) Disabled

#1 : 1

10 kHz internal low speed RC oscillator (LIRC) Enabled

End of enumeration elements list.

PDWKDLY : Wake-up Delay Counter Enable Control (Write Protect)\nWhen the chip wakes up from Power-down mode, the clock control will delay certain clock cycles to wait system clock stable.\nThe delayed clock cycle is 4096 clock cycles when chip works at 4~24 MHz external high speed crystal oscillator (HXT), and 256 clock cycles when chip works at 48 MHz internal high speed RC oscillator (HIRC).\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Clock cycles delay Disabled

#1 : 1

Clock cycles delay Enabled

End of enumeration elements list.

PDWKIEN : Power-down Mode Wake-up Interrupt Enable Control (Write Protect)\nNote1: The interrupt will occur when both PDWKIF and PDWKIEN are high.\nNote2: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Power-down mode wake-up interrupt Disabled

#1 : 1

Power-down mode wake-up interrupt Enabled

End of enumeration elements list.

PDWKIF : Power-down Mode Wake-up Interrupt Status Set by Power-down wake-up event , it indicates that resume from Power-down mode The flag is set if the GPIO, USCI01, WDT, ACMP01, BOD, TMR01 wake-up occurred. Note1: Write 1 to clear the bit to 0. Note2: This bit works only if PDWKIEN (CLK_PWRCTL[5]) set to 1.
bits : 6 - 6 (1 bit)
access : read-write

PDEN : System Power-down Enable Control (Write Protect) When this bit is set to 1, Power-down mode is enabled. When chip wakes up from Power-down mode, this bit is auto cleared. Users need to set this bit again for next Power-down. In Power-down mode, HXT and the HIRC will be disabled in this mode, but LXT and LIRC are not controlled by Power-down mode. In Power-down mode, the system clocks are disabled, and ignored the clock source selection. The clocks of peripheral are not controlled by Power-down mode, if the peripheral clock source is from LXT or LIRC. Note: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Chip operating normally or chip in idle mode because of WFI/WFE command

#1 : 1

Chip enters Power-down mode when CPU sleep command WFI/WFE

End of enumeration elements list.

PDLXT : LXT Alive in Power-down\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

LXT will be turned off automatically when chip enters Power-down

#1 : 1

If XTLEN[1:0] are 0x2, LXT keeps active in Power-down

End of enumeration elements list.

HXTGAIN : HXT Gain Control (Write Protect)\nThis is a protected register. Please refer to open lock sequence to program it.\nGain control is used to enlarge the gain of crystal to make sure crystal work normally. If gain control is enabled, crystal will consume more power than gain control off. \nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 10 - 11 (2 bit)
access : read-write

Enumeration:

#00 : 0

HXT frequency is lower than from 8 MHz

#01 : 1

HXT frequency is from 8 MHz to 12 MHz

#10 : 2

HXT frequency is from 12 MHz to 16 MHz

#11 : 3

HXT frequency is higher than 16 MHz

End of enumeration elements list.


CLK_CLKSEL0 (CLKSEL0)

Clock Source Select Control Register 0
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_CLKSEL0 CLK_CLKSEL0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 HCLKSEL STCLKSEL

HCLKSEL : HCLK Clock Source Selection (Write Protect)\nBefore clock switching, the related clock sources (both pre-select and new-select) must be turned on.\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from HXT/LXT

#01 : 1

Clock source from LIRC

#11 : 3

Clock source from HIRC

End of enumeration elements list.

STCLKSEL : Cortex-M0 SysTick Clock Source Selection (Write Protect)\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 3 - 4 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from HXT/LXT

#01 : 1

Clock source from (HXT or LXT)/2

#10 : 2

Clock source from HCLK/2

#11 : 3

Clock source from HIRC/2

End of enumeration elements list.


CLK_CLKSEL1 (CLKSEL1)

Clock Source Select Control Register 1
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_CLKSEL1 CLK_CLKSEL1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WDTSEL ADCSEL TMR0SEL TMR1SEL CLKOSEL

WDTSEL : Watchdog Timer Clock Source Selection (Write Protect)\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from external crystal oscillator (HXT or LXT)

#01 : 1

Reserved

#10 : 2

Clock source from HCLK0/2048

#11 : 3

Clock source from 10 kHz internal low speed RC oscillator (LIRC)

End of enumeration elements list.

ADCSEL : ADC Peripheral Clock Source Selection\n
bits : 4 - 5 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from external crystal oscillator (HXT or LXT)

#01 : 1

Reserved

#10 : 2

Clock source is from HCLK

#11 : 3

Clock source from 48 MHz internal high speed RC oscillator (HIRC)

End of enumeration elements list.

TMR0SEL : TIMER0 Clock Source Selection\n
bits : 8 - 10 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from external crystal oscillator (HXT or LXT)

#001 : 1

Clock source from 10 kHz internal low speed RC oscillator (LIRC)

#010 : 2

Clock source from HCLK

#011 : 3

Clock source from external clock T0 pin

#111 : 7

Clock source from 48 MHz internal high speed RC oscillator (HIRC)

End of enumeration elements list.

TMR1SEL : TIMER1 Clock Source Selection\n
bits : 12 - 14 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from external crystal oscillator (HXT or LXT)

#001 : 1

Clock source from 10 kHz internal low speed RC oscillator (LIRC)

#010 : 2

Clock source from HCLK

#011 : 3

Clock source from external clock T1 pin

#111 : 7

Clock source from 48 MHz internal high speed RC oscillator (HIRC)

End of enumeration elements list.

CLKOSEL : Clock Divider Clock Source Selection\n
bits : 30 - 31 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from external crystal oscillator (HXT or LXT)

#01 : 1

Reserved

#10 : 2

Clock source from HCLK

#11 : 3

Clock source from 48 MHz internal high speed RC oscillator (HIRC)

End of enumeration elements list.


CLK_CLKDIV (CLKDIV)

Clock Divider Number Register
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_CLKDIV CLK_CLKDIV read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 HCLKDIV ADCDIV

HCLKDIV : HCLK Clock Divide Number From HCLK Clock Source\n
bits : 0 - 3 (4 bit)
access : read-write

ADCDIV : ADC Clock Divide Number From ADC Clock Source\n
bits : 16 - 23 (8 bit)
access : read-write


CLK_AHBCLK (AHBCLK)

AHB Devices Clock Enable Control Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_AHBCLK CLK_AHBCLK read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ISPCKEN HDIVCKEN

ISPCKEN : Flash ISP Controller Clock Enable Control\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Flash ISP peripheral clock Disabled

#1 : 1

Flash ISP peripheral clock Enabled

End of enumeration elements list.

HDIVCKEN : Hardware Divider Controller Clock Enable Control \n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

HDIV peripheral clock Disabled

#1 : 1

HDIV peripheral clock Enabled

End of enumeration elements list.


CLK_STATUS (STATUS)

Clock Status Monitor Register
address_offset : 0x50 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

CLK_STATUS CLK_STATUS read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 XTLSTB LIRCSTB HIRCSTB CLKSFAIL

XTLSTB : XTL Clock Source Stable Flag (Read Only)\n
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

External crystal oscillator (HXT or LXT) clock is not stable or disabled

#1 : 1

External crystal oscillator (HXT or LXT) clock is stable and enabled

End of enumeration elements list.

LIRCSTB : LIRC Clock Source Stable Flag (Read Only)\n
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

#0 : 0

10 kHz internal low speed RC oscillator (LIRC) clock is not stable or disabled

#1 : 1

10 kHz internal low speed RC oscillator (LIRC) clock is stable and enabled

End of enumeration elements list.

HIRCSTB : HIRC Clock Source Stable Flag (Read Only)\n
bits : 4 - 4 (1 bit)
access : read-only

Enumeration:

#0 : 0

48 MHz internal high speed RC oscillator (HIRC) clock is not stable or disabled

#1 : 1

48 MHz internal high speed RC oscillator (HIRC) clock is stabe and enabled

End of enumeration elements list.

CLKSFAIL : Clock Switching Fail Flag (Read Only) \nThis bit is updated when software switches system clock source. If switch target clock is stable, this bit will be set to 0. If switch target clock is not stable, this bit will be set to 1.\nNote: Write 1 to clear the bit to 0.
bits : 7 - 7 (1 bit)
access : read-only

Enumeration:

#0 : 0

Clock switching success

#1 : 1

Clock switching failure

End of enumeration elements list.


CLK_CLKOCTL (CLKOCTL)

Clock Output Control Register
address_offset : 0x60 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_CLKOCTL CLK_CLKOCTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FREQSEL CLKOEN DIV1EN

FREQSEL : Clock Output Frequency Selection\nThe formula of output frequency is\nFin is the input clock frequency.\nFout is the frequency of divider output clock.\nN is the 4-bit value of FREQSEL[3:0].
bits : 0 - 3 (4 bit)
access : read-write

CLKOEN : Clock Output Enable Control\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Clock Output function Disabled

#1 : 1

Clock Output function Enabled

End of enumeration elements list.

DIV1EN : Clock Output Divide One Enable Control\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Clock Output will output clock with source frequency divided by FREQSEL

#1 : 1

Clock Output will output clock with source frequency

End of enumeration elements list.


CLK_APBCLK (APBCLK)

APB Devices Clock Enable Control Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_APBCLK CLK_APBCLK read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WDTCKEN TMR0CKEN TMR1CKEN CLKOCKEN ECAPCKEN PGACKEN EPWMCKEN BPWMCKEN USCI0CKEN USCI1CKEN ADCCKEN ACMPCKEN

WDTCKEN : Watchdog Timer Clock Enable Control (Write Protect)\nNote: This bit is write protected. Refer to the SYS_REGLCTL register.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Watchdog timer clock Disabled

#1 : 1

Watchdog timer clock Enabled

End of enumeration elements list.

TMR0CKEN : Timer0 Clock Enable Control\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer0 clock Disabled

#1 : 1

Timer0 clock Enabled

End of enumeration elements list.

TMR1CKEN : Timer1 Clock Enable Control\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer1 clock Disabled

#1 : 1

Timer1 clock Enabled

End of enumeration elements list.

CLKOCKEN : CLKO Clock Enable Control\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

CLKO clock Disabled

#1 : 1

CLKO clock Enabled

End of enumeration elements list.

ECAPCKEN : Input Capture Clock Enable Control\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

CAP clock Disabled

#1 : 1

CAP clock Enabled

End of enumeration elements list.

PGACKEN : PGA Clock Enable Control\n
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

PGA clock Disabled

#1 : 1

PGA clock Enabled

End of enumeration elements list.

EPWMCKEN : Enhanced PWM Clock Enable Control\n
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

EPWM channel 0/1 clock Disabled

#1 : 1

EPWM channel 0/1 clock Enabled

End of enumeration elements list.

BPWMCKEN : Basic PWM Channel 0/1 Clock Enable Control\n
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

BBPWM channel 0/1 clock Disabled

#1 : 1

BPWM channel 0/1 clock Enabled

End of enumeration elements list.

USCI0CKEN : USCI0 Clock Enable Control\n
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

USCI0 clock Disabled

#1 : 1

USCI0 clock Enabled

End of enumeration elements list.

USCI1CKEN : USCI1 Clock Enable Control\n
bits : 25 - 25 (1 bit)
access : read-write

Enumeration:

#0 : 0

USCI1 clock Disabled

#1 : 1

USCI1 clock Enabled

End of enumeration elements list.

ADCCKEN : Analog-digital-converter (ADC) Clock Enable Control\n
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

ADC clock Disabled

#1 : 1

ADC clock Enabled

End of enumeration elements list.

ACMPCKEN : Analog Comparator Clock Enable Control\n
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator clock Disabled

#1 : 1

Analog comparator clock Enabled

End of enumeration elements list.



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.