\n

SYS

Peripheral Memory Blocks

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

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

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

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

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

Registers

SYS_PDID (PDID)

SYS_REGLCTL (REGLCTL)

SYS_BODCTL (BODCTL)

SYS_P0_MFP (P0_MFP)

SYS_P1_MFP (P1_MFP)

SYS_P2_MFP (P2_MFP)

SYS_P3_MFP (P3_MFP)

SYS_RSTSTS (RSTSTS)

SYS_P4_MFP (P4_MFP)

SYS_P5_MFP (P5_MFP)

SYS_EINT0SEL (EINT0SEL)

SYS_IPRST0 (IPRST0)

SYS_IRCTCTL (IRCTCTL)

SYS_IRCTIEN (IRCTIEN)

SYS_IRCTISTS (IRCTISTS)

SYS_IPRST1 (IPRST1)


SYS_PDID (PDID)

Part Device Identification Number Register
address_offset : 0x0 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SYS_PDID SYS_PDID 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 PDID

PDID : Product Device Identification Number\nThis register reflects the device part number code. Software can read this register to identify which device is used.
bits : 0 - 31 (32 bit)
access : read-only


SYS_REGLCTL (REGLCTL)

Register Write-Protection Control Register
address_offset : 0x100 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_REGLCTL SYS_REGLCTL 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 REGWRPROT REGPROTDIS

REGWRPROT : Register Write-Protection Disable Index (Read Only)
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

Write-protection Enabled for writing protected registers. Any write to the protected register is ignored

#1 : 1

Write-protection Disabled for writing protected registers

End of enumeration elements list.

REGPROTDIS : Register Write-Protection Code (Write Only)\nSome registers have write-protection function. Writing these registers have to disable the protected function by writing the sequence value 0x59, 0x16, 0x88 to this field. After this sequence is completed, the REGWRPROT bit will be set to 1 and write-protection registers can be normal write.
bits : 0 - 7 (8 bit)
access : write-only


SYS_BODCTL (BODCTL)

Brown-out Detector Control Register
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_BODCTL SYS_BODCTL 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 BODVL_EXT BODVL1_0 BODRSTEN BODIF BODLPM BODOUT BODVL2 BOREN

BODVL_EXT : Brown-Out Detector Selection Extension (Initiated Write-Protected Bit)
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Brown-out detector threshold voltage is selected by the table defined in BODVL[1:0]

#1 : 1

Brown-out detector threshold voltage is selected by BODVL[2:0] defined as below

End of enumeration elements list.

BODVL1_0 : Brown-Out Detector Threshold Voltage Selection (Initiated Write-Protected Bit)
bits : 1 - 2 (2 bit)
access : read-write

BODRSTEN : Brown-Out Reset Enable (Initiated And Write-Protected Bit)\nThe default value is set by flash controller user configuration register config0 bit[20].\nWhen the BOREN is enabled and the interrupt is asserted, the interrupt will be kept till the BOREN is set to 0. The interrupt for CPU can be blocked by disabling the NVIC in CPU for BOD interrupt or disable the interrupt source by disabling the BOREN and then re-enabling the BOREN function if the BOD function is required.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Brown-out INTERRUPT function Enabled when the Brown-out Detector function is enable and the detected voltage is lower than the threshold, then assert a signal to interrupt the Cortex-M0 CPU

#1 : 1

Brown-out RESET function Enabled when the Brown-out Detector function is enable and the detected voltage is lower than the threshold then assert a signal to reset the chip

End of enumeration elements list.

BODIF : Brown-Out Detector Interrupt Flag
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Brown-out Detector does not detect any voltage draft at VDD down through or up through the voltage of BODVL setting

#1 : 1

When Brown-out Detector detects the VDD is dropped through the voltage of BODVL setting or the VDD is raised up through the voltage of BODVL setting, this bit is set to 1 and the Brown-out interrupt is requested if Brown-out interrupt is enabled

End of enumeration elements list.

