\n
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 :
System Power Control Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
OSC48M_EN : Internal 48MHz RC Oscillator Control
After reset, this bit is 1 .
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
48MHz oscillation is disabled
#1 : 1
48MHz oscillation is enabled
End of enumeration elements list.
LDO30_PD : Driving Out 3.0V (Through LDO30E Pad) LDO Control
After reset, this bit is 1 .
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
3.0V LDO (LDO30) is enabled
#1 : 1
3.0V LDO (LDO30) 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 internal 48MHz 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 512 clock cycles
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, 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.
Clock Source Select Control Register 0
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
HCLKSEL : HCLK Clock Source Select
Note:
1. When power on, 48MHz RC is selected as HCLK clock source.
2. Before clock switch, the related clock sources (pre-select and new-select) must be turned on.
bits : 0 - 2 (3 bit)
access : read-write
Enumeration:
#000 : 0
Clock source from XTL_32K
#010 : 2
Clock source from PLL1_FOUT
#100 : 4
Clock source from PLL2_FOUT
#111 : 7
Clock source from RC_48M
End of enumeration elements list.
STCLKSEL : MCU Cortex_M0 SysTick Clock Source Select
bits : 3 - 5 (3 bit)
access : read-write
Enumeration:
00 : 0
Clock source from HCLK/2
01 : 1
Clock source from XTL_32K.
Clock source from RC_48M/8
End of enumeration elements list.
Clock Source Select Control Register 1
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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,
#01 : 1
Clock source from XTL_32K,
#10 : 2
Clock source from PLL1_FOUT,
#11 : 3
Clock source from RC_48M/2
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_FOUT,
#01 : 1
Clock source from HCLK,.
Clock source from RC_48M
End of enumeration elements list.
SPI0SEL : SPI0 Clock Source Select
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
#00 : 0
Clock source from HCLK
#01 : 1
Clock source from PLL2_FOUT.
Clock source from RC_48M
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 XTL_32K.
Clock source from RC_48M
#010 : 2
Equivalent with 000
#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 XTL_32K.
Clock source from RC_48M
#010 : 2
Equivalent with 000
#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 XTL_32K.
Clock source from RC_48M
#010 : 2
Equivalent with 000
#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 XTL_32K/32,
#001 : 1
Clock source from external XTL_32K/(4x32),
#110 : 6
Clock source from RC_48M/65536,
#111 : 7
Clock source from RC_48M/(4x65536),
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 XTL_32K
#10 : 2
Equivalent with 00
#11 : 3
Clock source from RC_48M
End of enumeration elements list.
Clock Divider Number Register
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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
bits : 16 - 23 (8 bit)
access : read-write
PLL Control Register
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
AHB Device Clock Enable Control Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
APUCKEN : APU Clock Enable Control
bits : 3 - 3 (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.
APB Device Clock Enable Control Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
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.
Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !
This website is sponsored by Embeetle, an IDE designed from scratch for embedded software developers.