\n

CLK

Peripheral Memory Blocks

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

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

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

Registers

CLK_PWRCTL (PWRCTL)

CLK_CLKSEL0 (CLKSEL0)

CLK_CLKSEL1 (CLKSEL1)

CLK_CLKDIV (CLKDIV)

CLK_PLLCON (PLLCON)

CLK_AHBCLK (AHBCLK)

CLK_APBCLK (APBCLK)


CLK_PWRCTL (PWRCTL)

System Power 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 XTL12M_EN XTL32K_EN OSC24M_EN VOUTX_PD WU_DLY WINT_EN WINT_STS PWR_DOWN PD_WAIT_CPU

XTL12M_EN : External 12MHz (or 6MHz) Crystal Oscillator Control This bit is set by the combination logic of flash controller user configuration register CONFIG[26:24] after power on.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

12MHz (or 6MHz) crystal oscillation is disabled

#1 : 1

12MHz (or 6MHz) crystal oscillation is enabled

End of enumeration elements list.

XTL32K_EN : External 32.768KHz Crystal Control After reset, this bit is 0 .
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

32.768KHz Crystal is disabled

#1 : 1

32.768KHz Crystal is enabled

End of enumeration elements list.

OSC24M_EN : Internal 24MHz Oscillator Control After reset, this bit is 1 .
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

24MHz oscillation is disabled

#1 : 1

24MHz Oscillation is enabled

End of enumeration elements list.

VOUTX_PD : Driving Out 3.0V (Through VOUTX Pad) LDO Control
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

3.0V LDO (VOUTX) is enabled

#1 : 1

3.0V LDO (VOUTX) is disabled

End of enumeration elements list.

WU_DLY : Enable The Wake Up Delay Counter When the chip wakes up from idle mode, the clock control will delay some clock cycles to wait the 12MHz (or 6MHz) crystal or the internal 24MHz oscillator clock stable.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable the clock cycles delay

#1 : 1

Enable the clock cycles delay. The delay is 4096 clock cycles for 12MHz (or 6MHz) crystal, 256 clock cycles for 24MHz oscillator

End of enumeration elements list.

WINT_EN : Enable Interrupt When Wake Up From Power Down Mode
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable,

#1 : 1

Enable. The interrupt will occur when MCU wakes up from power down mode

End of enumeration elements list.

WINT_STS : Chip Power Down Wake Up Status Flag Set by power down wake up , it indicates that resume from power down mode. The flag is set if the GPIO, USB, WDT or RTC wakeup. Note: Write 1 to clear the bit.
bits : 6 - 6 (1 bit)
access : read-write

PWR_DOWN : System Power Down Active Or Enable Bit
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Chip operates at normal mode

#1 : 1

Chip is standing by power-down entry condition

End of enumeration elements list.

PD_WAIT_CPU : This Bit Controls The Power Down Entry Condition Please refer to PWR_DOWN bit for the usage of PD_WAIT_CPU bit. The following is a brief description of PD_WAIT_CPU bit.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Chip is at normal mode. Note that PWR_DOWN cannot be set to 1 when PD_WAIT_CPU value remains at 0, otherwise the chip may not wake up normally

#1 : 1

Chip waits to enter power-down mode

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

HCLKSEL : HCLK clock source select. Note: 1. Before clock switch, the related clock sources (pre-select and new-select) must be turned on. 2. The 3-bit default value is reloaded with the value of CFOSC (CONFIG[26:24]) in user configuration register in Flash controller by any reset. Therefore the default value is either 001b or 111b. Besides, before chip enters power down mode, HCLKSEL only can be either 001b or 111b.
bits : 0 - 2 (3 bit)
access : read-write

Enumeration:

#000 : 0

clock source from external 32KHz crystal clock

#001 : 1

clock source from external 12MHz (or 6MHz) crystal clock

#010 : 2

clock source from PLL1 output

#100 : 4

clock source from PLL2 output

#111 : 7

clock source from internal 24MHz oscillator clock

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 TMR2SEL TMRFSEL PWMSEL

WDTSEL : Watchdog Timer Clock Source Selection (Write Protect) These bits are protected bits. To program these bits needs an open lock sequence, write 59h , 16h , 88h to SYS_REGLCTL to un-lock these bits. Refer to the register SYS_REGLCTL at address SYS_BA+0x100..
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from HCLK/2048 clock

#01 : 1

Clock source from external 32KHz crystal clock

#10 : 2

Clock source from external 12MHz (or 6MHz) crystal clock

#11 : 3

Clock source from internal 24MHz oscillator clock

End of enumeration elements list.