BODLPM : Brown-Out Detector Low Power Mode (Write-Protected)\nThe BOD consumes about 100uA in normal mode, the low power mode can reduce the current to about 1/10 but slow the BOD response.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

BOD operate in normal mode (default)

#1 : 1

Enable the BOD low power mode

End of enumeration elements list.

BODOUT : Brown-Out Detector Output State
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Brown-out Detector status output is 0, the detected voltage is higher than BODVL setting

#1 : 1

Brown-out Detector status output is 1, the detected voltage is lower than BODVL setting

End of enumeration elements list.

BODVL2 : Brown-Out Detector Threshold Voltage Selection (Initiated Write-Protected Bit) The default value is set by flash controller user configuration register config0 bit[19].
bits : 7 - 7 (1 bit)
access : read-write

BOREN : Brown-Out Reset Enable\nThe bit will enable BOR reset function. When VDD5V lower than 1.7v BOR will reset whole chip.\n0: Disable\n1: Enable
bits : 8 - 8 (1 bit)
access : read-write


SYS_P0_MFP (P0_MFP)

P0 Multiple Function and Input Type Control Register
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P0_MFP SYS_P0_MFP 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 MFP ALT0 ALT1 ALT4 ALT5 ALT6 ALT7 TYPE HS

MFP : P0 Multiple Function Selection\nThe pin function of P0 depends on P0_MFP and ALT.\nRefer to ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT0 : P0.0 Alternate Function Selection
bits : 8 - 8 (1 bit)
access : read-write

ALT1 : P0.1 Alternate Function Selection
bits : 9 - 9 (1 bit)
access : read-write

ALT4 : P0.4 Alternate Function Selection
bits : 12 - 12 (1 bit)
access : read-write

ALT5 : P0.5 Alternate Function Selection
bits : 13 - 13 (1 bit)
access : read-write

ALT6 : P0.6 Alternate Function Selection
bits : 14 - 14 (1 bit)
access : read-write

ALT7 : P0.7 Alternate Function Selection
bits : 15 - 15 (1 bit)
access : read-write