ADCSEL : ADC Clock Source Select
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from PLL2 clock

#01 : 1

Clock source from external 12MHz (or 6MHz) crystal clock Clock source from internal 24MHz oscillator clock

End of enumeration elements list.

TMR0SEL : Timer0 Clock Source Select
bits : 8 - 10 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from HCLK

#001 : 1

Clock source from external 32KHz crystal clock Clock source from internal 24MHz oscillator clock

#010 : 2

Clock source from external 12MHz (or 6MHz) crystal clock

#011 : 3

Clock source from external trigger

End of enumeration elements list.

TMR1SEL : Timer1 Clock Source Select
bits : 12 - 14 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from HCLK

#001 : 1

Clock source from external 32KHz crystal clock Clock source from internal 24MHz oscillator clock

#010 : 2

Clock source from external 12MHz (or 6MHz) crystal clock

#011 : 3

Clock source from external trigger

End of enumeration elements list.

TMR2SEL : Timer2 Clock Source Select
bits : 16 - 18 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from HCLK

#001 : 1

Clock source from external 32KHz crystal clock Clock source from internal 24MHz oscillator clock

#010 : 2

Clock source from external 12MHz (or 6MHz) crystal clock

#011 : 3

Clock source from external trigger

End of enumeration elements list.

TMRFSEL : TimerF Clock Source Select
bits : 20 - 22 (3 bit)
access : read-write

Enumeration:

#000 : 0

Clock source from external 32KHz crystal clock / 32

#001 : 1

Clock source from external 32KHz crystal clock / (4x32)

#010 : 2

Clock source from external 12MHz (or 6MHz) crystal clock / 16384

#011 : 3

Clock source from external 12MHz (or 6MHz) crystal clock / (4x16384)

#110 : 6

Clock source from 24MHz OSC clock / 32768

#111 : 7

Clock source from 24MHz OSC clock / (4x32768)

End of enumeration elements list.

PWMSEL : PWM Timer Clock Source Select
bits : 28 - 29 (2 bit)
access : read-write

Enumeration:

#00 : 0

Clock source from HCLK

#01 : 1

Clock source from external 32KHz crystal clock

#10 : 2

Clock source from external 12MHz (or 6MHz) crystal clock

#11 : 3

Clock source from internal 24MHz oscillator clock

End of enumeration elements list.


CLK_CLKDIV (CLKDIV)

Clock Divider Number Register
address_offset : 0x18 Bytes (0x0)
size : -1 bit
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
bits : 0 - 3 (4 bit)
access : read-write

ADCDIV : ADC Clock Divide Number From ADC Clock Source The ADC clock must meet the constraint: ADCLK ( HCKL/2
bits : 16 - 23 (8 bit)
access : read-write


CLK_PLLCON (PLLCON)

PLL Control Register
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CLK_PLLCON CLK_PLLCON 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

CLK_AHBCLK (AHBCLK)

AHB Device 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

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

Enumeration:

#0 : 0

To disable the Flash ISP engine clock

#1 : 1

To enable the Flash ISP engine clock

End of enumeration elements list.


CLK_APBCLK (APBCLK)

APB Device 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 WDT_EN RTC_EN TMR0_EN TMR1_EN TMR2_EN TMRF_EN SPI0_EN SPI1_EN PWM_EN USBD_EN ADC_EN APU_EN

WDT_EN : Watchdog Clock Enable Control This bit is the protected bit. To program this bit needs an open lock sequence, write 59h , 16h , 88h to register SYS_REGLCTL to un-lock this bit. Refer to the register SYS_REGLCTL at address SYS_BA+0x100. The default bit value is set according to the Flash Controller User Configuration Register CONFIG[31].
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RTC_EN : Real-Time-Clock APB Interface Clock Control This bit is used to control the RTC APB clock only. The RTC engine clock source is from the 32.768KHz crystal.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TMR0_EN : Timer0 Clock Enable Control
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TMR1_EN : Timer1 Clock Enable Control
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TMR2_EN : Timer2 Clock Enable Control
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TMRF_EN : TimerF Clock Enable Control
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

SPI0_EN : SPI0 Clock Enable Control
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

SPI1_EN : SPI1 Clock Enable Control
bits : 13 - 13 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

PWM_EN : PWM Block Clock Enable Control
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

USBD_EN : USB FS Device Controller Clock Enable Control
bits : 27 - 27 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

ADC_EN : Audio Analog-Digital-Converter (ADC) Clock Enable Control
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

APU_EN : APU Clock Enable Control
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

To disable the APU engine clock

#1 : 1

To enable the APU engine clock

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.