TYPE : P0[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P0[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P0[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

HS : P0[7:0] Slew Rate Control
bits : 24 - 31 (8 bit)
access : read-write

Enumeration:

0 : 0

P0[7:0] Low slew rate output, 16MHz available

1 : 1

P0[7:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_P1_MFP (P1_MFP)

P1 Multiple Function and Input Type Control Register
address_offset : 0x34 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P1_MFP SYS_P1_MFP 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 MFP ALT0 ALT2 ALT3 ALT4 ALT5 ALT6 TYPE HS

MFP : P1 Multiple Function Selection\nThe pin function of P1 depends on MFP and ALT.\nRefer to P1_ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT0 : P1.0 Alternate Function Selection
bits : 8 - 8 (1 bit)
access : read-write

ALT2 : P1.2 Alternate Function Selection
bits : 10 - 10 (1 bit)
access : read-write

ALT3 : P1.3 Alternate Function Selection
bits : 11 - 11 (1 bit)
access : read-write

ALT4 : P1.4 Alternate Function Selection
bits : 12 - 12 (1 bit)
access : read-write

ALT5 : P1.5 Alternate Function Selection
bits : 13 - 13 (1 bit)
access : read-write

ALT6 : P1.6 Alternate Function Selection
bits : 14 - 14 (1 bit)
access : read-write

TYPE : P1[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P1[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P1[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

HS : P1[7:0] Slew Rate Control
bits : 24 - 31 (8 bit)
access : read-write

Enumeration:

0 : 0

P1[7:0] Low slew rate output, 16MHz available

1 : 1

P1[7:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_P2_MFP (P2_MFP)

P2 Multiple Function and Input Type Control Register
address_offset : 0x38 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P2_MFP SYS_P2_MFP 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 MFP ALT2 ALT3 ALT4 ALT5 ALT6 ALT7 TYPE HS

MFP : P2 Multiple Function Selection\nThe pin function of P2 depends on P2_MFP and ALT.\nRefer to ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT2 : P2.2 Alternate Function Selection
bits : 10 - 10 (1 bit)
access : read-write

ALT3 : P2.3 Alternate Function Selection
bits : 11 - 11 (1 bit)
access : read-write

ALT4 : P2.4 Alternate Function Selection
bits : 12 - 12 (1 bit)
access : read-write

ALT5 : P2.5 Alternate Function Selection
bits : 13 - 13 (1 bit)
access : read-write

ALT6 : P2.6 Alternate Function Selection
bits : 14 - 14 (1 bit)
access : read-write

ALT7 : P2.7 Alternate Function Selection
bits : 15 - 15 (1 bit)
access : read-write

TYPE : P2[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P2[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P2[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

HS : P2[7:0] Slew Rate Control
bits : 24 - 31 (8 bit)
access : read-write

Enumeration:

0 : 0

P2[7:0] Low slew rate output, 16MHz available

1 : 1

P2[7:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_P3_MFP (P3_MFP)

P3 Multiple Function and Input Type Control Register
address_offset : 0x3C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P3_MFP SYS_P3_MFP 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 MFP ALT0 ALT1 ALT2 ALT4 ALT5 ALT6 ALT7 TYPE P32CTL HS

MFP : P3 Multiple Function Selection\nThe pin function of P3 depends on MFP and ALT.\nRefer to ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT0 : P3.0 Alternate Function Selection
bits : 8 - 8 (1 bit)
access : read-write

ALT1 : P3.1 Alternate Function Selection
bits : 9 - 9 (1 bit)
access : read-write

ALT2 : P3.2 Alternate Function Selection
bits : 10 - 10 (1 bit)
access : read-write

ALT4 : P3.4 Alternate Function Selection
bits : 12 - 12 (1 bit)
access : read-write

ALT5 : P3.5 Alternate Function Selection
bits : 13 - 13 (1 bit)
access : read-write

ALT6 : P3.6 Alternate Function Selection
bits : 14 - 14 (1 bit)
access : read-write

ALT7 : P3.7 Alternate Function Selection
bits : 15 - 15 (1 bit)
access : read-write

TYPE : P3[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P3[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P3[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

P32CTL : P3.2 Alternate Function Selection Extension
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

P3.2 is set by ALT[2] and MFP[2]

#1 : 1

P3.2 is set to CPP1 of ACMP1

End of enumeration elements list.

HS : P3[6:0] Slew Rate Control
bits : 25 - 31 (7 bit)
access : read-write

Enumeration:

0 : 0

P3[6:0] Low slew rate output, 16MHz available

1 : 1

P3[6:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_RSTSTS (RSTSTS)

System Reset Source Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_RSTSTS SYS_RSTSTS 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 PORF PINRF WDTRF BODRF SYSRF CPURF

PORF : Power-On Reset Flag The PORF flag is set by the reset signal , which is from the Power-On Reset (POR) controller or bit CHIPRST (SYS_IPRST0[0]), to indicate the previous reset source. Note: Software can write 1 to clear this bit to zero.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from POR or CHIPRST

#1 : 1

The Power-on-Reset (POR) or CHIPRST had issued the reset signal to reset the system

End of enumeration elements list.

PINRF : Reset Pin Reset Flag The PINRF flag is set by the reset signal from the /RESET pin to indicate the previous reset source. Note: Software can write 1 to clear this bit to zero.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from pin /RESET pin

#1 : 1

The /RESET pin had issued the reset signal to reset the system

End of enumeration elements list.

WDTRF : Watchdog Reset Flag The RSTS_WDT flag is set by the reset signal from the Watchdog timer to indicate the previous reset source. Note: Software can write 1 to clear this bit to zero.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from Watchdog timer

#1 : 1

The Watchdog timer had issued the reset signal to reset the system

End of enumeration elements list.

BODRF : Brown-Out Detector Reset Flag The BODRF flag is set by the reset signal from the Brown-out Detector to indicate the previous reset source. Note: Software can write 1 to clear this bit to zero.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from BOD

#1 : 1

The BOD had issued the reset signal to reset the system

End of enumeration elements list.

SYSRF : MCU Reset Flag The SYSRF flag is set by the reset signal from the Cortex-M0 core to indicate the previous reset source. Note: Software can write 1 to clear this bit to zero.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from Cortex-M0

#1 : 1

The Cortex-M0 had issued the reset signal to reset the system by writing 1 to bit SYSRESETREQ (AIRCR[2]), Application Interrupt and Reset Control Register, address = 0xE000ED0C) in system control registers of Cortex-M0 core

End of enumeration elements list.

CPURF : CPU Reset Flag\nThe CPURF flag is set by hardware if software writes CPURST (SYS_IPRST0[1]) 1 to reset Cortex-M0 core and Flash memory controller (FMC).\nNote: Software can write 1 to clear this bit to zero.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

No reset from CPU

#1 : 1

Cortex-M0 core and FMC are reset by software setting CPURST to 1

End of enumeration elements list.


SYS_P4_MFP (P4_MFP)

P4 Multiple Function and Input Type Control Register
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P4_MFP SYS_P4_MFP 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 MFP ALT6 ALT7 TYPE HS

MFP : P4 Multiple Function Selection\nThe pin function of P4 depends on MFP and P4_ALT.\nRefer to ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT6 : P4.6 Alternate Function Selection
bits : 14 - 14 (1 bit)
access : read-write

ALT7 : P4.7 Alternate Function Selection
bits : 15 - 15 (1 bit)
access : read-write

TYPE : P4[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P4[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P4[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

HS : P4[7:0] Slew Rate Control
bits : 24 - 31 (8 bit)
access : read-write

Enumeration:

0 : 0

P4[7:0] Low slew rate output, 16MHz available

1 : 1

P4[7:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_P5_MFP (P5_MFP)

P5 Multiple Function and Input Type Control Register
address_offset : 0x44 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_P5_MFP SYS_P5_MFP 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 MFP ALT0 ALT1 ALT2 ALT3 ALT4 ALT5 TYPE HS

MFP : P5 Multiple Function Selection\nThe pin function of P5 depends on MFP and ALT.\nRefer to ALT Description for details.
bits : 0 - 7 (8 bit)
access : read-write

ALT0 : P5.0 Alternate Function Selection
bits : 8 - 8 (1 bit)
access : read-write

ALT1 : P5.1 Alternate Function Selection
bits : 9 - 9 (1 bit)
access : read-write

ALT2 : P5.2 Alternate Function Selection
bits : 10 - 10 (1 bit)
access : read-write

ALT3 : P5.3 Alternate Function Selection
bits : 11 - 11 (1 bit)
access : read-write

ALT4 : P5.4 Alternate Function Selection
bits : 12 - 12 (1 bit)
access : read-write

ALT5 : P5.5 Alternate Function Selection
bits : 13 - 13 (1 bit)
access : read-write

TYPE : P5[7:0] Input Schmitt Trigger Function Enable
bits : 16 - 23 (8 bit)
access : read-write

Enumeration:

0 : 0

P5[7:0] I/O input Schmitt Trigger function Disabled

1 : 1

P5[7:0] I/O input Schmitt Trigger function Enabled

End of enumeration elements list.

HS : P5[7:0] Slew Rate Control
bits : 24 - 31 (8 bit)
access : read-write

Enumeration:

0 : 0

P5[7:0] Low slew rate output, 16MHz available

1 : 1

P5[7:0] High slew rate output, 24MHz available

End of enumeration elements list.


SYS_EINT0SEL (EINT0SEL)

PIN selection
address_offset : 0x48 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_EINT0SEL SYS_EINT0SEL 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 SEL

SEL : INT0 SEL GPB3
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

INT0 source is P3.2

#1 : 1

INT0 source is P1.3

End of enumeration elements list.


SYS_IPRST0 (IPRST0)

Peripheral Reset Control Resister 1
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_IPRST0 SYS_IPRST0 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 CHIPRST CPURST CPUWS

CHIPRST : CHIP One-Shot Reset (Write Protect)\nSetting this bit will reset the CHIP, including CPU kernel and all peripherals, and this bit will automatically return to 0 after the 2 clock cycles.\nThe CHIPRST is the same as the POR reset, and all the chip module is reset and the chip settings from flash are also reload.\nNote: This bit is the protected bit, and programming it needs to write 0x59, 0x16, and 0x88 to address 0x5000_0100 to disable register protection. Refer to the register REGLCTL at address SYS_BA + 0x100.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Chip normal operation

#1 : 1

CHIP one-shot reset

End of enumeration elements list.

CPURST : CPU Kernel One Shot Reset\nSetting this bit will reset the CPU kernel, and this bit will automatically return to 0 after the 2 clock cycles.\nNote: This bit is the protected bit, and programming it needs to write 0x59, 0x16, and 0x88 to address 0x5000_0100 to disable register protection. Refer to the register REGLCTL at address SYS_BA + 0x100.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Normal

#1 : 1

Reset CPU

End of enumeration elements list.

CPUWS : CPU Wait-State Control For Flash Memory Access\n0: Insert one wait-state when access Flash\n1: Non-insert wait-state when access Flash\nNote: When HCLK frequency is faster than 44MHz, insert one wait state is necessary.
bits : 2 - 2 (1 bit)
access : read-write


SYS_IRCTCTL (IRCTCTL)

HFIRC Trim Control Register
address_offset : 0x80 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_IRCTCTL SYS_IRCTCTL 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 LOOPSEL

FREQSEL : Trim Frequency Selection\nThis bit is to enable the HFIRC auto trim.\nWhen setting this bit to 1, the HFIRC auto trim function will trim HFIRC to 22.1184 MHz automatically based on the LXT reference clock.\nDuring auto trim operation, if LXT clock error is detected or trim retry limitation count reached, this field will be cleared to 0 automatically.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

HFIRC auto trim function Disabled

#1 : 1

HFIRC auto trim function Enabled and HFIRC trimmed to 22.1184 MHz

End of enumeration elements list.

LOOPSEL : Trim Calculation Loop This field defines trim value calculation based on the number of LXT clock. For example, if LOOPSEL is set as 00 , auto trim circuit will calculate trim value based on the average frequency difference in 4 LXT clock. This field also defines how many times the auto trim circuit will try to update the HFIRC trim value before the frequency of HFIRC is locked. Once the HFIRC is locked, the internal trim value update counter will be reset. If the trim value update counter reaches this limitation value and frequency of HFIRC is still not locked, the auto trim operation will be disabled and FREQSEL will be cleared to 0.
bits : 4 - 5 (2 bit)
access : read-write

Enumeration:

#00 : 0

Trim value calculation is based on average difference in 4 LXT clock and trim retry count limitation is 64

#01 : 1

Trim value calculation is based on average difference in 8 LXT clock and trim retry count limitation is 128

#10 : 2

Trim value calculation is based on average difference in 16 LXT clock and trim retry count limitation is 256

#11 : 3

Trim value calculation is based on average difference in 32 LXT clock and trim retry count limitation is 512

End of enumeration elements list.


SYS_IRCTIEN (IRCTIEN)

HFIRC Trim Interrupt Enable Register
address_offset : 0x84 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_IRCTIEN SYS_IRCTIEN 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 TFAILIEN CLKEIEN

TFAILIEN : Trim Failure Interrupt Enable\nThis bit controls if an interrupt will be triggered while HFIRC trim value update limitation count is reached and HFIRC frequency is still not locked on target frequency set by FREQSEL.\nIf this bit is high and TFAILIF is set during auto trim operation, an interrupt will be triggered to notify that HFIRC trim value update limitation count is reached.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

TFAILIF status Disabled to trigger an interrupt to CPU

#1 : 1

TFAILIF status Enabled to trigger an interrupt to CPU

End of enumeration elements list.

CLKEIEN : LXT Clock Error Interrupt Enable\nThis bit controls if CPU could get an interrupt while LXT clock is inaccurate during auto trim operation.\nIf this bit is high, and CLKERRIF is set during auto trim operation, an interrupt will be triggered to notify the LXT clock frequency is inaccurate.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

CLKERRIF status Disabled to trigger an interrupt to CPU

#1 : 1

CLKERRIF status Enabled to trigger an interrupt to CPU

End of enumeration elements list.


SYS_IRCTISTS (IRCTISTS)

HFIRC Trim Interrupt Status Register
address_offset : 0x88 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_IRCTISTS SYS_IRCTISTS 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 FREQLOCK TFAILIF CLKERRIF

FREQLOCK : HFIRC Frequency Lock Status\nThis bit indicates the HFIRC frequency locked in 22.1184 MHz.\nThis is a read only status bit and doesn't trigger any interrupt.
bits : 0 - 0 (1 bit)
access : read-write

TFAILIF : Trim Failure Interrupt Status\nThis bit indicates that HFIRC trim value update limitation count reached and HFIRC clock frequency still doesn't lock. Once this bit is set, the auto trim operation stopped and FREQSEL will be cleared to 0 by hardware automatically.\nIf this bit is set and TFAILIEN is high, an interrupt will be triggered to notify that HFIRC trim value update limitation count was reached. Software can write 1 to clear this bit to zero.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Trim value update limitation count is not reached

#1 : 1

Trim value update limitation count is reached and HFIRC frequency is still not locked

End of enumeration elements list.

CLKERRIF : LXT Clock Error Interrupt Status\nThis bit indicates that LXT clock frequency is inaccuracy. Once this bit is set, the auto trim operation stopped and FREQSEL will be cleared to 0 by hardware automatically.\nIf this bit is set and CLKEIEN is high, an interrupt will be triggered to notify the LXT clock frequency is inaccuracy. Software can write 1 to clear this bit to zero.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

LXT clock frequency is accuracy

#1 : 1

LXT clock frequency is inaccuracy

End of enumeration elements list.


SYS_IPRST1 (IPRST1)

Peripheral Reset Control Resister 2
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYS_IPRST1 SYS_IPRST1 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 GPIORST TMR0RST TMR1RST I2C_RST SPIRST UART0RST UART1RST PWMRST ACMPRST ADCRST

GPIORST : GPIO (P0~P5) Controller Reset
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

GPIO normal operation

#1 : 1

GPIO reset

End of enumeration elements list.

TMR0RST : Timer0 Controller Reset
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer0 normal operation

#1 : 1

Timer0 block reset

End of enumeration elements list.

TMR1RST : Timer1 Controller Reset
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer1 normal operation

#1 : 1

Timer1 block reset

End of enumeration elements list.

I2C_RST : I2C Controller Reset
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

I2C normal operation

#1 : 1

I2C block reset

End of enumeration elements list.

SPIRST : SPI Controller Reset
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

SPI block normal operation

#1 : 1

SPI block reset

End of enumeration elements list.

UART0RST : UART0 Controller Reset
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

UART0 normal operation

#1 : 1

UART0 block reset

End of enumeration elements list.

UART1RST : UART1 Controller Reset
bits : 17 - 17 (1 bit)
access : read-write

Enumeration:

#0 : 0

UART1 normal operation

#1 : 1

UART1 block reset

End of enumeration elements list.

PWMRST : PWM Controller Reset
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM block normal operation

#1 : 1

PWM block reset

End of enumeration elements list.

ACMPRST : ACMP Controller Reset
bits : 22 - 22 (1 bit)
access : read-write

Enumeration:

#0 : 0

ACMP block normal operation

#1 : 1

ACMP block reset

End of enumeration elements list.

ADCRST : ADC Controller Reset
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

ADC block normal operation

#1 : 1

ADC block reset

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.