NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
Macros | Enumerator | Variables
Collaboration diagram for NANO102/112 Legacy Constants:

Macros

#define NULL   (0)
 NULL pointer. More...
 
#define TRUE   (1)
 Boolean true, define to use in API parameters or return value. More...
 
#define FALSE   (0)
 Boolean false, define to use in API parameters or return value. More...
 
#define ENABLE   (1)
 Enable, define to use in API parameters. More...
 
#define DISABLE   (0)
 Disable, define to use in API parameters. More...
 
#define BIT0   (0x00000001)
 Bit 0 mask of an 32 bit integer. More...
 
#define BIT1   (0x00000002)
 Bit 1 mask of an 32 bit integer. More...
 
#define BIT2   (0x00000004)
 Bit 2 mask of an 32 bit integer. More...
 
#define BIT3   (0x00000008)
 Bit 3 mask of an 32 bit integer. More...
 
#define BIT4   (0x00000010)
 Bit 4 mask of an 32 bit integer. More...
 
#define BIT5   (0x00000020)
 Bit 5 mask of an 32 bit integer. More...
 
#define BIT6   (0x00000040)
 Bit 6 mask of an 32 bit integer. More...
 
#define BIT7   (0x00000080)
 Bit 7 mask of an 32 bit integer. More...
 
#define BIT8   (0x00000100)
 Bit 8 mask of an 32 bit integer. More...
 
#define BIT9   (0x00000200)
 Bit 9 mask of an 32 bit integer. More...
 
#define BIT10   (0x00000400)
 Bit 10 mask of an 32 bit integer. More...
 
#define BIT11   (0x00000800)
 Bit 11 mask of an 32 bit integer. More...
 
#define BIT12   (0x00001000)
 Bit 12 mask of an 32 bit integer. More...
 
#define BIT13   (0x00002000)
 Bit 13 mask of an 32 bit integer. More...
 
#define BIT14   (0x00004000)
 Bit 14 mask of an 32 bit integer. More...
 
#define BIT15   (0x00008000)
 Bit 15 mask of an 32 bit integer. More...
 
#define BIT16   (0x00010000)
 Bit 16 mask of an 32 bit integer. More...
 
#define BIT17   (0x00020000)
 Bit 17 mask of an 32 bit integer. More...
 
#define BIT18   (0x00040000)
 Bit 18 mask of an 32 bit integer. More...
 
#define BIT19   (0x00080000)
 Bit 19 mask of an 32 bit integer. More...
 
#define BIT20   (0x00100000)
 Bit 20 mask of an 32 bit integer. More...
 
#define BIT21   (0x00200000)
 Bit 21 mask of an 32 bit integer. More...
 
#define BIT22   (0x00400000)
 Bit 22 mask of an 32 bit integer. More...
 
#define BIT23   (0x00800000)
 Bit 23 mask of an 32 bit integer. More...
 
#define BIT24   (0x01000000)
 Bit 24 mask of an 32 bit integer. More...
 
#define BIT25   (0x02000000)
 Bit 25 mask of an 32 bit integer. More...
 
#define BIT26   (0x04000000)
 Bit 26 mask of an 32 bit integer. More...
 
#define BIT27   (0x08000000)
 Bit 27 mask of an 32 bit integer. More...
 
#define BIT28   (0x10000000)
 Bit 28 mask of an 32 bit integer. More...
 
#define BIT29   (0x20000000)
 Bit 29 mask of an 32 bit integer. More...
 
#define BIT30   (0x40000000)
 Bit 30 mask of an 32 bit integer. More...
 
#define BIT31   (0x80000000)
 Bit 31 mask of an 32 bit integer. More...
 
#define BYTE0_Msk   (0x000000FF)
 Mask to get bit0~bit7 from a 32 bit integer. More...
 
#define BYTE1_Msk   (0x0000FF00)
 Mask to get bit8~bit15 from a 32 bit integer. More...
 
#define BYTE2_Msk   (0x00FF0000)
 Mask to get bit16~bit23 from a 32 bit integer. More...
 
#define BYTE3_Msk   (0xFF000000)
 Mask to get bit24~bit31 from a 32 bit integer. More...
 
#define GET_BYTE0(u32Param)   ((u32Param & BYTE0_Msk) )
 
#define GET_BYTE1(u32Param)   ((u32Param & BYTE1_Msk) >> 8)
 
#define GET_BYTE2(u32Param)   ((u32Param & BYTE2_Msk) >> 16)
 
#define GET_BYTE3(u32Param)   ((u32Param & BYTE3_Msk) >> 24)
 

Variables

__IO uint32_t ACMP_T::CR [2]
 
__IO uint32_t ACMP_T::SR
 
__IO uint32_t ACMP_T::RVCR
 
__IO uint32_t ACMP_T::MODCR0
 
__I uint32_t ADC_T::RESULT [18]
 
__IO uint32_t ADC_T::CR
 
__IO uint32_t ADC_T::CHEN
 
__IO uint32_t ADC_T::CMPR0
 
__IO uint32_t ADC_T::CMPR1
 
__IO uint32_t ADC_T::SR
 
uint32_t ADC_T::RESERVE1 [1]
 
__I uint32_t ADC_T::PDMA
 
__IO uint32_t ADC_T::PWRCTL
 
__IO uint32_t ADC_T::CALCTL
 
__IO uint32_t ADC_T::CALWORD
 
__IO uint32_t ADC_T::SMPLCNT0
 
__IO uint32_t ADC_T::SMPLCNT1
 
__IO uint32_t CLK_T::PWRCTL
 
__IO uint32_t CLK_T::AHBCLK
 
__IO uint32_t CLK_T::APBCLK
 
__I uint32_t CLK_T::CLKSTATUS
 
__IO uint32_t CLK_T::CLKSEL0
 
__IO uint32_t CLK_T::CLKSEL1
 
__IO uint32_t CLK_T::CLKSEL2
 
__IO uint32_t CLK_T::CLKDIV0
 
__IO uint32_t CLK_T::CLKDIV1
 
__IO uint32_t CLK_T::PLLCTL
 
__IO uint32_t CLK_T::FRQDIV0
 
uint32_t CLK_T::RESERVE0 [1]
 
__IO uint32_t CLK_T::WK_INTSTS
 
__IO uint32_t CLK_T::APB_DIV
 
__IO uint32_t CLK_T::FRQDIV1
 
__IO uint32_t CLK_T::SP_DET
 
__I uint32_t CLK_T::SP_STS
 
__IO uint32_t DMA_CRC_T::CTL
 
__IO uint32_t DMA_CRC_T::DMASAR
 
uint32_t DMA_CRC_T::RESERVE0 [1]
 
__IO uint32_t DMA_CRC_T::DMABCR
 
uint32_t DMA_CRC_T::RESERVE1 [1]
 
__I uint32_t DMA_CRC_T::DMACSAR
 
uint32_t DMA_CRC_T::RESERVE2 [1]
 
__I uint32_t DMA_CRC_T::DMACBCR
 
__IO uint32_t DMA_CRC_T::DMAIER
 
__IO uint32_t DMA_CRC_T::DMAISR
 
uint32_t DMA_CRC_T::RESERVE3 [22]
 
__IO uint32_t DMA_CRC_T::WDATA
 
__IO uint32_t DMA_CRC_T::SEED
 
__I uint32_t DMA_CRC_T::CHECKSUM
 
__IO uint32_t DMA_GCR_T::GCRCSR
 
__IO uint32_t DMA_GCR_T::DSSR0
 
__IO uint32_t DMA_GCR_T::DSSR1
 
__I uint32_t DMA_GCR_T::GCRISR
 
__IO uint32_t PDMA_T::CSR
 
__IO uint32_t PDMA_T::SAR
 
__IO uint32_t PDMA_T::DAR
 
__IO uint32_t PDMA_T::BCR
 
uint32_t PDMA_T::RESERVE0 [1]
 
__I uint32_t PDMA_T::CSAR
 
__I uint32_t PDMA_T::CDAR
 
__I uint32_t PDMA_T::CBCR
 
__IO uint32_t PDMA_T::IER
 
__IO uint32_t PDMA_T::ISR
 
__IO uint32_t PDMA_T::TCR
 
__IO uint32_t FMC_T::ISPCON
 
__IO uint32_t FMC_T::ISPADR
 
__IO uint32_t FMC_T::ISPDAT
 
__IO uint32_t FMC_T::ISPCMD
 
__IO uint32_t FMC_T::ISPTRG
 
__I uint32_t FMC_T::DFBADR
 
uint32_t FMC_T::RESERVE0 [10]
 
__I uint32_t FMC_T::ISPSTA
 
__I uint32_t SYS_T::PDID
 
__IO uint32_t SYS_T::RST_SRC
 
__IO uint32_t SYS_T::IPRST_CTL1
 
__IO uint32_t SYS_T::IPRST_CTL2
 
uint32_t SYS_T::RESERVE0 [4]
 
__IO uint32_t SYS_T::TEMPCTL
 
uint32_t SYS_T::RESERVE1 [3]
 
__IO uint32_t SYS_T::PA_L_MFP
 
__IO uint32_t SYS_T::PA_H_MFP
 
__IO uint32_t SYS_T::PB_L_MFP
 
__IO uint32_t SYS_T::PB_H_MFP
 
__IO uint32_t SYS_T::PC_L_MFP
 
__IO uint32_t SYS_T::PC_H_MFP
 
__IO uint32_t SYS_T::PD_L_MFP
 
__IO uint32_t SYS_T::PD_H_MFP
 
__IO uint32_t SYS_T::PE_L_MFP
 
__IO uint32_t SYS_T::PE_H_MFP
 
__IO uint32_t SYS_T::PF_L_MFP
 
uint32_t SYS_T::RESERVE2 [1]
 
__IO uint32_t SYS_T::PORCTL
 
__IO uint32_t SYS_T::BODCTL
 
__IO uint32_t SYS_T::BODSTS
 
__IO uint32_t SYS_T::Int_VREFCTL
 
__IO uint32_t SYS_T::LDO_CTL
 
uint32_t SYS_T::RESERVE3 [3]
 
__IO uint32_t SYS_T::IRCTRIMCTL
 
__IO uint32_t SYS_T::IRCTRIMIEN
 
__IO uint32_t SYS_T::IRCTRIMINT
 
uint32_t SYS_T::RESERVE4 [29]
 
__IO uint32_t SYS_T::RegLockAddr
 
__IO uint32_t GPIO_T::PMD
 
__IO uint32_t GPIO_T::OFFD
 
__IO uint32_t GPIO_T::DOUT
 
__IO uint32_t GPIO_T::DMASK
 
__I uint32_t GPIO_T::PIN
 
__IO uint32_t GPIO_T::DBEN
 
__IO uint32_t GPIO_T::IMD
 
__IO uint32_t GPIO_T::IER
 
__IO uint32_t GPIO_T::ISRC
 
__IO uint32_t GPIO_T::PUEN
 
__IO uint32_t GP_DB_T::DBNCECON
 
__IO uint32_t I2C_T::CON
 
__IO uint32_t I2C_T::INTSTS
 
__I uint32_t I2C_T::STATUS
 
__IO uint32_t I2C_T::DIV
 
__IO uint32_t I2C_T::TOUT
 
__IO uint32_t I2C_T::DATA
 
__IO uint32_t I2C_T::SADDR0
 
__IO uint32_t I2C_T::SADDR1
 
uint32_t I2C_T::RESERVE0 [2]
 
__IO uint32_t I2C_T::SAMASK0
 
__IO uint32_t I2C_T::SAMASK1
 
uint32_t I2C_T::RESERVE1 [4]
 
__IO uint32_t I2C_T::CON2
 
__IO uint32_t I2C_T::STATUS2
 
__IO uint32_t LCD_T::CTL
 
__IO uint32_t LCD_T::DISPCTL
 
__IO uint32_t LCD_T::MEM_0
 
__IO uint32_t LCD_T::MEM_1
 
__IO uint32_t LCD_T::MEM_2
 
__IO uint32_t LCD_T::MEM_3
 
__IO uint32_t LCD_T::MEM_4
 
__IO uint32_t LCD_T::MEM_5
 
__IO uint32_t LCD_T::MEM_6
 
__IO uint32_t LCD_T::MEM_7
 
__IO uint32_t LCD_T::MEM_8
 
uint32_t LCD_T::RESERVE0 [1]
 
__IO uint32_t LCD_T::FCR
 
__IO uint32_t LCD_T::FCSTS
 
__IO uint32_t PWM_T::PRES
 
__IO uint32_t PWM_T::CLKSEL
 
__IO uint32_t PWM_T::CTL
 
__IO uint32_t PWM_T::INTEN
 
__IO uint32_t PWM_T::INTSTS
 
__IO uint32_t PWM_T::OE
 
uint32_t PWM_T::RESERVE0 [1]
 
__IO uint32_t PWM_T::DUTY0
 
__I uint32_t PWM_T::DATA0
 
uint32_t PWM_T::RESERVE1 [1]
 
__IO uint32_t PWM_T::DUTY1
 
__I uint32_t PWM_T::DATA1
 
uint32_t PWM_T::RESERVE2 [1]
 
__IO uint32_t PWM_T::DUTY2
 
__I uint32_t PWM_T::DATA2
 
uint32_t PWM_T::RESERVE3 [1]
 
__IO uint32_t PWM_T::DUTY3
 
__I uint32_t PWM_T::DATA3
 
uint32_t PWM_T::RESERVE4 [3]
 
__IO uint32_t PWM_T::CAPCTL
 
__IO uint32_t PWM_T::CAPINTEN
 
__IO uint32_t PWM_T::CAPINTSTS
 
__I uint32_t PWM_T::CRL0
 
__I uint32_t PWM_T::CFL0
 
__I uint32_t PWM_T::CRL1
 
__I uint32_t PWM_T::CFL1
 
__I uint32_t PWM_T::CRL2
 
__I uint32_t PWM_T::CFL2
 
__I uint32_t PWM_T::CRL3
 
__I uint32_t PWM_T::CFL3
 
__I uint32_t PWM_T::PDMACH0
 
__I uint32_t PWM_T::PDMACH2
 
__IO uint32_t PWM_T::ADTRGEN
 
__IO uint32_t PWM_T::ADTRGSTS
 
__IO uint32_t RTC_T::INIR
 
__O uint32_t RTC_T::AER
 
__IO uint32_t RTC_T::FCR
 
__IO uint32_t RTC_T::TLR
 
__IO uint32_t RTC_T::CLR
 
__IO uint32_t RTC_T::TSSR
 
__IO uint32_t RTC_T::DWR
 
__IO uint32_t RTC_T::TAR
 
__IO uint32_t RTC_T::CAR
 
__I uint32_t RTC_T::LIR
 
__IO uint32_t RTC_T::RIER
 
__IO uint32_t RTC_T::RIIR
 
__IO uint32_t RTC_T::TTR
 
uint32_t RTC_T::RESERVE0 [2]
 
__IO uint32_t RTC_T::SPRCTL
 
__IO uint32_t RTC_T::SPR [20]
 
__I uint32_t   SC_T::RBR
 
__O uint32_t   SC_T::THR
 
union {
   __I uint32_t   SC_T::RBR
 
   __O uint32_t   SC_T::THR
 
}; 
 
__IO uint32_t SC_T::CTL
 
__IO uint32_t SC_T::ALTCTL
 
__IO uint32_t SC_T::EGTR
 
__IO uint32_t SC_T::RFTMR
 
__IO uint32_t SC_T::ETUCR
 
__IO uint32_t SC_T::IER
 
__IO uint32_t SC_T::ISR
 
__IO uint32_t SC_T::TRSR
 
__IO uint32_t SC_T::PINCSR
 
__IO uint32_t SC_T::TMR0
 
__IO uint32_t SC_T::TMR1
 
__IO uint32_t SC_T::TMR2
 
__IO uint32_t SC_T::UACTL
 
__I uint32_t SC_T::TDRA
 
__I uint32_t SC_T::TDRB
 
__IO uint32_t SPI_T::CTL
 
__IO uint32_t SPI_T::STATUS
 
__IO uint32_t SPI_T::CLKDIV
 
__IO uint32_t SPI_T::SSR
 
__I uint32_t SPI_T::RX0
 
__I uint32_t SPI_T::RX1
 
uint32_t SPI_T::RESERVE0 [2]
 
__O uint32_t SPI_T::TX0
 
__O uint32_t SPI_T::TX1
 
uint32_t SPI_T::RESERVE1 [3]
 
__IO uint32_t SPI_T::VARCLK
 
__IO uint32_t SPI_T::DMA
 
__IO uint32_t SPI_T::FFCTL
 
uint32_t SPI_T::RESERVE2 [4]
 
__IO uint32_t TIMER_T::CTL
 
__IO uint32_t TIMER_T::PRECNT
 
__IO uint32_t TIMER_T::CMPR
 
__IO uint32_t TIMER_T::IER
 
__IO uint32_t TIMER_T::ISR
 
__IO uint32_t TIMER_T::DR
 
__I uint32_t TIMER_T::TCAP
 
uint32_t TIMER_T::RESERVE0 [1]
 
__IO uint32_t TIMER_T::ECTL
 
__I uint32_t   UART_T::RBR
 
__O uint32_t   UART_T::THR
 
union {
   __I uint32_t   UART_T::RBR
 
   __O uint32_t   UART_T::THR
 
}; 
 
__IO uint32_t UART_T::CTL
 
__IO uint32_t UART_T::TLCTL
 
__IO uint32_t UART_T::IER
 
__IO uint32_t UART_T::ISR
 
__IO uint32_t UART_T::TRSR
 
__IO uint32_t UART_T::FSR
 
__IO uint32_t UART_T::MCSR
 
__IO uint32_t UART_T::TMCTL
 
__IO uint32_t UART_T::BAUD
 
uint32_t UART_T::RESERVE0 [2]
 
__IO uint32_t UART_T::IRCR
 
__IO uint32_t UART_T::ALT_CTL
 
__IO uint32_t UART_T::FUN_SEL
 
__IO uint32_t UART_T::BR_COMP
 
__IO uint32_t WDT_T::CTL
 
__IO uint32_t WDT_T::IER
 
__IO uint32_t WDT_T::ISR
 
__O uint32_t WWDT_T::RLD
 
__IO uint32_t WWDT_T::CR
 
__IO uint32_t WWDT_T::IER
 
__IO uint32_t WWDT_T::STS
 
__I uint32_t WWDT_T::VAL
 

Detailed Description

NANO102/112 Legacy Constants

Macro Definition Documentation

◆ BIT0

#define BIT0   (0x00000001)

Bit 0 mask of an 32 bit integer.

Definition at line 10822 of file Nano1X2Series.h.

◆ BIT1

#define BIT1   (0x00000002)

Bit 1 mask of an 32 bit integer.

Definition at line 10823 of file Nano1X2Series.h.

◆ BIT10

#define BIT10   (0x00000400)

Bit 10 mask of an 32 bit integer.

Definition at line 10832 of file Nano1X2Series.h.

◆ BIT11

#define BIT11   (0x00000800)

Bit 11 mask of an 32 bit integer.

Definition at line 10833 of file Nano1X2Series.h.

◆ BIT12

#define BIT12   (0x00001000)

Bit 12 mask of an 32 bit integer.

Definition at line 10834 of file Nano1X2Series.h.

◆ BIT13

#define BIT13   (0x00002000)

Bit 13 mask of an 32 bit integer.

Definition at line 10835 of file Nano1X2Series.h.

◆ BIT14

#define BIT14   (0x00004000)

Bit 14 mask of an 32 bit integer.

Definition at line 10836 of file Nano1X2Series.h.

◆ BIT15

#define BIT15   (0x00008000)

Bit 15 mask of an 32 bit integer.

Definition at line 10837 of file Nano1X2Series.h.

◆ BIT16

#define BIT16   (0x00010000)

Bit 16 mask of an 32 bit integer.

Definition at line 10838 of file Nano1X2Series.h.

◆ BIT17

#define BIT17   (0x00020000)

Bit 17 mask of an 32 bit integer.

Definition at line 10839 of file Nano1X2Series.h.

◆ BIT18

#define BIT18   (0x00040000)

Bit 18 mask of an 32 bit integer.

Definition at line 10840 of file Nano1X2Series.h.

◆ BIT19

#define BIT19   (0x00080000)

Bit 19 mask of an 32 bit integer.

Definition at line 10841 of file Nano1X2Series.h.

◆ BIT2

#define BIT2   (0x00000004)

Bit 2 mask of an 32 bit integer.

Definition at line 10824 of file Nano1X2Series.h.

◆ BIT20

#define BIT20   (0x00100000)

Bit 20 mask of an 32 bit integer.

Definition at line 10842 of file Nano1X2Series.h.

◆ BIT21

#define BIT21   (0x00200000)

Bit 21 mask of an 32 bit integer.

Definition at line 10843 of file Nano1X2Series.h.

◆ BIT22

#define BIT22   (0x00400000)

Bit 22 mask of an 32 bit integer.

Definition at line 10844 of file Nano1X2Series.h.

◆ BIT23

#define BIT23   (0x00800000)

Bit 23 mask of an 32 bit integer.

Definition at line 10845 of file Nano1X2Series.h.

◆ BIT24

#define BIT24   (0x01000000)

Bit 24 mask of an 32 bit integer.

Definition at line 10846 of file Nano1X2Series.h.

◆ BIT25

#define BIT25   (0x02000000)

Bit 25 mask of an 32 bit integer.

Definition at line 10847 of file Nano1X2Series.h.

◆ BIT26

#define BIT26   (0x04000000)

Bit 26 mask of an 32 bit integer.

Definition at line 10848 of file Nano1X2Series.h.

◆ BIT27

#define BIT27   (0x08000000)

Bit 27 mask of an 32 bit integer.

Definition at line 10849 of file Nano1X2Series.h.

◆ BIT28

#define BIT28   (0x10000000)

Bit 28 mask of an 32 bit integer.

Definition at line 10850 of file Nano1X2Series.h.

◆ BIT29

#define BIT29   (0x20000000)

Bit 29 mask of an 32 bit integer.

Definition at line 10851 of file Nano1X2Series.h.

◆ BIT3

#define BIT3   (0x00000008)

Bit 3 mask of an 32 bit integer.

Definition at line 10825 of file Nano1X2Series.h.

◆ BIT30

#define BIT30   (0x40000000)

Bit 30 mask of an 32 bit integer.

Definition at line 10852 of file Nano1X2Series.h.

◆ BIT31

#define BIT31   (0x80000000)

Bit 31 mask of an 32 bit integer.

Definition at line 10853 of file Nano1X2Series.h.

◆ BIT4

#define BIT4   (0x00000010)

Bit 4 mask of an 32 bit integer.

Definition at line 10826 of file Nano1X2Series.h.

◆ BIT5

#define BIT5   (0x00000020)

Bit 5 mask of an 32 bit integer.

Definition at line 10827 of file Nano1X2Series.h.

◆ BIT6

#define BIT6   (0x00000040)

Bit 6 mask of an 32 bit integer.

Definition at line 10828 of file Nano1X2Series.h.

◆ BIT7

#define BIT7   (0x00000080)

Bit 7 mask of an 32 bit integer.

Definition at line 10829 of file Nano1X2Series.h.

◆ BIT8

#define BIT8   (0x00000100)

Bit 8 mask of an 32 bit integer.

Definition at line 10830 of file Nano1X2Series.h.

◆ BIT9

#define BIT9   (0x00000200)

Bit 9 mask of an 32 bit integer.

Definition at line 10831 of file Nano1X2Series.h.

◆ BYTE0_Msk

#define BYTE0_Msk   (0x000000FF)

Mask to get bit0~bit7 from a 32 bit integer.

Definition at line 10856 of file Nano1X2Series.h.

◆ BYTE1_Msk

#define BYTE1_Msk   (0x0000FF00)

Mask to get bit8~bit15 from a 32 bit integer.

Definition at line 10857 of file Nano1X2Series.h.

◆ BYTE2_Msk

#define BYTE2_Msk   (0x00FF0000)

Mask to get bit16~bit23 from a 32 bit integer.

Definition at line 10858 of file Nano1X2Series.h.

◆ BYTE3_Msk

#define BYTE3_Msk   (0xFF000000)

Mask to get bit24~bit31 from a 32 bit integer.

Definition at line 10859 of file Nano1X2Series.h.

◆ DISABLE

#define DISABLE   (0)

Disable, define to use in API parameters.

Definition at line 10819 of file Nano1X2Series.h.

◆ ENABLE

#define ENABLE   (1)

Enable, define to use in API parameters.

Definition at line 10818 of file Nano1X2Series.h.

◆ FALSE

#define FALSE   (0)

Boolean false, define to use in API parameters or return value.

Definition at line 10816 of file Nano1X2Series.h.

◆ GET_BYTE0

#define GET_BYTE0 (   u32Param)    ((u32Param & BYTE0_Msk) )

Extract Byte 0 (Bit 0~ 7) from parameter u32Param

Definition at line 10861 of file Nano1X2Series.h.

◆ GET_BYTE1

#define GET_BYTE1 (   u32Param)    ((u32Param & BYTE1_Msk) >> 8)

Extract Byte 1 (Bit 8~15) from parameter u32Param

Definition at line 10862 of file Nano1X2Series.h.

◆ GET_BYTE2

#define GET_BYTE2 (   u32Param)    ((u32Param & BYTE2_Msk) >> 16)

Extract Byte 2 (Bit 16~23) from parameter u32Param

Definition at line 10863 of file Nano1X2Series.h.

◆ GET_BYTE3

#define GET_BYTE3 (   u32Param)    ((u32Param & BYTE3_Msk) >> 24)

Extract Byte 3 (Bit 24~31) from parameter u32Param

Definition at line 10864 of file Nano1X2Series.h.

◆ NULL

#define NULL   (0)

NULL pointer.

Definition at line 10812 of file Nano1X2Series.h.

◆ TRUE

#define TRUE   (1)

Boolean true, define to use in API parameters or return value.

Definition at line 10815 of file Nano1X2Series.h.

Variable Documentation

◆ 

union { ... } SC_T::@1

◆ 

union { ... } UART_T::@3

◆ ADTRGEN

__IO uint32_t PWM_T::ADTRGEN

ADTRGEN

Offset: 0x88 PWM Center-Triggered Control Register

Bits Field Descriptions
[0] TRGCH0EN PWM CH0 Center-Triggered Enable Control
0 = PWM CH0 center-triggered function Disabled.
1 = PWM CH0 center-triggered function Enabled.
Note: The center-triggered function is only valid in PWM center-aligned mode.
[1] TRGCH1EN PWM CH1 Center-Triggered Enable Control
0 = PWM CH1 center-triggered function Disabled.
1 = PWM CH1 center-triggered function Enabled.
Note: The center-triggered function is only valid in PWM center-aligned mode.
[2] TRGCH2EN PWM CH2 Center-Triggered Enable Control
0 = PWM CH2 center-triggered function Disabled.
1 = PWM CH2 center-triggered function Enabled.
Note: The center-triggered function is only valid in PWM center-aligned mode.
[3] TRGCH3EN PWM CH3 Center-Triggered Enable Control
0 = PWM CH3 center-triggered function Disabled.
1 = PWM CH3 center-triggered function Enabled.
Note: The center-triggered function is only valid in PWM center-aligned mode.

Definition at line 6579 of file Nano1X2Series.h.

◆ ADTRGSTS

__IO uint32_t PWM_T::ADTRGSTS

ADTRGSTS

Offset: 0x8C PWM Center-Triggered Indication Register

Bits Field Descriptions
[0] ADTRG0Flag PWM CH0 Center-Triggered Flag
0 = PWM CH0 has not crossed half of PWM period yet.
1 = PWM CH0 has crossed half of PWM period.
Note: This flag is only valid in center-aligned mode, and software could write 1 into this bit to clear the flag
[1] ADTRG1Flag PWM CH1 Center-Triggered Flag
0 = PWM CH1 has not crossed half of PWM period yet.
1 = PWM CH1 has crossed half of PWM period.
Note: This flag is only valid in center-aligned mode, and software could write 1 into this bit to clear the flag
[2] ADTRG2Flag PWM CH2 Center-Triggered Flag
0 = PWM CH2 has not crossed half of PWM period yet.
1 = PWM CH2 has crossed half of PWM period.
Note: This flag is only valid in center-aligned mode, and software could write 1 into this bit to clear the flag
[3] ADTRG3Flag PWM CH3 Center-Triggered Flag
0 = PWM CH3 has not crossed half of PWM period yet.
1 = PWM CH3 has crossed half of PWM period.
Note: This flag is only valid in center-aligned mode, and software could write 1 into this bit to clear the flag

Definition at line 6605 of file Nano1X2Series.h.

◆ AER

__O uint32_t RTC_T::AER

AER

Offset: 0x04 RTC Access Enable Register

Bits Field Descriptions
[15:0] AER RTC Register Access Enable Password (Write Only)
Enable RTC access after write 0xA965. Otherwise disable RTC access.
[16] ENF RTC Register Access Enable Flag (Read Only)
0 = RTC register read/write disable.
1 = RTC register read/write enable.
This bit will be set after AER[15:0] register is load a 0xA965, and be clear automatically 512 RTC clocks or AER[15:0] is not 0xA965.

Definition at line 7107 of file Nano1X2Series.h.

◆ AHBCLK

__IO uint32_t CLK_T::AHBCLK

AHBCLK

Offset: 0x04 AHB Devices Clock Enable Control Register

Bits Field Descriptions
[0] GPIO_EN GPIO Controller Clock Enable Control
0 = Disabled.
1 = Enabled.
[1] DMA_EN DMA Controller Clock Enable Control
0 = Disabled.
1 = Enabled.
[2] ISP_EN Flash ISP Controller Clock Enable Control
0 = Disabled.
1 = Enabled.
[4] SRAM_EN SRAM Controller Clock Enable Control
0 = Disabled.
1 = Enabled.
[5] TICK_EN System Tick Clock Enable Control
0 = Disabled.
1 = Enabled.

Definition at line 1008 of file Nano1X2Series.h.

◆ ALT_CTL

__IO uint32_t UART_T::ALT_CTL

ALT_CTL

Offset: 0x34 UART Alternate Control State Register.

Bits Field Descriptions
[2:0] LIN_TX_BCNT LIN TX Break Field Count Register
The field contains 3-bit LIN TX break field count.
Note: The break field length is LIN_TX_BCNT + 8.
[5:4] LIN_HEAD_SEL LIN Header Selection
00 = The LIN header includes "break field".
01 = The LIN header includes "break field + sync field".
10 = The LIN header includes "break field + sync field + PID field".
11 = Reserved.
[6] LIN_RX_EN LIN RX Enable
When LIN RX mode enabled and received a break field or sync field or PID field (Select by LIN_Header_SEL), the controller will generator a interrupt to CPU (INT_LIN)
0 = LIN RX mode Disabled.
1 = LIN RX mode Enabled.
[7] LIN_TX_EN LIN TX Header Trigger Enable
0 = LIN TX Header Trigger Disabled.
1 = LIN TX Header Trigger Enabled.
Note1: This bit will be cleared automatically and generate a interrupt to CPU (INT_LIN).
Note2: If user wants to receive transmit data, it recommended to enable LIN_RX_EN bit.
[8] BIT_ERR_EN Bit Error Detect Enable
0 = Bit error detection Disabled.
1 = Bit error detection Enabled.
Note: In LIN function mode, when bit error occurs, hardware will generate an interrupt to CPU (INT_LIN).
[16] RS485_NMM RS-485 Normal Multi-Drop Operation Mode (RS-485 NMM Mode)
0 = RS-485 Normal Multi-drop Operation mode (NMM) Disabled.
1 = RS-485 Normal Multi-drop Operation mode (NMM) Enabled.
Note: It can't be active in RS-485_AAD Operation mode.
[17] RS485_AAD RS-485 Auto Address Detection Operation Mode (RS-485 AAD Mode)
0 = RS-485 Auto Address Detection Operation mode (AAD) Disabled.
1 = RS-485 Auto Address Detection Operation mode (AAD) Enabled.
Note: It can't be active in RS-485_NMM Operation mode.
[18] RS485_AUD RS-485 Auto Direction Mode (RS-485 AUD Mode)
0 = RS-485 Auto Direction mode (AUD) Disabled.
1 = RS-485 Auto Direction mode (AUD) Enabled.
Note: It can be active in RS-485_AAD or RS-485_NMM operation mode.
[19] RS485_ADD_EN RS-485 Address Detection Enable
This bit is used to enable RS-485 hardware address detection mode.
If hardware detects address byte, and then the controller will set UART_TRSR [RS485_ADDET_F] = "1".
0 = Address detection mode Disabled.
1 = Address detection mode Enabled.
Note: This field is used for RS-485 any operation mode.
[31:24] ADDR_PID_MATCH Address / PID Match Value Register
This field contains the RS-485 address match values in RS-485 Function mode.
This field contains the LIN protected identifier field n LIN Function mode, software fills ID0~ID5 (ADDR_PID_MATCH [5:0]), hardware will calculate P0 and P1.
Note: This field is used for RS-485 auto address detection mode or used for LIN protected identifier field (PID).

Definition at line 10000 of file Nano1X2Series.h.

◆ ALTCTL

__IO uint32_t SC_T::ALTCTL

ALTCTL

Offset: 0x08 SC Alternate Control Register.

Bits Field Descriptions
[0] TX_RST TX Software Reset
When TX_RST is set, all the bytes in the transmit buffer and TX internal state machine will be cleared.
0 = No effect.
1 = Reset the TX internal state machine and pointers.
Note: This bit will be auto cleared and needs at least 3 SC engine clock cycles.
[1] RX_RST RX Software Reset
When RX_RST is set, all the bytes in the receiver buffer and RX internal state machine will be cleared.
0 = No effect.
1 = Reset the RX internal state machine and pointers.
Note: This bit will be auto cleared and needs at least 3 SC engine clock cycles.
[2] DACT_EN Deactivation Sequence Generator Enable
This bit enables SC controller to initiate the card by deactivation sequence
0 = No effect.
1 = Deactivation sequence generator Enabled.
Note1: When the deactivation sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to "1".
Note2: This field will be cleared by TX_RST and RX_RST.
So don't fill this bit, TX_RST, and RX_RST at the same time.
Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[3] ACT_EN Activation Sequence Generator Enable
This bit enables SC controller to initiate the card by activation sequence
0 = No effect.
1 = Activation sequence generator Enabled.
Note1: When the activation sequence completed, this bit will be cleared automatically and the SC_IS [INIT_IS] will be set to "1".
Note2: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time.
Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[4] WARST_EN Warm Reset Sequence Generator Enable
This bit enables SC controller to initiate the card by warm reset sequence
0 = No effect.
1 = Warm reset sequence generator Enabled.
Note1: When the warm reset sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to "1".
Note2: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time.
Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[5] TMR0_SEN Internal Timer0 Start Enable
This bit enables Timer0 to start counting.
Software can fill "0" to stop it and set "1" to reload and count.
0 = Stops counting.
1 = Starts counting.
Note1: This field is used for internal 24 bit timer when SC_CTL [TMR_SEL] = 01.
Note2: If the operation mode is not in auto-reload mode (SC_TMR0 [26] = "0"), this bit will be auto-cleared by hardware.
Note3: This field will be cleared by TX_RST and RX_RST.
So don't fill this bit, TX_RST and RX_RST at the same time.
Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[6] TMR1_SEN Internal Timer1 Start Enable
This bit enables Timer "1" to start counting.
Software can fill 0 to stop it and set "1" to reload and count.
0 = Stops counting.
1 = Starts counting.
Note1: This field is used for internal 8-bit timer when SC_CTL [TMR_SEL] = 01 or 10.
Don't filled TMR1_SEN when SC_CTL [TMR_SEL] = 00 or 11.
Note2: If the operation mode is not in auto-reload mode (SC_TMR1 [26] = "0"), this bit will be auto-cleared by hardware.
Note3: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time.
Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[7] TMR2_SEN Internal Timer2 Start Enable
This bit enables Timer2 to start counting.
Software can fill "0" to stop it and set "1" to reload and count.
0 = Stops counting.
1 = Starts counting.
Note1: This field is used for internal 8-bit timer when SC_CTL [TMR_SEL] == 11.
Don't filled TMR2_SEN when SC_CTL [TMR_SEL] == 00 or 01 or 10.
Note2: If the operation mode is not in auto-reload mode (SC_TMR2 [26] = "0"), this bit will be auto-cleared by hardware.
Note3: This field will be cleared by TX_RST and RX_RST.
So don't fill this bit, TX_RST, and RX_RST at the same time.
Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed.
[9:8] INIT_SEL Initial Timing Selection
This field indicates the timing of hardware initial state (activation or warm-reset or deactivation).
[12] RX_BGT_EN Receiver Block Guard Time Function Enable
0 = Receiver block guard time function Disabled.
1 = Receiver block guard time function Enabled.
[13] TMR0_ATV Internal Timer0 Active State (Read Only)
This bit indicates the timer counter status of timer0.
0 = Timer0 is not active.
1 = Timer0 is active.
[14] TMR1_ATV Internal Timer1 Active State (Read Only)
This bit indicates the timer counter status of timer1.
0 = Timer1 is not active.
1 = Timer1 is active.
[15] TMR2_ATV Internal Timer2 Active State (Read Only)
This bit indicates the timer counter status of timer2.
0 = Timer2 is not active.
1 = Timer2 is active.

Definition at line 7748 of file Nano1X2Series.h.

◆ APB_DIV

__IO uint32_t CLK_T::APB_DIV

APB_DIV

Offset: 0x34 APB Clock Divider

Bits Field Descriptions
[2:0] APBDIV APB Clock Divider
APB PCLK can be divided from HCLK.
000: PCLK = HCLK.
001: PCLK =1/2 HCLK.
010: PCLK = 1/4 HCLK.
011: PCLK = 1/8 HCLK.
100: PCLK = 1/16 HCLK.
Others: PCLK = HCLK.

Definition at line 1354 of file Nano1X2Series.h.

◆ APBCLK

__IO uint32_t CLK_T::APBCLK

APBCLK

Offset: 0x08 APB Devices Clock Enable Control Register

Bits Field Descriptions
[0] WDT_EN Watchdog Timer Clock Enable Control
This is a protected register. Please refer to open lock sequence to program it.
This bit is used to control the WDT APB clock only, The WDT engine Clock Source is from LIRC.
0 = Disabled.
1 = Enabled.
[1] RTC_EN Real-Time-Clock Clock Enable Control
This bit is used to control the RTC APB clock only, The RTC engine Clock Source is from LXT.
0 = Disabled.
1 = Enabled.
[2] TMR0_EN Timer0 Clock Enable Control
0 = Disabled.
1 = Enabled.
[3] TMR1_EN Timer1 Clock Enable Control
0 = Disabled.
1 = Enabled.
[4] TMR2_EN Timer2 Clock Enable Control
0 = Disabled.
1 = Enabled.
[5] TMR3_EN Timer3 Clock Enable Control
0 = Disabled.
1 = Enabled.
[6] FDIV0_EN Frequency Divider0 Output Clock Enable Control
0 = Disabled.
1 = Enabled.
[7] FDIV1_EN Frequency Divider1 Output Clock Enable Control
0 = Disabled.
1 = Enabled.
[8] I2C0_EN I2C0 Clock Enable Control
0 = Disabled.
1 = Enabled.
[9] I2C1_EN I2C1 Clock Enable Control
0 = Disabled.
1 = Enabled.
[11] ACMP_EN ACMP Clock Enable Control
0 = Disabled.
1 = Enabled.
[12] SPI0_EN SPI0 Clock Enable Control
0 = Disabled.
1 = Enabled.
[13] SPI1_EN SPI1 Clock Enable Control
0 = Disabled.
1 = Enabled.
[16] UART0_EN UART0 Clock Enable Control
0 = Disabled.
1 = Enabled.
[17] UART1_EN UART1 Clock Enable Control
0 = Disabled.
1 = Enabled.
[20] PWM0_CH01_EN PWM0 Channel 0 And Channel 1Clock Enable Control
0 = Disabled.
1 = Enabled.
[21] PWM0_CH23_EN PWM0 Channel 2 And Channel 3 Clock Enable Control
0 = Disabled.
1 = Enabled.
[26] LCD_EN LCD Controller Clock Enable Control
0 = Disabled.
1 = Enabled.
[28] ADC_EN Analog-Digital-Converter (ADC) Clock Enable Control
0 = Disabled.
1 = Enabled.
[30] SC0_EN SmartCard 0 Clock Enable Control
0 = Disabled.
1 = Enabled.
[31] SC1_EN SmartCard 1 Clock Enable Control
0 = Disabled.
1 = Enabled.

Definition at line 1084 of file Nano1X2Series.h.

◆ BAUD

__IO uint32_t UART_T::BAUD

BAUD

Offset: 0x24 UART Baud Rate Divisor Register

Bits Field Descriptions
[15:0] BRD Baud Rate Divider
[31] DIV_16_EN Divider 16 Enable
The BRD = Baud Rate Divider, and the baud rate equation is Baud Rate = UART_CLK/ [16 * (BRD + 1)];
0 = The equation of baud rate is UART_CLK / [ (BRD+1)].
1 = The equation of baud rate is UART_CLK / [16 * (BRD+1)].
Note: In IrDA mode, this bit must disable.

Definition at line 9925 of file Nano1X2Series.h.

◆ BCR

__IO uint32_t PDMA_T::BCR

BCR

Offset: 0x0C PDMA Transfer Byte Count Register

Bits Field Descriptions
[15:0] PDMA_BCR PDMA Transfer Byte Count Register
This field indicates a 16-bit transfer byte count of PDMA.
Note: In Memory-to-memory (PDMA_CSR [MODE_SEL] = 00) mode, the transfer byte count must be word alignment.

Definition at line 2153 of file Nano1X2Series.h.

◆ BODCTL

__IO uint32_t SYS_T::BODCTL

BODCTL

Offset: 0x64 Brown-out Detector Controller Register

Bits Field Descriptions
[0] BOD17_EN Brown-Out Detector 1.7V Function Enable Control
This is a protected register. Please refer to open lock sequence to program it.
The default value is set by flash controller user configuration register config0 bit[20:19]
Users can disable BOD17_EN but it takes effective (disabled) only in Power-down mode.
Once existing Power-down mode, BOD17 will be enabled by HW automatically.
When CPU reads this bit, CPU will read whether BOD17 function enabled or not.
In other words,CPU will always read high.
0 = Brown-out Detector 1.7V function Disabled.
1 = Brown-out Detector 1.7V function Enabled.
[1] BOD20_EN Brown-Out Detector 2.0 V Function Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Brown-out Detector 2.0 V function Disabled.
1 = Brown-out Detector 2.0 V function Enabled.
BOD20_EN is default on.
If SW disables it, Brown-out Detector 2.0 V function is not disabled until chip enters power-down mode.
If system is not in power-down mode, BOD20_EN will be enabled by hardware automatically.
[2] BOD25_EN Brown-Out Detector 2.5 V Function Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Brown-out Detector 2.5 V function Disabled.
1 = Brown-out Detector 2.5 V function Enabled.
[4] BOD17_RST_EN BOD 1.7 V Reset Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Reset does not issue when BOD17 occurs.
1 = Reset issues when BOD17 occurs.
The default value is set by flash controller user configuration register config0 bit[20:19]
[5] BOD20_RST_EN BOD 2.0 V Reset Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Reset does not issue when BOD20 occurs.
1 = Reset issues when BOD20 occurs.
The default value is set by flash controller user configuration register config0 bit[20:19]
[6] BOD25_RST_EN BOD 2.5 V Reset Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Reset does not issue when BOD25 occurs.
1 = Reset issues when BOD25 occurs.
The default value is set by flash controller user configuration register config0 bit[20:19]
[8] BOD17_INT_EN BOD 1.7 V Interrupt Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Interrupt does not issue when BOD17 occurs.
1 = Interrupt issues when BOD17 occurs.
[9] BOD20_INT_EN BOD 2.0 V Interrupt Enable Control
0 = Interrupt does not issue when BOD20 occurs.
1 = Interrupt issues when BOD20 occurs.
[10] BOD25_INT_EN BOD 2.5 V Interrupt Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Interrupt does not issue when BOD25 occurs.
1 = Interrupt issues when BOD25 occurs.
[15:12] BOD17_TRIM BOD 1.7 TRIM Value
This is a protected register. Please refer to open lock sequence to program it.
This value is used to control BOD17 detect voltage level, nominal 1.7 V.
Higher trim value, higher detection voltage.
[19:16] BOD20_TRIM BOD 2.0 TRIM Value
This is a protected register. Please refer to open lock sequence to program it.
This value is used to control BOD20 detect voltage level, nominal 2.0 V.
Higher trim value, higher detection voltage.
[23:20] BOD25_TRIM BOD 2.5 TRIM Value
This is a protected register. Please refer to open lock sequence to program it.
This value is used to control BOD25 detect voltage level, nominal 2.5 V.
Higher trim value, higher detection voltage.

Definition at line 3406 of file Nano1X2Series.h.

◆ BODSTS

__IO uint32_t SYS_T::BODSTS

BODSTS

Offset: 0x68 Brown-out Detector Status Register

Bits Field Descriptions
[0] BOD_INT Brown-Out Detector Interrupt Status
0 = Brown-out Detector does not detect any voltage drift at VDD down through or up through the target detected voltage after interrupt is enabled.
1 = When Brown-out Detector detects the VDD is dropped down through the target detected voltage or the VDD is raised up through the target detected voltage and Brown-out interrupt is enabled, this bit will be set to 1.
This bit is cleared by writing 1 to it.
[1] BOD17_drop Brown-Out Detector Lower Than 1.7V Status
Setting BOD17_drop high means once the detected voltage is lower than target detected voltage setting (1.7V).
Software can write 1 to clear BOD17_drop.
[2] BOD20_drop Brown-Out Detector Lower Than 2.0V Status
Setting BOD20_drop high means once the detected voltage is lower than target detected voltage setting (2.0V).
Software can write 1 to clear BOD20_drop.
[3] BOD25_drop Brown-Out Detector Lower Than 2.5V Status
Setting BOD25_drop high means once the detected voltage is lower than target detected voltage setting (2.5V).
Software can write 1 to clear BOD25_drop.
[4] BOD17_rise Brown-Out Detector Higher Than 1.7V Status
Setting BOD17_rise high means once the detected voltage is higher than target detected voltage setting (1.7V).
Software can write 1 to clear BOD17_rise.
[5] BOD20_rise Brown-Out Detector Higher Than 2.0V Status
Setting BOD20_rise high means once the detected voltage is higher than target detected voltage setting (2.0V).
Software can write 1 to clear BOD20_rise.
[6] BOD25_rise Brown-Out Detector Higher Than 2.5V Status
Setting BOD25_rise high means once the detected voltage is higher than target detected voltage setting (2.5V).
Software can write 1 to clear BOD25_rise.
[8] BOD17 Brown-Out Detector 1.7V Status
This bit reflects the BOD17 status.
BOD17 is high if detected voltage is higher than 1.7 V.
BOD17 is low if detected voltage is lower than 1.7 V.
Note: This bit is ready-only.
[9] BOD20 Brown-Out Detector 2.0V Status
This bit reflects the BOD20 status.
BOD20 is high if detected voltage is higher than 2.0 V.
BOD20 is low if detected voltage is lower than 2.0 V.
Note: This bit is ready-only.
[10] BOD25 Brown-Out Detector 2.5V Status
This bit reflects the BOD25 status.
BOD25 is high if detected voltage is higher than 2.5 V.
BOD25 is low if detected voltage is lower than 2.5 V.
Note: This bit is ready-only.

Definition at line 3453 of file Nano1X2Series.h.

◆ BR_COMP

__IO uint32_t UART_T::BR_COMP

BR_COMP

Offset: 0x3C UART Baud Rate Compensation

Bits Field Descriptions
[8:0] BR_COMP Baud Rate Compensation Patten
These 9-bits are used to define the relative bit is compensated or not.
BR_COMP[7:0] is used to define the compensation of UART data[7:0] and BR_COM[8] is used to define the parity bit.
[31] BR_COMP_DEC Baud Rate Compensation Decrease
0 = Positive (increase one module clock) compensation for each compensated bit.
1 = Negative (decrease one module clock) compensation for each compensated bit.

Definition at line 10031 of file Nano1X2Series.h.

◆ CALCTL

__IO uint32_t ADC_T::CALCTL

CALCTL

Offset: 0x68 ADC Calibration Control Register

Bits Field Descriptions
[0] CALEN Calibration Function Enable
Enable this bit to turn on the calibration function block.
0 = Disable
1 = Enabled.
[1] CALSTART Calibration Functional Block Start
0 = Stops calibration functional block.
1 = Starts calibration functional block.
Note: This bit is set by SW and clear by HW; don't write 1 to this bit while CALEN = 0.
[2] CALDONE Calibrate Functional Block Complete
0 = Not yet.
1 = Selected functional block complete.
[3] CALSEL Select Calibration Functional Block
0 = Load calibration functional block.
1 = Calibration functional block.

Definition at line 695 of file Nano1X2Series.h.

◆ CALWORD

__IO uint32_t ADC_T::CALWORD

CALWORD

Offset: 0x6C A/D calibration load word register

Bits Field Descriptions
[6:0] CALWORD Calibration Word Register
Write to this register with the previous calibration word before load calibration action
Read this register after calibration done
Note: The calibration block contains two parts "CALIBRATION" and "LOAD CALIBRATION"; if the calibration block is config as "CALIBRATION"; then this register represent the result of calibration when calibration is completed; if config as "LOAD CALIBRATION" ; config this register before loading calibration action, after loading calibration complete, the loaded calibration word will apply to the ADC;while in loading calibration function the loaded value will not be equal to the original CALWORD until calibration is done.

Definition at line 709 of file Nano1X2Series.h.

◆ CAPCTL

__IO uint32_t PWM_T::CAPCTL

CAPCTL

Offset: 0x54 Capture Control Register

Bits Field Descriptions
[0] INV0 Channel 0 Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer
[1] CAPCH0EN Capture Channel 0 Transition Enable/Disable Control
0 = Capture function on channel 0 Disabled.
1 = Capture function on channel 0 Enabled.
When Enabled, Capture latched the PWM-timer value and saved to CRL0 (PWM_CRL0[15:0]) for rising latch and CFL0 (PWM_CFL0[15:0]) for falling latch.
When Disabled, Capture does not update CRL0 (PWM_CRL0[15:0]) and CFL0 (PWM_CFL0[15:0]), and disable Channel 0 Interrupt.
[2] CAPCH0PADEN Capture Input Enable Control
0 = Disable the channel 0 input capture signal from corresponding multi-function pin.
1 = Enable the channel 0 input capture signal from corresponding multi-function pin.
[3] CH0PDMAEN Channel 0 PDMA Enable Control
0 = Channel 0 PDMA function Disabled.
1 = Channel 0 PDMA function Enabled for the channel 0 captured data and transfer to memory.
[5:4] PDMACAPMOD0 Select CRL0 Or CFL0 For PDMA Transfer
00 = reserved.
01 = CRL0 will be transmitted.
10 = CFL0 will be transmitted.
11 = Both CRL0 and CFL0 will be transmitted.
[6] CAPRELOADREN0 Reload CNR0 When CH0 Capture Rising Event Comes
0 = Rising capture reload for CH0 Disabled.
1 = Rising capture reload for CH0 Enabled.
[7] CAPRELOADFEN0 Reload CNR0 When CH0 Capture Falling Event Comes
0 = Falling capture reload for CH0 Disabled.
1 = Falling capture reload for CH0 Enabled.
[8] INV1 Channel 1 Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer
[9] CAPCH1EN Capture Channel 1 Transition Enable/Disable Control
0 = Capture function on channel 1 Disabled.
1 = Capture function on channel 1 Enabled.
When Enabled, Capture latched the PMW-counter and saved to CRL1 (PWM_CRL1[15:0]) for rising latch and CFL1 (PWM_CFL1[15:0]) for falling latch.
When Disabled, Capture does not update CRL1 (PWM_CRL1[15:0]) and CFL1 (PWM_CFL1[15:0]), and disable Channel 1 Interrupt.
[10] CAPCH1PADEN Capture Input Enable Control
0 = Disable the channel 1 input capture signal from corresponding multi-function pin.
1 = Enable the channel 1 input capture signal from corresponding multi-function pin.
[12] CH0RFORDER Channel 0 capture order control
Set this bit to determine whether the PWM_CRL0 or PWM_CFL0 is the first captured data transferred to memory through PDMA when PDMACAPMOD0 =2'b11.
0 = PWM_CFL0 is the first captured data to memory.
1 = PWM_CRL0 is the first captured data to memory.
[13] CH01CASK Cascade channel 0 and channel 1 PWM timer for capturing usage
[14] CAPRELOADREN1 Reload CNR1 When CH1 Capture Rising Event Comes
0 = Rising capture reload for CH1 Disabled.
1 = Rising capture reload for CH1 Enabled.
[15] CAPRELOADFEN1 Reload CNR1 When CH1 Capture Falling Event Coming
0 = Capture falling reload for CH1 Disabled.
1 = Capture falling reload for CH1 Enabled.
[16] INV2 Channel 2 Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer
[17] CAPCH2EN Capture Channel 2 Transition Enable/Disable Control
0 = Capture function on channel 2 Disabled.
1 = Capture function on channel 2 Enabled.
When Enabled, Capture latched the PWM-timer value and saved to CRL2 (PWM_CRL2[15:0]) for rising latch and CFL2 (PWM_CFL2[15:0]) for falling latch.
When Disabled, Capture does not update CRL2 (PWM_CRL2[15:0]) and CFL2 (PWM_CFL2[15:0]), and disable Channel 2 Interrupt.
[18] CAPCH2PADEN Capture Input Enable Control
0 = Disable the channel 2 input capture signal from corresponding multi-function pin.
1 = Enable the channel 2 input capture signal from corresponding multi-function pin.
[19] CH2PDMAEN Channel 2 PDMA Enable Control
0 = Channel 2 PDMA function Disabled.
1 = Channel 2 PDMA function Enabled for the channel 2 captured data and transfer to memory.
[21:20] PDMACAPMOD2 Select CRL2 Or CFL2 For PDMA Transfer
00 = reserved.
01 = CRL2 will be transmitted.
10 = CFL2 will be transmitted.
11 = Both CRL2 and CFL2 will be transmitted.
[22] CAPRELOADREN2 Reload CNR2 When CH2 Capture Rising Event Coming
0 = Rising capture reload for CH2 Disabled.
1 = Rising capture reload for CH2 Enabled.
[23] CAPRELOADFEN2 Reload CNR2 When CH2 Capture Failing Event Coming
0 = Failing capture reload for CH2 Disabled.
1 = Failing capture reload for CH2 Enabled.
[24] INV3 Channel 3 Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer
[25] CAPCH3EN Capture Channel 3 Transition Enable/Disable Control
0 = Capture function on channel 3 Disabled.
1 = Capture function on channel 3 Enabled.
When Enabled, Capture latched the PMW-timer and saved to CRL3 (PWM_CRL3[15:0]) for rising latch and CFL3 (PWM_CFL3[15:0]) for falling latch.
When Disabled, Capture does not update CRL3 (PWM_CRL3[15:0]) and CFL3 (PWM_CFL3[15:0]), and disable Channel 3 Interrupt.
[26] CAPCH3PADEN Capture Input Enable Control
0 = Disable the channel 3 input capture signal from corresponding multi-function pin.
1 = Enable the channel 3 input capture signal from corresponding multi-function pin.
[28] CH2RFORDER Channel 2 capture order control
Set this bit to determine whether the PWM_CRL2 or PWM_CFL2 is the first captured data transferred to memory through PDMA when PDMACAPMOD2 = 2'b11.
0 = PWM_CFL2 is the first captured data to memory.
1 = PWM_CRL2 is the first captured data to memory.
[29] CH23CASK Cascade channel 2 and channel 3 PWM counter for capturing usage
[30] CAPRELOADREN3 Reload CNR3 When CH3 Rising Capture Event Comes
0 = Rising capture reload for CH3 Disabled.
1 = Rising capture reload for CH3 Enabled.
[31] CAPRELOADFEN3 Reload CNR3 When CH3 Falling Capture Event Comes
0 = Falling capture reload for CH3 Disabled.
1 = Falling capture reload for CH3 Enabled.

Definition at line 6296 of file Nano1X2Series.h.

◆ CAPINTEN

__IO uint32_t PWM_T::CAPINTEN

CAPINTEN

Offset: 0x58 Capture interrupt enable Register

Bits Field Descriptions
[0] CRL_IE0 Channel 0 Rising Latch Interrupt Enable ON/OFF
0 = Rising latch interrupt Disabled.
1 = Rising latch interrupt Enabled.
When Enabled, if Capture detects Channel 0 has rising transition, Capture issues an Interrupt.
[1] CFL_IE0 Channel 0 Falling Latch Interrupt Enable ON/OFF
0 = Falling latch interrupt Disabled.
1 = Falling latch interrupt Enabled.
When Enabled, if Capture detects Channel 0 has falling transition, Capture issues an Interrupt.
[8] CRL_IE1 Channel 1 Rising Latch Interrupt Enable Control
0 = Rising latch interrupt Disabled.
1 = Rising latch interrupt Enabled.
When Enabled, if Capture detects Channel 1 has rising transition, Capture issues an Interrupt.
[9] CFL_IE1 Channel 1 Falling Latch Interrupt Enable Control
0 = Falling latch interrupt Disabled.
1 = Falling latch interrupt Enabled.
When Enabled, if Capture detects Channel 1 has falling transition, Capture issues an Interrupt.
[16] CRL_IE2 Channel 2 Rising Latch Interrupt Enable ON/OFF
0 = Rising latch interrupt Disabled.
1 = Rising latch interrupt Enabled.
When Enabled, if Capture detects Channel 2 has rising transition, Capture issues an Interrupt.
[17] CFL_IE2 Channel 2 Falling Latch Interrupt Enable ON/OFF
0 = Falling latch interrupt Disabled.
1 = Falling latch interrupt Enabled.
When Enabled, if Capture detects Channel 2 has falling transition, Capture issues an Interrupt.
[24] CRL_IE3 Channel 3 Rising Latch Interrupt Enable ON/OFF
0 = Rising latch interrupt Disabled.
1 = Rising latch interrupt Enabled.
When Enabled, if Capture detects Channel 3 has rising transition, Capture issues an Interrupt.
[25] CFL_IE3 Channel 3 Falling Latch Interrupt Enable ON/OFF
0 = Falling latch interrupt Disabled.
1 = Falling latch interrupt Enabled.
When Enabled, if Capture detects Channel 3 has falling transition, Capture issues an Interrupt.

Definition at line 6338 of file Nano1X2Series.h.

◆ CAPINTSTS

__IO uint32_t PWM_T::CAPINTSTS

CAPINTSTS

Offset: 0x5C Capture Interrupt Indication Register

Bits Field Descriptions
[0] CAPIF0 Capture0 Interrupt Indication Flag
If channel 0 rising latch interrupt (CRL_IE0, PWM_CAPINTEN[0]) is enabled, a rising transition occurs at input channel 0 will result in CAPIF0 to high; Similarly, a falling transition will cause CAPIF0 to be set high if channel 0 falling latch interrupt (CFL_IE0, PWM_CAPINTEN[1]) is enabled.
This flag is cleared by software with a write 1 on it.
[1] CRLI0 PWM_CRL0 Latched Indicator Bit
When input channel 0 has a rising transition, PWM0_CRL0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[2] CFLI0 PWM_CFL0 Latched Indicator Bit
When input channel 0 has a falling transition, PWM0_CFL0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[3] CAPOVR0 Capture Rising Flag Over Run For Channel 0
This flag indicate CRL0 update faster than software reading it when it is set
This bit will be cleared automatically when user clears CRLI0 (PWM_CAPINTSTS[1]).
[4] CAPOVF0 Capture Falling Flag Over Run For Channel 0
This flag indicate CFL0 update faster than software read it when it is set
This bit will be cleared automatically when user clear CFLI0 (PWM_CAPINTSTS[2])
[8] CAPIF1 Capture1 Interrupt Indication Flag
If channel 1 rising latch interrupt (CRL_IE1, PWM_CAPINTEN[8]) is enabled, a rising transition occurs at input channel 1 will result in CAPIF1 to high; Similarly, a falling transition will cause CAPIF1 to be set high if channel 1 falling latch interrupt (CFL_IE1, PWM_CAPINTEN[9]) is enabled.
This flag is cleared by software with a write 1 on it.
[9] CRLI1 PWM_CRL1 Latched Indicator Bit
When input channel 1 has a rising transition, PWM_CRL1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[10] CFLI1 PWM_CFL1 Latched Indicator Bit
When input channel 1 has a falling transition, PWM_CFL1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[11] CAPOVR1 Capture Rising Flag Over Run For Channel 1
This flag indicate CRL1 update faster than software reading it when it is set
This bit will be cleared automatically when user clear CRLI1 (PWM_CAPINTSTS[9])
[12] CAPOVF1 Capture Falling Flag Over Run For Channel 1
This flag indicate CFL1 update faster than software reading it when it is set
This bit will be cleared automatically when user clear CFLI1 (PWM_CAPINTSTS[10])
[16] CAPIF2 Capture2 Interrupt Indication Flag
If channel 2 rising latch interrupt (CRL_IE2, PWM_CAPINTEN[16]) is enabled, a rising transition occurs at input channel 2 will result in CAPIF2 to high; Similarly, a falling transition will cause CAPIF2 to be set high if channel 2 falling latch interrupt (CFL_IE2, PWM_CAPINTEN[17]) is enabled.
This flag is cleared by software with a write 1 on it.
[17] CRLI2 PWM_CRL2 Latched Indicator Bit
When input channel 2 has a rising transition, PWM0_CRL2 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[18] CFLI2 PWM_CFL2 Latched Indicator Bit
When input channel 2 has a falling transition, PWM0_CFL2 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[19] CAPOVR2 Capture Rising Flag Over Run For Channel 2
This flag indicate CRL2 update faster than software reading it when it is set
This bit will be cleared automatically when user clear CRLI2 (PWM_CAPINTSTS[17])
[20] CAPOVF2 Capture Falling Flag Over Run For Channel 2
This flag indicate CFL2 update faster than software reading it when it is set
This bit will be cleared automatically when user clear CFLI2 (PWM_CAPINTSTS[18])
[24] CAPIF3 Capture3 Interrupt Indication Flag
If channel 3 rising latch interrupt (CRL_IE3, PWM_CAPINTEN[24]) is enabled, a rising transition occurs at input channel 3 will result in CAPIF3 to high; Similarly, a falling transition will cause CAPIF3 to be set high if channel 3 falling latch interrupt (CFL_IE3, PWM_CAPINTEN[25]) is enabled.
This flag is cleared by software with a write 1 on it.
[25] CRLI3 PWM_CRL3 Latched Indicator Bit
When input channel 3 has a rising transition, PWM_CRL3 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[26] CFLI3 PWM_CFL3 Latched Indicator Bit
When input channel 3 has a falling transition, PWM_CFL3 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it.
[27] CAPOVR3 Capture Rising Flag Over Run For Channel 3
This flag indicate CRL3update faster than software reading it when it is set
This bit will be cleared automatically when user clear CRLI3 (PWM_CAPINTSTS[25])
[28] CAPOVF3 Capture Falling Flag Over Run For Channel 3
This flag indicate CFL3 update faster than software reading it when it is set
This bit will be cleared automatically when user clear CFLI3 (PWM_CAPINTSTS[26])

Definition at line 6400 of file Nano1X2Series.h.

◆ CAR

__IO uint32_t RTC_T::CAR

CAR

Offset: 0x20 Calendar Alarm Register

Bits Field Descriptions
[3:0] 1DAY 1 Day Calendar Digit of Alarm Setting (0~9)
[5:4] 10DAY 10 Day Calendar Digit of Alarm Setting (0~3)
[11:8] 1MON 1 Month Calendar Digit of Alarm Setting (0~9)
[12] 10MON 10 Month Calendar Digit of Alarm Setting (0~1)
[19:16] 1YEAR 1 Year Calendar Digit of Alarm Setting (0~9)
[23:20] 10YEAR 10 Year Calendar Digit of Alarm Setting (0~9)

Definition at line 7216 of file Nano1X2Series.h.

◆ CBCR

__I uint32_t PDMA_T::CBCR

CBCR

Offset: 0x1C PDMA Current Transfer Byte Count Register

Bits Field Descriptions
[23:0] PDMA_CBCR PDMA Current Byte Count Register (Read Only)
This field indicates the current remained byte count of PDMA.
Note: These fields will be changed when PDMA finish data transfer (data transfer to destination address),

Definition at line 2192 of file Nano1X2Series.h.

◆ CDAR

__I uint32_t PDMA_T::CDAR

CDAR

Offset: 0x18 PDMA Current Destination Address Register

Bits Field Descriptions
[31:0] PDMA_CDAR PDMA Current Destination Address Register (Read Only)
This field indicates the destination address where the PDMA transfer is just occurring.

Definition at line 2179 of file Nano1X2Series.h.

◆ CFL0

__I uint32_t PWM_T::CFL0

CFL0

Offset: 0x64 Capture Falling Latch Register (Channel 0)

Bits Field Descriptions
[15:0] CFL Capture Falling Latch Register
Latch the PWM counter when Channel 0/1/2/3 has Falling transition.
[31:16] CFL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit,

Definition at line 6428 of file Nano1X2Series.h.

◆ CFL1

__I uint32_t PWM_T::CFL1

CFL1

Offset: 0x6C Capture Falling Latch Register (Channel 1)

Bits Field Descriptions
[15:0] CFL Capture Falling Latch Register
Latch the PWM counter when Channel 0/1/2/3 has Falling transition.
[31:16] CFL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit,

Definition at line 6456 of file Nano1X2Series.h.

◆ CFL2

__I uint32_t PWM_T::CFL2

CFL2

Offset: 0x74 Capture Falling Latch Register (Channel 2)

Bits Field Descriptions
[15:0] CFL Capture Falling Latch Register
Latch the PWM counter when Channel 0/1/2/3 has Falling transition.
[31:16] CFL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit,

Definition at line 6484 of file Nano1X2Series.h.

◆ CFL3

__I uint32_t PWM_T::CFL3

CFL3

Offset: 0x7C Capture Falling Latch Register (Channel 3)

Bits Field Descriptions
[15:0] CFL Capture Falling Latch Register
Latch the PWM counter when Channel 0/1/2/3 has Falling transition.
[31:16] CFL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit,

Definition at line 6512 of file Nano1X2Series.h.

◆ CHECKSUM

__I uint32_t DMA_CRC_T::CHECKSUM

CHECKSUM

Offset: 0x88 DMA CRC Check Sum Register

Bits Field Descriptions
[31:0] CRC_CHECKSUM CRC Checksum Register
This field indicates the CRC checksum

Definition at line 1912 of file Nano1X2Series.h.

◆ CHEN

__IO uint32_t ADC_T::CHEN

CHEN

Offset: 0x4C A/D Channel Enable Register

Bits Field Descriptions
[0] CHEN0 Analog Input Channel 0 Enable Control (Convert Input Voltage From PA.0 )
0 = Disabled.
1 = Enabled.
If more than one channel in single mode is enabled by software, the least channel is converted and other enabled channels will be ignored.
[1] CHEN1 Analog Input Channel 1 Enable Control (Convert Input Voltage From PA.1 )
0 = Disabled.
1 = Enabled.
[2] CHEN2 Analog Input Channel 2 Enable Control (Convert Input Voltage From PA.2 )
0 = Disabled.
1 = Enabled.
[3] CHEN3 Analog Input Channel 3 Enable Control (Convert Input Voltage From PA.3 )
0 = Disabled.
1 = Enabled.
[4] CHEN4 Analog Input Channel 4 Enable Control (Convert Input Voltage From PA.4 )
0 = Disabled.
1 = Enabled.
[5] CHEN5 Analog Input Channel 5 Enable Control (Convert Input Voltage From PA.5 )
0 = Disabled.
1 = Enabled.
[6] CHEN6 Analog Input Channel 6 Enable Control (Convert Input Voltage From PA.6 )
0 = Disabled.
1 = Enabled.
[7] CHEN7 Analog Input Channel 7 Enable Control (Convert Input Voltage From PA.7 )
0 = Disabled.
1 = Enabled.
[14] CHEN14 Analog Input Channel 14 Enable Control (Convert VTEMP)
0 = Disabled.
1 = Enabled.
[15] CHEN15 Analog Input Channel 15 Enable Control (Convert Int_VREF)
0 = Disabled.
1 = Enabled.
[16] CHEN16 Analog Input Channel 16 Enable Control (Convert AVDD)
0 = Disabled.
1 = Enabled.
[17] CHEN17 Analog Input Channel 17 Enable Control (Convert AVSS)
0 = Disabled.
1 = Enabled.

Definition at line 529 of file Nano1X2Series.h.

◆ CLKDIV

__IO uint32_t SPI_T::CLKDIV

CLKDIV

Offset: 0x08 SPI Clock Divider Register

Bits Field Descriptions
[7:0] DIVIDER1 Clock Divider 1
The value is the 1th frequency divider of the PCLK to generate the serial clock of SPI_SCLK.
The desired frequency is obtained according to the following equation: fsclk = feclk / (DIVIDER1 + 1)
Where feclk is the SPI peripheral clock source.
It is defined in the CLK_SEL2[21:20] in Clock control section (CLK_BA + 0x18).
[23:16] DIVIDER2 Clock Divider 2
The value is the 2nd frequency divider of the PCLK to generate the serial clock of SPI_SCLK.
The desired frequency is obtained according to the following equation: fsclk = feclk / (DIVIDER2 + 1)

Definition at line 8625 of file Nano1X2Series.h.

◆ CLKDIV0

__IO uint32_t CLK_T::CLKDIV0

CLKDIV0

Offset: 0x1C Clock Divider Number Register 0

Bits Field Descriptions
[3:0] HCLK_N HCLK Clock Divide Number From HCLK Clock Source
The HCLK clock frequency = (HCLK Clock Source frequency) / (HCLK_N + 1).
[11:8] UART_N UART Clock Divide Number From UART Clock Source
The UART clock frequency = (UART Clock Source frequency ) / (UART_N + 1).
[23:16] ADC_N ADC Clock Divide Number From ADC Clock Source
The ADC clock frequency = (ADC Clock Source frequency ) / (ADC_N + 1).
[31:28] SC0_N SC 0 Clock Divide Number From SC 0 Clock Source
The SC 0 clock frequency = (SC0 Clock Source frequency ) / (SC0_N + 1).

Definition at line 1247 of file Nano1X2Series.h.

◆ CLKDIV1

__IO uint32_t CLK_T::CLKDIV1

CLKDIV1

Offset: 0x20 Clock Divider Number Register 1

Bits Field Descriptions
[3:0] SC1_N SC 1 Clock Divide Number From SC 1 Clock Source
The SC 1 clock frequency = (SC 1 Clock Source frequency ) / (SC1_N + 1).
[11:8] TMR0_N Timer0 Clock Divide Number From Timer0 Clock Source
The Timer0 clock frequency = (Timer0 Clock Source frequency ) / (TMR0_N + 1).
[15:12] TMR1_N Timer1 Clock Divide Number From Timer1 Clock Source
The Timer1 clock frequency = (Timer1 Clock Source frequency ) / (TMR1_N + 1).
[19:16] TMR2_N Timer2 Clock Divide Number From Timer2 Clock Source
The Timer2 clock frequency = (Timer2 Clock Source frequency ) / (TMR2_N + 1).
[23:20] TMR3_N Timer3 Clock Divide Number From Timer3 Clock Source
The Timer3 clock frequency = (Timer3 Clock Source frequency ) / (TMR3_N + 1).

Definition at line 1267 of file Nano1X2Series.h.

◆ CLKSEL

__IO uint32_t PWM_T::CLKSEL

CLKSEL

Offset: 0x04 PWM Clock Select Register

Bits Field Descriptions
[2:0] CLKSEL0 Timer 0 Clock Source Selection
Select clock input for timer 0.
(Table is the same as CLKSEL3)
[6:4] CLKSEL1 Timer 1 Clock Source Selection
Select clock input for timer 1.
(Table is the same as CLKSEL3)
[10:8] CLKSEL2 Timer 2 Clock Source Selection
Select clock input for timer 2.
(Table is the same as CLKSEL3)
[14:12] CLKSEL3 Timer 3 Clock Source Selection
Select clock input for timer 3.
000 = input clock is divided by 2.
001 = input clock is divided by 4.
010 = input clock is divided by 8.
011 = input clock is divided by 16.
100 = input clock is divided by 1.

Definition at line 5784 of file Nano1X2Series.h.

◆ CLKSEL0

__IO uint32_t CLK_T::CLKSEL0

CLKSEL0

Offset: 0x10 Clock Source Select Control Register 0

Bits Field Descriptions
[2:0] HCLK_S HCLK Clock Source Selection
This is a protected register. Please refer to open lock sequence to program it.
Note: Before Clock Source switches, the related clock sources (pre-select and new-select) must be turn on
The 3-bit default value is reloaded with the value of CFOSC (Config0[26:24]) in user configuration register in Flash controller by any reset.
Therefore the default value is either 000b or 111b.
000 = HXT
001 = LXT
010 = PLL Clock
011 = LIRC
111 = HIRC
Others = Reserved

Definition at line 1134 of file Nano1X2Series.h.

◆ CLKSEL1

__IO uint32_t CLK_T::CLKSEL1

CLKSEL1

Offset: 0x14 Clock Source Select Control Register 1

Bits Field Descriptions
[1:0] UART_S UART 0/1 Clock Source Selection (UART0 And UART1 Use The Same Clock Source Selection)
00 = HXT
01 = LXT
10 = PLL Clock
11 = HIRC
[5:4] PWM0_CH01_S PWM0 Channel 0 And Channel 1 Clock Source Selection
PWM0 channel 0 and channel 1 use the same Engine clock source, both of them with the same prescaler
00 = HXT
01 = LXT
10 = HCLK
11 = HIRC
[7:6] PWM0_CH23_S PWM0 Channel 2 And Channel 3 Clock Source Selection
PWM0 channel 2 and channel 3 use the same Engine clock source, both of them with the same prescaler
00 = HXT
01 = LXT
10 = HCLK
11 = HIRC
[10:8] TMR0_S Timer0 Clock Source Selection
000 = HXT
001 = LXT
010 = LIRC
011 = External Pin
100 = HIRC
Others = HCLK
[14:12] TMR1_S Timer1 Clock Source Selection
000 = HXT
001 = LXT
010 = LIRC
011 = External Pin
100 = HIRC
Others = HCLK
[18] LCD_S LCD Clock Source Selection
0 = Clock Source from LXT.
1 = Reserved.
[21:19] ADC_S ADC Clock Source Selection
000 = HXT
001 = LXT
010 = PLL clock
011 = HIRC
others = HCLK

Definition at line 1184 of file Nano1X2Series.h.

◆ CLKSEL2

__IO uint32_t CLK_T::CLKSEL2

CLKSEL2

Offset: 0x18 Clock Source Select Control Register 2

Bits Field Descriptions
[1:0] FRQDIV1_S Clock Divider Clock1 Source Selection
00 = HXT
01 = LXT
10 = HCLK
11 = HIRC
[3:2] FRQDIV0_S Clock Divider0 Clock Source Selection
00 = HXT
01 = LXT
10 = HCLK
11 = HIRC
[10:8] TMR2_S Timer2 Clock Source Selection
000 = HXT
001 = LXT
010 = LIRC
011 = External Pin
100 = HIRC
Others = HCLK
[14:12] TMR3_S Timer3 Clock Source Selection
000 = HXT
001 = LXT
010 = LIRC
011 = External Pin
100 = HIRC
Others = HCLK
[19:18] SC_S SC Clock Source Selection
00 = HXT
01 = PLL Clock
10 = HIRC
11 = HCLK
[20] SPI0_S SPI0 Clock Source Selection
0 = PLL.
1 = HCLK.
[21] SPI1_S SPI1 Clock Source Selection
0 = PLL.
1 = HCLK.

Definition at line 1229 of file Nano1X2Series.h.

◆ CLKSTATUS

__I uint32_t CLK_T::CLKSTATUS

CLKSTATUS

Offset: 0x0C Clock status monitor Register

Bits Field Descriptions
[0] HXT_STB HXT Clock Source Stable Flag
0 = HXT clock is not stable or not enable.
1 = HXT clock is stable.
[1] LXT_STB LXT Clock Source Stable Flag
0 = LXT clock is not stable or not enable.
1 = LXT clock is stable.
[2] PLL_STB PLL Clock Source Stable Flag
0 = PLL clock is not stable or not enable.
1 = PLL clock is stable.
[3] LIRC_STB LIRC Clock Source Stable Flag
0 = LIRC clock is not stable or not enable.
1 = LIRC clock is stable.
[4] HIRC_STB HIRC Clock Source Stable Flag
0 = HIRC clock is not stable or not enable.
1 = HIRC clock is stable.
[7] CLK_SW_FAIL Clock Switch Fail Flag
0 = Clock switch success.
1 = Clock switch fail.
This bit will be set when target switch Clock Source is not stable. This bit is write 1 clear

Definition at line 1113 of file Nano1X2Series.h.

◆ CLR

__IO uint32_t RTC_T::CLR

CLR

Offset: 0x10 Calendar Loading Register

Bits Field Descriptions
[3:0] 1DAY 1 Day Calendar Digit (0~9)
[5:4] 10DAY 10 Day Calendar Digit (0~3)
[11:8] 1MON 1 Month Calendar Digit (0~9)
[12] 10MON 10 Month Calendar Digit (0~1)
[19:16] 1YEAR 1 Year Calendar Digit (0~9)
[23:20] 10YEAR 10 Year Calendar Digit (0~9)

Definition at line 7152 of file Nano1X2Series.h.

◆ CMPR

__IO uint32_t TIMER_T::CMPR

CMPR

Offset: 0x08 Timer x Compare Register

Bits Field Descriptions
[23:0] TMR_CMP Timer Compared Value
TMR_CMP is a 24-bit compared register.
When the internal 24-bit up-counter counts and its value is equal to TMR_CMP value, a Timer Interrupt is requested if the timer interrupt is enabled with TMR_EN (TMRx_CTL [0]) is enabled.
The TMR_CMP value defines the timer counting cycle time.
Time-out period = (Period of timer clock input) * (8-bit PRESCALE_CNT + 1) * (24-bit TMR_CMP).
Note1: Never write 0x0 or 0x1 in TMR_CMP, or the core will run into unknown state.
Note2: No matter TMR_EN (TMRx_CTL [0]) is 0 or 1, whenever software write a new value into this register, TIMER will restart counting using this new value and abort previous count.

Definition at line 9208 of file Nano1X2Series.h.

◆ CMPR0

__IO uint32_t ADC_T::CMPR0

CMPR0

Offset: 0x50 A/D Compare Register 0

Bits Field Descriptions
[0] CMPEN Compare Enable
0 = Compare Disabled.
1 = Compare Enabled.
Set this bit to 1 to enable compare CMPD[11:0] with specified channel conversion result when converted data is loaded into ADC_RESULTx register.
When this bit is set to 1, and CMPMATCNT is 0, the CMPF will be set once the match is hit
[1] CMPIE Compare Interrupt Enable
0 = Compare function interrupt Disabled.
1 = Compare function interrupt Enabled.
If the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMATCNT, CMPF bit will be asserted, in the meanwhile, if CMPIE is set to 1, a compare interrupt request is generated.
[2] CMPCOND Compare Condition
0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase one.
1 = Set the compare condition as that when a 12-bit A/D conversion result is greater or equal to the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase by one.
Note: When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set.
[7:3] CMPCH Compare Channel Selection
This field selects the channel whose conversion result is selected to be compared.
[11:8] CMPMATCNT Compare Match Count
When the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2], the internal match counter will increase 1.
When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set.
[27:16] CMPD Comparison Data
The 12 bits data is used to compare with conversion result of specified channel.
Software can use it to monitor the external analog input pin voltage variation in scan mode without imposing a load on software.

Definition at line 560 of file Nano1X2Series.h.

◆ CMPR1

__IO uint32_t ADC_T::CMPR1

CMPR1

Offset: 0x54 A/D Compare Register 1

Bits Field Descriptions
[0] CMPEN Compare Enable
0 = Compare Disabled.
1 = Compare Enabled.
Set this bit to 1 to enable compare CMPD[11:0] with specified channel conversion result when converted data is loaded into ADC_RESULTx register.
When this bit is set to 1, and CMPMATCNT is 0, the CMPF will be set once the match is hit
[1] CMPIE Compare Interrupt Enable
0 = Compare function interrupt Disabled.
1 = Compare function interrupt Enabled.
If the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMATCNT, CMPF bit will be asserted, in the meanwhile, if CMPIE is set to 1, a compare interrupt request is generated.
[2] CMPCOND Compare Condition
0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase one.
1 = Set the compare condition as that when a 12-bit A/D conversion result is greater or equal to the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase by one.
Note: When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set.
[7:3] CMPCH Compare Channel Selection
This field selects the channel whose conversion result is selected to be compared.
[11:8] CMPMATCNT Compare Match Count
When the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2], the internal match counter will increase 1.
When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set.
[27:16] CMPD Comparison Data
The 12 bits data is used to compare with conversion result of specified channel.
Software can use it to monitor the external analog input pin voltage variation in scan mode without imposing a load on software.

Definition at line 591 of file Nano1X2Series.h.

◆ CON

__IO uint32_t I2C_T::CON

CON

Offset: 0x00 I2C Control Register

Bits Field Descriptions
[0] IPEN I2C Function Enable Control
0 = I2C function Disabled.
1 = I2C function Enabled.
[1] ACK Assert Acknowledge Control Bit
0 = When this bit is set to 0 prior to address or data received, a Not acknowledged (high level to SDA) will be returned during the acknowledge clock pulse.
1 = When this bit is set to 1 prior to address or data received, an acknowledged will be returned during the acknowledge clock pulse on the SCL line when:
(a): A slave is acknowledging the address sent from master.
(b): The receiver devices are acknowledging the data sent by transmitter.
[2] STOP I2C STOP Control Bit
In Master mode, set this bit to 1 to transmit a STOP condition to bus then the controller will check the bus condition if a STOP condition is detected and this bit will be cleared by hardware automatically.
In Slave mode, set this bit to 1 to reset the controller to the defined "not addressed" Slave mode.
This means it is NO LONGER in the slave receiver mode to receive data from the master transmit device.
0 = Will be cleared by hardware automatically if a STOP condition is detected.
1 = Sends a STOP condition to bus in Master mode or reset the controller to "not addressed" in Slave mode.
[3] START I2C START Command
Setting this bit to 1 to enter Master mode, the device sends a START or repeat START condition to bus when the bus is free and it will be cleared to 0 after the START command is active and the STATUS has been updated.
0 = After START or repeat START is active.
1 = Sends a START or repeat START condition to bus.
[4] I2C_STS I2C Status
When a new state is present in the I2CSTATUS register, if the INTEN bit is set, the I2C interrupt is requested.
It must write one by software to this bit after the I2CINTSTS[0] is set to 1 and the I2C protocol function will go ahead until the STOP is active or the IPEN is disabled.
0 = I2C's Status disabled and the I2C protocol function will go ahead.
1 = I2C's Status active.
[7] INTEN Interrupt Enable Control
0 = I2C interrupt Disabled.
1 = I2C interrupt Enabled.

Definition at line 4928 of file Nano1X2Series.h.

◆ CON2

__IO uint32_t I2C_T::CON2

CON2

Offset: 0x40 I2C Control Register 2

Bits Field Descriptions
[0] WKUPEN I2C Wake-Up Function Enable Control
0 = I2C wake-up function Disabled.
1 = I2C wake-up function Enabled.
[1] OVER_INTEN I2C OVER RUN Interrupt Control Bit
0 = Overrun event interrupt Disabled.
1 = Send a interrupt to system when the TWOFF bit is enabled and there is over run event in received fifo.
[2] UNDER_INTEN I2C UNDER RUN Interrupt Control Bit
0 = Under run event interrupt Disabled.
1 = Send a interrupt to system when the TWOFF bit is enabled and there is under run event happened in transmitted fifo.
[4] TWOFF_EN TWO LEVEL FIFO Enable Control
0 = Disabled.
1 = Enabled.
[5] NOSTRETCH NO STRETCH The I2C BUS
0 = The I2C SCL bus is stretched by hardware if the INTSTS (I2CINTSTS[0]) is not cleared in master mode.
1 = The I2C SCL bus is not stretched by hardware if the INTSTS is not cleared in master mode.

Definition at line 5093 of file Nano1X2Series.h.

◆ CR [1/3]

__IO uint32_t ACMP_T::CR[2]

CR0/1

Offset: 0x00,0x04 Analog Comparator 0/1 Control Register

Bits Field Descriptions
[0] ACMPEN Comparator ACMP0/1 Enable Control
0 = Disabled.
1 = Enabled.
Note: Comparator output needs to wait 10 us stable time after ACMPEN(ACMP0EN/ACMP1EN) is set.
[1] ACMPIE Comparator ACMP Interrupt Enable Control
0 = ACMP interrupt function Disabled.
1 = ACMP interrupt function Enabled.
Note: Interrupt generated if ACMPIE(ACMP0IE/ACMP1IE) bit is set to "1" after ACMP0/1 output changed.
[2] ACMP_HYSEN Comparator ACMP0/1 Hysteresis Enable Control
0 = ACMP0 Hysteresis function Disabled.
1 = ACMP0 Hysteresis function Enabled. The typical range is 20mV.
[5:4] CN Comparator ACMP0/1 Negative Input Selection
00 = The comparator reference pin ACMP0/1_N is selected as the negative comparator input.
01 = The internal comparator reference voltage (CRV) is selected as the negative comparator input.
10 = The internal reference voltage (Int_VREF) is selected as the negative comparator input.
11 = The AGND is selected as the negative comparator input.
[16] ACMP0_EX Comparator ACMP0 Swap
0 = No swap to the comparator inputs and output.
1 = Swap the comparator inputs with ACMP0_Px and ACMP0_N, and invert the polarity of comparator 0 output.
Note: This bit swaps the comparator inputs and inverts the comparator output.
[19] ACOMP0_PN_AutoEx Comparator Analog ACMP0_Px & ACMP0_N Input Swap Function Automatically
This bit is only for sigma-delta ADC mode use.
0 = Disabled to swap comparator ACMP0 input function, ACMP0_Px and ACMP0_N, automatically.
1 = Enabled to swap comparator ACMP0 input function, ACMP0_Px and ACMP0_N, automatically.
[20] ACMP0_FILTER Comparator ACMP0 Output Filter
0 = Comparator ACMP0 output is not filtered by internal RC filter.
1 = Comparator ACMP0 output is filtered by internal RC filter.
[21] CPO0_SEL Comparator ACMP0 Output To Timer Path Selection
0 = Comparator ACMP0 output to Timer is through internal path.
1 = Comparator ACMP0 output to Timer is through external pin (through PF.4).
[30:29] CPP0SEL Comparator ACMP0 Positive Input Selection
00 = Input from PA.4.
01 = Input from PA.3.
10 = Input from PA.2.
11 = Input from PA.1.
[31] ACMP_WKEUP_EN Comparator ACMP0/1 Wake-Up Enable Control
0 = Wake-up function Disabled.
1 = Wake-up function Enabled when the system enters Power-down mode.

Definition at line 206 of file Nano1X2Series.h.

◆ CR [2/3]

__IO uint32_t ADC_T::CR

CR

Offset: 0x48 A/D Control Register

Bits Field Descriptions
[0] ADEN A/D Converter Enable
0 = Disabled.
1 = Enabled.
Before starting A/D conversion, this bit should be set to 1.
Clear it to 0 to disable A/D converter analog circuit power consumption.
[1] ADIE A/D Interrupt Enable
0 = A/D interrupt function Disabled.
1 = A/D interrupt function Enabled.
A/D conversion end interrupt request is generated if ADIE bit is set to 1.
[3:2] ADMD A/D Converter Operation Mode
00 = Single conversion
01 = Reserved
10 = Single-cycle scan
11 = Continuous scan
[5:4] TRGS Hardware Trigger Source
This field must keep 00
Software should disable TRGE and ADST before change TRGS.
In hardware trigger mode, the ADST bit is set by the external trigger from STADC, However software has the highest priority to set or cleared ADST bit at any time.
[7:6] TRGCOND External Trigger Condition
These two bits decide external pin STADC trigger event is level or edge.
The signal must be kept at stable state at least 8 PCLKs for level trigger and 4 PCLKs at high and low state.
00 = Low level
01 = High level
10 = Falling edge
11 = Rising edge
[8] TRGE External Trigger Enable
Enable or disable triggering of A/D conversion by external STADC pin.
0 = Disabled.
1 = Enabled.
[9] PTEN PDMA Transfer Enable
0 = PDMA data transfer Disabled.
1 = PDMA data transfer in ADC_RESULT 0~17 Enabled.
When A/D conversion is completed, the converted data is loaded into ADC_RESULT 0~10, software can enable this bit to generate a PDMA data transfer request.
When PTEN=1, software must set ADIE=0 to disable interrupt.
PDMA can access ADC_RESULT 0-17 registers by block or single transfer mode.
[10] DIFF Differential Mode Selection
0 = ADC is operated in single-ended mode.
1 = ADC is operated in differential mode.
The A/D analog input ADC_CH0/ADC_CH1 consists of a differential pair.
So as ADC_CH2/ADC_CH3, ADC_CH4/ADC_CH5, ADC_CH6/ADC_CH7, ADC_CH8/ADC_CH9 and ADC_CH10/ADC_CH11.
The even channel defines as plus analog input voltage (Vplus) and the odd channel defines as minus analog input voltage (Vminus).
Differential input voltage (Vdiff) = Vplus - Vminus, where Vplus is the analog input; Vminus is the inverted analog input.
In differential input mode, only the even number of the two corresponding channels needs to be enabled in CHEN (ADCHER[11:0]).
The conversion result will be placed to the corresponding data register of the enabled channel.
Note: Calibration should calibrated each time when switching between single-ended and differential mode
[11] ADST A/D Conversion Start
0 = Conversion stopped and A/D converter enter idle state.
1 = Conversion starts.
ADST bit can be set to 1 from two sources: software write and external pin STADC.
ADST is cleared to 0 by hardware automatically at the end of single mode and single-cycle scan mode on specified channels.
In continuous scan mode, A/D conversion is continuously performed sequentially unless software writes 0 to this bit or chip reset.
Note: After ADC conversion done, SW needs to wait at least one ADC clock before to set this bit high again.
[13:12] TMSEL Select A/D Enable Time-Out Source
00 = TMR0
01 = TMR1
10 = TMR2
11 = TMR3
[15] TMTRGMOD Timer Event Trigger ADC Conversion
0 = This function Disabled.
1 = ADC Enabled by TIMER OUT event. Setting TMSEL to select timer event from timer0~3
[17:16] REFSEL Reference Voltage Source Selection
00 = Reserved
01 = Select Int_VREF as reference voltage
10 = Select VREF as reference voltage
11 = Reserved
[19:18] RESSEL Resolution Selection
00 = 6 bits
01 = 8 bits
10 = 10 bits
11 = 12 bits
[31:24] TMPDMACNT PDMA Count
When each timer event occur PDMA will transfer TMPDMACNT +1 ADC result in the amount of this register setting
Note: The total amount of PDMA transferring data should be set in PDMA byte count register.
When PDMA finish is set, ADC will not be enabled and start transfer even though the timer event occurred.

Definition at line 482 of file Nano1X2Series.h.

◆ CR [3/3]

__IO uint32_t WWDT_T::CR

CR

Offset: 0x04 Window Watchdog Timer Control Register

Bits Field Descriptions
[0] WWDTEN Window Watchdog Enable
Set this bit to enable Window Watchdog timer.
0 = Window Watchdog timer function Disabled.
1 = Window Watchdog timer function Enabled.
[11:8] PERIODSEL WWDT Pre-Scale Period Select
These three bits select the pre-scale for the WWDT counter period.
[21:16] WINCMP WWDT Window Compare Register
Set this register to adjust the valid reload window.
Note: SW only can write WWDTRLD when WWDT counter value between 0 and WINCMP.
If SW writes WWDTRLD when WWDT counter value larger than WWCMP, WWDT will generate RESET signal.
[31] DBGEN WWDT Debug Enable
0 = WWDT stopped count if system is in Debug mode.
1 = WWDT still counted even system is in Debug mode.

Definition at line 10480 of file Nano1X2Series.h.

◆ CRL0

__I uint32_t PWM_T::CRL0

CRL0

Offset: 0x60 Capture Rising Latch Register (Channel 0)

Bits Field Descriptions
[15:0] CRL Capture Rising Latch Register
Latch the PWM counter when Channel 0/1/2/3 has rising transition.
[31:16] CRL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit,

Definition at line 6414 of file Nano1X2Series.h.

◆ CRL1

__I uint32_t PWM_T::CRL1

CRL1

Offset: 0x68 Capture Rising Latch Register (Channel 1)

Bits Field Descriptions
[15:0] CRL Capture Rising Latch Register
Latch the PWM counter when Channel 0/1/2/3 has rising transition.
[31:16] CRL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit,

Definition at line 6442 of file Nano1X2Series.h.

◆ CRL2

__I uint32_t PWM_T::CRL2

CRL2

Offset: 0x70 Capture Rising Latch Register (Channel 2)

Bits Field Descriptions
[15:0] CRL Capture Rising Latch Register
Latch the PWM counter when Channel 0/1/2/3 has rising transition.
[31:16] CRL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit,

Definition at line 6470 of file Nano1X2Series.h.

◆ CRL3

__I uint32_t PWM_T::CRL3

CRL3

Offset: 0x78 Capture Rising Latch Register (Channel 3)

Bits Field Descriptions
[15:0] CRL Capture Rising Latch Register
Latch the PWM counter when Channel 0/1/2/3 has rising transition.
[31:16] CRL_H Upper Half Word Of 32-Bit Capture Data When Cascade Enabled
When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit,

Definition at line 6498 of file Nano1X2Series.h.

◆ CSAR

__I uint32_t PDMA_T::CSAR

CSAR

Offset: 0x14 PDMA Current Source Address Register

Bits Field Descriptions
[31:0] PDMA_CSAR PDMA Current Source Address Register (Read Only)
This field indicates the source address where the PDMA transfer is just occurring.

Definition at line 2167 of file Nano1X2Series.h.

◆ CSR

__IO uint32_t PDMA_T::CSR

CSR

Offset: 0x00 PDMA Control Register

Bits Field Descriptions
[0] PDMACEN PDMA Channel Enable
Setting this bit to "1" enables PDMA's operation.
If this bit is cleared, PDMA will ignore all PDMA request and force Bus Master into IDLE state.
Note: SW_RST will clear this bit.
[1] SW_RST Software Engine Reset
0 = No effect.
1 = Reset the internal state machine and pointers.
The contents of control register will not be cleared.
This bit will be auto cleared after few clock cycles.
[3:2] MODE_SEL PDMA Mode Select
00 = Memory to Memory mode (Memory-to-Memory).
01 = IP to Memory mode (APB-to-Memory)
10 = Memory to IP mode (Memory-to-APB).
11 = Reserved.
[5:4] SAD_SEL Transfer Source Address Direction Selection
00 = Transfer Source address is incremented successively.
01 = Reserved.
10 = Transfer Source address is fixed (This feature can be used when data where transferred from a single source to multiple destinations).
11 = Transfer Source address is wrap around (When the PDMA_CBCR is equal to zero, the PDMA_CSAR and PDMA_CBCR register will be updated by PDMA_SAR and PDMA_BCR automatically.
PDMA will start another transfer without software trigger until PDMA_EN disabled.
When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address).
[7:6] DAD_SEL Transfer Destination Address Direction Selection
00 = Transfer Destination address is incremented successively
01 = Reserved.
10 = Transfer Destination address is fixed (This feature can be used when data where transferred from multiple sources to a single destination)
11 = Transfer Destination address is wrapped around (When the PDMA_CBCR is equal to zero, the PDMA_CDAR and PDMA_CBCR register will be updated by PDMA_DAR and PDMA_BCR automatically.
PDMA will start another transfer without software trigger until PDMA_EN disabled.
When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address).
[12] TO_EN Time-Out Enable
This bit will enable PDMA internal counter. While this counter counts to zero, the TO_IS will be set.
0 = PDMA internal counter Disabled.
1 = PDMA internal counter Enabled.
[20:19] APB_TWS Peripheral Transfer Width Selection
00 = One word (32 bits) is transferred for every PDMA operation.
01 = One byte (8 bits) is transferred for every PDMA operation.
10 = One half-word (16 bits) is transferred for every PDMA operation.
11 = Reserved.
Note: This field is meaningful only when MODE_SEL is IP to Memory mode (APB-to-Memory) or Memory to IP mode (Memory-to-APB).
[23] TRIG_EN TRIG_EN
0 = No effect.
1 = PDMA data read or write transfer Enabled.
Note1: When PDMA transfer completed, this bit will be cleared automatically.
Note2: If the bus error occurs, all PDMA transfer will be stopped.
Software must reset all PDMA channel, and then trig again.

Definition at line 2114 of file Nano1X2Series.h.

◆ CTL [1/8]

__IO uint32_t DMA_CRC_T::CTL

CTL

Offset: 0x00 DMA CRC Control Register

Bits Field Descriptions
[0] CRCCEN CRC Channel Enable
Setting this bit to 1 enables CRC's operation.
When operating in CRC DMA mode (TRIG_EN = 1), if user clear this bit, the DMA operation will be continuous until all CRC DMA operation done, and the TRIG_EN bit will asserted until all CRC DMA operation done.
But in this case, the CRC_DMAISR [BLKD_IF] flag will inactive, user can read CRC result by reading CRC_CHECKSUM register when TRIG_EN = 0.
When operating in CRC DMA mode (TRIG_EN = 1), if user want to stop the transfer immediately, user can write 1 to CRC_RST bit to stop the transmission.
[1] CRC_RST CRC Engine Reset
0 = Writing 0 to this bit has no effect.
1 = Writing 1 to this bit will reset the internal CRC state machine and internal buffer.
The contents of control register will not be cleared.
This bit will be auto cleared after few clock cycles.
Note: When operating in CPU PIO mode, setting this bit will reload the initial seed value
[23] TRIG_EN Trigger Enable
0 = No effect.
1 = CRC DMA data read or write transfer Enabled.
Note1: If this bit assert that indicates the CRC engine operation in CRC DMA mode, so don't filled any data in CRC_WDATA register.
Note2: When CRC DMA transfer completed, this bit will be cleared automatically.
Note3: If the bus error occurs, all CRC DMA transfer will be stopped.
Software must reset all DMA channel, and then trigger again.
[24] WDATA_RVS Write Data Order Reverse
0 = No bit order reverse for CRC write data in.
1 = Bit order reverse for CRC write data in (per byre).
Note: If the write data is 0xAABBCCDD, the bit order reverse for CRC write data in is 0x55DD33BB
[25] CHECKSUM_RVS Checksum Reverse
0 = No bit order reverse for CRC checksum.
1 = Bit order reverse for CRC checksum.
Note: If the checksum data is 0XDD7B0F2E, the bit order reverse for CRC checksum is 0x74F0DEBB
[26] WDATA_COM Write Data Complement
0 = No bit order reverse for CRC write data in.
1 = 1's complement for CRC write data in.
[27] CHECKSUM_COM Checksum Complement
0 = No bit order reverse for CRC checksum.
1 = 1's complement for CRC checksum.
[29:28] CPU_WDLEN CPU Write Data Length
When operating in CPU PIO mode (CRCCEN= 1, TRIG_EN = 0), this field indicates the write data length.
00 = The data length is 8-bit mode
01 = The data length is 16-bit mode
10 = The data length is 32-bit mode
11 = Reserved
Note1: This field is only used for CPU PIO mode.
Note2: When the data length is 8-bit mode, the valid data is CRC_WDATA [7:0], and if the data length is 16 bit mode, the valid data is CRC_WDATA [15:0].
[31:30] CRC_MODE CRC Polynomial Mode
00 = CRC-CCITT Polynomial Mode
01 = CRC-8 Polynomial Mode
10 = CRC-16 Polynomial Mode
11 = CRC-32 Polynomial Mode

Definition at line 1776 of file Nano1X2Series.h.

◆ CTL [2/8]

__IO uint32_t LCD_T::CTL

CTL

Offset: 0x00 LCD Control Register

Bits Field Descriptions
[0] EN LCD Enable
0 = LCD controller operation Disabled.
1 = LCD controller operation Enabled.
[3:1] MUX Mux Select
000 = Static.
001 = 1/2 duty.
010 = 1/3 duty.
011 = 1/4 duty.
100 = 1/5 duty.
101 = 1/6 duty.
110 = Reserved.
111 = Reserved.
Note: User does not need to set PD_H_MFP bit field, but only to set the MUX bit field to switch LCD_SEG0 and LCD_SEG1 to LCD_COM4 and LCD_COM5.
[6:4] FREQ LCD Frequency Selection
000 = LCD_CLK Divided by 32.
001 = LCD_CLK Divided by 64.
010 = LCD_CLK Divided by 96.
011 = LCD_CLK Divided by 128.
100 = LCD_CLK Divided by 192.
101 = LCD_CLK Divided by 256.
110 = LCD_CLK Divided by 384.
111 = LCD_CLK Divided by 512.
[7] BLINK LCD Blinking Enable
0 = Blinking Disabled.
1 = Blinking Enabled.
[8] PDDISP_EN Power Down Display Enable
The LCD can be programmed to be displayed or not be displayed at power down state by PDDISP_EN setting.
0 = LCD display Disabled ( LCD is put out) at power down state.
1 = LCD display Enabled (LCD keeps the display) at power down state.
[9] PDINT_EN Power Down Interrupt Enable
If the power down request is triggered from system management, LCD controller will execute the frame completely to avoid the DC component.
When the frame is executed completely, the LCD power down interrupt signal is generated to inform system management that LCD controller is ready to enter power down state, if PDINT_EN is set to 1.
Otherwise, if PDINT_EN is set to 0, the LCD power down interrupt signal is blocked and the interrupt is disabled to send to system management.
0 = Power Down Interrupt Disabled.
1 = Power Down Interrupt Enabled.

Definition at line 5288 of file Nano1X2Series.h.

◆ CTL [3/8]

__IO uint32_t PWM_T::CTL

CTL

Offset: 0x08 PWM Control Register

Bits Field Descriptions
[0] CH0EN PWM-Timer 0 Enable/Disable Start Run
0 = PWM-Timer 0 Running Stopped.
1 = PWM-Timer 0 Start Run Enabled.
[2] CH0INV PWM-Timer 0 Output Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON.
[3] CH0MOD PWM-Timer 0 Continuous/One-Shot Mode
0 = One-Shot Mode.
1 = Continuous Mode.
Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY0 to be cleared.
[4] DZEN01 Dead-Zone 0 Generator Enable/Disable Control
0 = Disabled.
1 = Enabled.
Note: When Dead-Zone Generator is enabled, the pair of PWM0 and PWM1 becomes a complementary pair.
[5] DZEN23 Dead-Zone 2 Generator Enable/Disable Control
0 = Disabled.
1 = Enabled.
Note: When Dead-Zone Generator is enabled, the pair of PWM2 and PWM3 becomes a complementary pair.
[8] CH1EN PWM-Timer 1 Enable/Disable Start Run
0 = PWM-Timer 1 Running Stopped.
1 = PWM-Timer 1 Start Run Enabled.
[10] CH1INV PWM-Timer 1 Output Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON.
[11] CH1MOD PWM-Timer 1 Continuous/One-Shot Mode
0 = One-Shot Mode.
1 = Continuous Mode.
Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY1 to be cleared.
[16] CH2EN PWM-Timer 2 Enable/Disable Start Run
0 = PWM-Timer 2 Running Stopped.
1 = PWM-Timer 2 Start Run Enabled.
[18] CH2INV PWM-Timer 2 Output Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON.
[19] CH2MOD PWM-Timer 2 Continuous/One-Shot Mode
0 = One-Shot Mode.
1 = Continuous Mode.
Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY2 be cleared.
[24] CH3EN PWM-Timer 3 Enable/Disable Start Run
0 = PWM-Timer 3 Running Stopped.
1 = PWM-Timer 3 Start Run Enabled.
[26] CH3INV PWM-Timer 3 Output Inverter ON/OFF
0 = Inverter OFF.
1 = Inverter ON.
[27] CH3MOD PWM-Timer 3 Continuous/One-Shot Mode
0 = One-Shot Mode.
1 = Continuous Mode.
Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY3 to be cleared.
[30] PWMTYPE01 Channel 0,1 Counter Mode
0 = Edge-aligned Mode.
1 = Center-aligned Mode.
[31] PWMTYPE23 Channel 2,3 Counter Mode
0 = Edge-aligned Mode.
1 = Center-aligned Mode.

Definition at line 5848 of file Nano1X2Series.h.

◆ CTL [4/8]

__IO uint32_t SC_T::CTL

CTL

Offset: 0x04 SC Control Register.

Bits Field Descriptions
[0] SC_CEN SC Engine Enable
Set this bit to "1" to enable SC operation.
If this bit is cleared, SC will force all transition to IDLE state.
[1] DIS_RX RX Transition Disable
0 = Receiver Enabled.
1 = Receiver Disabled.
[2] DIS_TX TX Transition Disable
0 = Transceiver Enabled.
1 = Transceiver Disabled.
[3] AUTO_CON_EN Auto Convention Enable
0 = Auto-convention Disabled.
1 = Auto-convention Enabled.
When hardware receives TS in answer to reset state and the TS is direct convention, CON_SEL will be set to 00 automatically, otherwise if the TS is inverse convention, CON_SEL will be set to 11.
If software enables auto convention function, the setting step must be done before Answer to Reset state and the first data must be 0x3B or 0x3F.
After hardware received first data and stored it at buffer, hardware will decided the convention and change the SC_CTL[CON_SEL] register automatically.
If the first data is not 0x3B or 0x3F, hardware will generate an interrupt INT_ACON_ERR(if SC_IER [ACON_ERR_IE = "1"] to CPU.
[5:4] CON_SEL Convention Selection
00 = Direct convention.
01 = Reserved.
10 = Reserved.
11 = Inverse convention.
Note: If AUTO_CON_EN is enabled, this field must be ignored.
[7:6] RX_FTRI_LEV RX Buffer Trigger Level
When the number of bytes in the receiving buffer equals the RX_FTRI_LEV, the RDA_IF will be set (if IER [RDA_IEN] is enabled, an interrupt will be generated).
00 = INTR_RDA Trigger Level 1 byte.
01 = INTR_RDA Trigger Level 2 bytes.
10 = INTR_RDA Trigger Level 3 bytes.
11 = Reserved.
[12:8] BGT Block Guard Time (BGT)
This field indicates the counter for block guard time.
According to ISO7816-3, in T=0 mode, software must fill 15 (real block guard time = 16) to this field and in T=1 mode software must fill 21 (real block guard time = 22) to it.
In TX mode, hardware will auto hold off first character until BGT has elapsed regardless of the TX data.
In RX mode, software can enable SC_ALTCTL [RX_BGT_EN] to detect the first coming character timing.
If the incoming data timing less than BGT, an interrupt will be generated.
Note: The real block guard time is BGT + 1.
[14:13] TMR_SEL Timer Selection
00 = Disable all internal timer function.
01 = Enable internal 24 bit timer.
Software can configure it by setting SC_TMR0 [23:0].
SC_TMR1 and SC_TMR2 will be ignored in this mode.
10 = Enable internal 24 bit timer and 8 bit internal timer.
Software can configure the 24 bit timer by setting SC_TMR0 [23:0] and configure the 8 bit timer by setting SC_TMR1 [7:0].
SC_TMR2 will be ignored in this mode.
11 = Enable internal 24 bit timer and two 8 bit timers.
Software can configure them by setting SC_TMR0 [23:0], SC_TMR1 [7:0] and SC_TMR2 [7:0].
[15] SLEN Stop Bit Length
This field indicates the length of stop bit.
0 = The stop bit length is 2 ETU.
1 = The stop bit length is 1 ETU.
Note: The default stop bit length is 2.
[18:16] RX_ERETRY RX Error Retry Register
This field indicates the maximum number of receiver retries that are allowed when parity error has occurred.
Note1: The real maximum retry number is RX_ERETRY + 1, so 8 is the maximum retry number.
Note2: This field can not be changed when RX_ERETRY_EN enabled.
The change flow is to disable RX_ETRTRY_EN first and then fill new retry value.
[19] RX_ERETRY_EN RX Error Retry Enable Register
This bit enables receiver retry function when parity error has occurred.
0 = RX error retry function Disabled.
1 = RX error retry function Enabled.
Note: User must fill RX_ERETRY value before enabling this bit.
[22:20] TX_ERETRY TX Error Retry Register
This field indicates the maximum number of transmitter retries that are allowed when parity error has occurred.
Note1: The real retry number is TX_ERETRY + 1, so 8 is the maximum retry number.
Note2: This field can not be changed when TX_ERETRY_EN enabled.
The change flow is to disable TX_ETRTRY_EN first and then fill new retry value.
[23] TX_ERETRY_EN TX Error Retry Enable Register
This bit enables transmitter retry function when parity error has occurred.
0 = TX error retry function Disabled.
1 = TX error retry function Enabled.
Note: User must fill TX_ERETRY value before enabling this bit.
[25:24] CD_DEB_SEL Card Detect De-Bounce Select Register
This field indicates the card detect de-bounce selection.
This field indicates the card detect de-bounce selection.
00 = De-bounce sample card insert once per 384 (128 * 3) engine clocks and de-bounce sample card removal once per 128 engine clocks.
01 = De-bounce sample card insert once per 192 (64 * 3) engine clocks and de-bounce sample card removal once per 64 engine clocks.
10 = De-bounce sample card insert once per 96 (32 * 3) engine clocks and de-bounce sample card removal once per 32 engine clocks.
11 = De-bounce sample card insert once per 48 (16 * 3) engine clocks and de-bounce sample card removal once per 16 engine clocks.

Definition at line 7658 of file Nano1X2Series.h.

◆ CTL [5/8]

__IO uint32_t SPI_T::CTL

CTL

Offset: 0x00 SPI Control Register

Bits Field Descriptions
[0] GO_BUSY SPI Transfer Control Bit And Busy Status
0 = Writing this bit "0" will stop data transfer if SPI is transferring.
1 = In Master mode, writing "1" to this bit will start the SPI data transfer; In Slave mode, writing '1' to this bit indicates that the salve is ready to communicate with a master.
If the FIFO mode is disabled, during the data transfer, this bit keeps the value of '1'.
As the transfer is finished, this bit will be cleared automatically.
Software can read this bit to check if the SPI is in busy status.
In FIFO mode, this bit will be controlled by hardware.
Software should not modify this bit.
In slave mode, this bit always returns 1 when software reads this register.
In master mode, this bit reflects the busy or idle status of SPI.
Note1: When FIFO mode is disabled, all configurations should be set before writing "1" to the GO_BUSY bit in the SPI_CTL register.
Note2: When FIFO bit is disabled and the software uses TX or RX PDMA function to transfer data, this bit will be cleared after the PDMA controller finishes the data transfer.
[1] RX_NEG Receive At Negative Edge
0 = The received data is latched on the rising edge of SPI_SCLK.
1 = The received data is latched on the falling edge of SPI_SCLK.
[2] TX_NEG Transmit At Negative Edge
0 = The transmitted data output is changed on the rising edge of SPI_SCLK.
1 = The transmitted data output is changed on the falling edge of SPI_SCLK.
[7:3] TX_BIT_LEN Transmit Bit Length
This field specifies how many bits can be transmitted / received in one transaction.
The minimum bit length is 8 bits and can be up to 32 bits.
00000 = 32 bits are transmitted in one transaction.
01000 = 8 bits are transmitted in one transaction.
01001 = 9 bits are transmitted in one transaction.
01010 = 10 bits are transmitted in one transaction.
--—
11111 = 31 bits are transmitted in one transaction.
[10] LSB Send LSB First
0 = The MSB, which bit of transmit/receive register depends on the setting of TX_BITLEN, is transmitted/received first.
1 = The LSB, bit 0 of the SPI_TX0/1, is sent first to the the SPI data output pin, and the first bit received from the SPI data input pin will be put in the LSB position of the SPI_RX register (SPI_RX0/1).
[11] CLKP Clock Polarity
0 = The default level of SCLK is low.
1 = The default level of SCLK is high.
[15:12] SP_CYCLE Suspend Interval (Master Only)
These four bits provide configurable suspend interval between two successive transmit/receive transaction in a transfer.
The suspend interval is from the last falling clock edge of the current transaction to the first rising clock edge of the successive transaction if CLKP = "0".
If CLKP = "1", the interval is from the rising clock edge to the falling clock edge.
The default value is 0x3. The desired suspend interval is obtained according to the following equation:
(SP_CYCLE[3:0) + 0.5) * period of SPICLK
Ex:
SP_CYCLE = 0x0 .... 0.5 SPICLK clock cycle.
SP_CYCLE = 0x1 .... 1.5 SPICLK clock cycle.
......
SP_CYCLE = 0xE .... 14.5 SPICLK clock cycle.
SP_CYCLE = 0xF .... 15.5 SPICLK clock cycle.
If the Variable Clock function is enabled, the minimum period of suspend interval (the transmit data in FIFO buffer is not empty) between the successive transaction is (6.5 + SP_CYCLE) * SPICLK clock cycle
[17] INTEN Interrupt Enable Control
0 = SPI Interrupt Disabled.
1 = SPI Interrupt Enabled.
[18] SLAVE Slave Mode
0 = SPI controller set as Master mode.
1 = SPI controller set as Slave mode.
[19] REORDER Byte Reorder Function Enable Control
0 = Disable byte reorder function.
1 = Enable byte reorder function and insert a byte suspend interval among each byte.
The setting of TX_BIT_LEN must be configured as 00b ( 32 bits/ word).
The suspend interval is defined in SP_CYCLE.
Note: Byte Suspend is only used in SPI Byte Reorder mode.
[21] FIFOM FIFO Mode Enable Control
0 = FIFO mode Disabled (in Normal mode).
1 = FIFO mode Enabled.
[22] TWOB 2-Bit Transfer Mode Active
0 = 2-bit transfer mode Disabled.
1 = 2-bit transfer mode Enabled.
[23] VARCLK_EN Variable Clock Enable Control
0 = The serial clock output frequency is fixed and only decided by the value of DIVIDER1.
1 = The serial clock output frequency is variable.
The output frequency is decided by the value of VARCLK (SPI_VARCLK), DIVIDER1, and DIVIDER2.
[28] DUAL_IO_DIR Dual IO Mode Direction
0 = Date read in the Dual I/O Mode function.
1 = Data write in the Dual I/O Mode function.
[29] DUAL_IO_EN Dual IO Mode Enable Control
0 = Dual I/O Mode function Disabled.
1 = Dual I/O Mode function Enabled.
[31] WKEUP_EN Wake-Up Enable Control
0 = Wake-up function Disabled.
1 = Wake-up function Enabled.
Note: When the system enters Power-down mode, the system can be wake-up from the SPI controller when this bit is enabled and if there is any toggle in the SPICLK port.
After the system wake-up, this bit must be cleared by user to disable the wake-up requirement.

Definition at line 8551 of file Nano1X2Series.h.

◆ CTL [6/8]

__IO uint32_t TIMER_T::CTL

CTL

Offset: 0x00 Timer x Control Register

Bits Field Descriptions
[0] TMR_EN Timer Counter Enable Control
0 = Stops/Suspends counting.
1 = Starts counting.
Note1: Set TMR_EN to 1 enables 24-bit counter keeps up counting from the last stop counting value.
Note2: This bit is auto-cleared by hardware in one-shot mode (MODE_SEL (TMRx_CTL[5:4]) = 00) once the value of 24-bit up counter equals the TMRx_CMPR.
[1] SW_RST Software Reset
Set this bit will reset the timer counter, pre-scale counter and also force TMR_EN (TMRx_CTL [0]) to 0.
0 = No effect.
1 = Reset Timer's pre-scale counter, internal 24-bit up-counter and TMR_EN (TMRx_CTL [0]) bit.
Note: This bit will be auto cleared and takes at least 3 TMRx_CLK clock cycles.
[2] WAKE_EN Wake-Up Enable Control
When WAKE_EN is set and the TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) is set, the timer controller will generate a wake-up trigger event to CPU.
0 = Wake-up trigger event Disabled.
1 = Wake-up trigger event Enabled.
[3] DBGACK_EN ICE Debug Mode Acknowledge Ineffective Enable Control
0 = ICE debug mode acknowledgement effects TIMER counting and TIMER counter will be held while ICE debug mode acknowledged.
1 = ICE debug mode acknowledgement is ineffective and TIMER counter will keep going no matter ICE debug mode acknowledged or not.
[5:4] MODE_SEL Timer Operating Mode Select
00 = The timer is operating in the one-shot mode.
In this mode, the associated interrupt signal is generated (if TMR_IER [TMR_IE] is enabled) once the value of 24-bit up counter equals the TMRx_CMPR.
And TMR_CTL [TMR_EN] is automatically cleared by hardware.
01 = The timer is operating in the periodic mode.
In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR.
After that, the 24-bit counter will be reset and starts counting from zero again.
10 = The timer is operating in the periodic mode with output toggling.
In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR.
After that, the 24-bit counter will be reset and starts counting from zero again.
At the same time, timer controller will also toggle the output pin TMRx_TOG_OUT to its inverse level (from low to high or from high to low).
Note: The default level of TMRx_TOG_OUT after reset is low.
11 = The timer is operating in continuous counting mode.
In this mode, the associated interrupt signal is generated when TMR_DR = TMR_CMPR (if TMR_IER [TMR_IE] is enabled).
However, the 24-bit up-counter counts continuously without reset.
[6] ACMP_EN_TMR ACMP Trigger Timer Enable Control
This bit high enables the functionality that when ACMP0 is in sigma-delta mode, it could enable Timer.
0 = ACMP0 trigger timer functionality disabled.
1 = ACMP0 trigger timer functionality enabled.
[7] TMR_ACT Timer Active Status Bit (Read Only)
This bit indicates the timer counter status of timer.
0 = Timer is not active.
1 = Timer is in active.
[8] ADC_TEEN Timer Trigger ADC Enable Control
This bit controls if TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) could trigger ADC.
When ADC_TEEN is set, TMR_IS (TMRx_ISR[0]) is set and the CAP_TRG_EN (TMRx_CTL[11]) is low, the timer controller will generate an internal trigger event to ADC controller.
When ADC_TEEN is set, TCAP_IS (TMRx_ISR[1]) is set and the CAP_TRG_EN (TMRx_CTL[11]) is high, the timer controller will generate an internal trigger event to ADC controller.
0 = TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) trigger ADC Disabled.
1 = TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) trigger ADC Enabled.
[10] PDMA_TEEN Timer Trigger PDMA Enable Control
This bit controls if TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) could trigger PDMA.
When PDMA_TEEN is set, TMR_IS (TMRx_ISR[0]) is set and the CAP_TRG_EN (TMRx_CTL[11]) is low, the timer controller will generate an internal trigger event to PDMA controller.
When PDMA_TEEN is set, TCAP_IS (TMRx_ISR[1]) is set and the CAP_TRG_EN (TMRx_CTL[11]) is high, the timer controller will generate an internal trigger event to PDMA controller.
0 = TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) trigger PDMA Disabled.
1 = TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) trigger PDMA Enabled.
[11] CAP_TRG_EN TCAP_IS Trigger Mode Enable
This bit controls if the TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) is used to trigger PDMA and ADC while TMR_IS (TMRx_ISR[0]) or TCAP_IS (TMRx_ISR[1]) is set.
If this bit is low and TMR_IS (TMRx_ISR[0]) is set, timer will generate an internal trigger event to PDMA or ADC while related trigger enable bit (PDMA_TEEN (TMRx_CTL[10]) or ADC_TEEN (TMRx_CTL[8])) is set.
If this bit is set high and TCAP_IS (TMRx_ISR[0]) is set, timer will generate an internal trigger event to PDMA or ADC while related trigger enable bit (PDMA_TEEN (TMRx_CTL[10]) or ADC_TEEN (TMRx_CTL[8])) is set.
0 = TMR_IS (TMRx_ISR[0]) is used to trigger PDMA and ADC.
1 = TCAP_IS (TMRx_ISR[1]) is used to trigger PDMA and ADC.
[12] EVENT_EN Event Counting Mode Enable Control
When EVENT_EN is set, the increase of 24-bit up-counting timer is controlled by external event pin.
While the transition of external event pin matches the definition of EVENT_EDGE (TMRx_CTL[13]), the 24-bit up-counting timer increases by 1.
Or, the 24-bit up-counting timer will keep its value unchanged.
0 = Timer counting is not controlled by external event pin.
1 = Timer counting is controlled by external event pin.
[13] EVENT_EDGE Event Counting Mode Edge Selection
This bit indicates which edge of external event pin enabling the timer to increase 1.
0 = A falling edge of external event enabling the timer to increase 1.
1 = A rising edge of external event enabling the timer to increase 1.
[14] EVNT_DEB_EN External Event De-Bounce Enable Control
When EVNT_DEB_EN is set, the external event pin de-bounce circuit will be enabled to eliminate the bouncing of the signal.
In de-bounce circuit the external event pin will be sampled 4 times by TMRx_CLK.
0 = De-bounce circuit Disabled.
1 = De-bounce circuit Enabled.
Note: When EVENT_EN (TMRx_CTL[12]) is enabled, enable this bit is recommended.
And, while EVENT_EN (TMRx_CTL[12]) is disabled, disable this bit is recommended to save power consumption.
[16] TCAP_EN TC Pin Functional Enable Control
This bit controls if the transition on TC pin could be used as timer counter reset function or timer capture function.
0 = The transition on TC pin is ignored.
1 = The transition on TC pin will result in the capture or reset of 24-bit timer counter.
Note: For TMRx_CTL, if INTR_TRG_EN (TMRx_CTL[24]) is set, the TCAP_EN will be forced to low and the TC pin transition is ignored (where x = 0 or 2).
Note: For TMRx+1_CTL, if INTR_TRG_EN (TMRx_CTL[24]) is set, the TCAP_EN will be forced to high (where x = 0 or 2).
[17] TCAP_MODE TC Pin Function Mode Selection
This bit indicates if the transition on TC pin is used as timer counter reset function or timer capture function.
0 = The transition on TC pin is used as timer capture function.
1 = The transition on TC pin is used as timer counter reset function.
Note: For TMRx+1_CTL, if INTR_TRG_EN (TMRx_CTL[24]) is set, the TCAP_MODE will be forced to low (where x = 0 or 2).
[19:18] TCAP_EDGE TC Pin Edge Detect Selection
This field defines that active transition of Tcapture pin is for timer counter reset function or for timer capture function.
For timer counter reset function and free-counting mode of timer capture function, the configurations are:
00 = A falling edge (1 to 0 transition) on Tcapture pin is an active transition.
01 = A rising edge (0 to 1 transition) on Tcapture pin is an active transition.
10 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions.
11 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions.
For trigger-counting mode of timer capture function, the configurations are:
00 = 1st falling edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd falling edge triggers 24-bit timer to stop counting.
01 = 1st rising edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd rising edge triggers 24-bit timer to stop counting.
10 = Falling edge on Tcapture pin triggers 24-bit timer to start counting, while rising edge triggers 24-bit timer to stop counting.
11 = Rising edge on Tcapture pin triggers 24-bit timer to start counting, while falling edge triggers 24-bit timer to stop counting.
Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_EDGE will be forced to 11.
[20] TCAP_CNT_MOD Timer Capture Counting Mode Selection
This bit indicates the behavior of 24-bit up-counting timer while TCAP_EN (TMRx_CTL[16]) is set to high.
If this bit is 0, the free-counting mode, the behavior of 24-bit up-counting timer is defined by MODE_SEL (TMRx_CTL[5:4]) field.
When TCAP_EN (TMRx_CTL[16]) is set, TCAP_MODE (TMRx_CTL[17]) is 0, and the transition of TC pin matches the TCAP_EDGE (TMRx_CTL[19:18]) setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAP.
If this bit is 1, Trigger-counting mode, 24-bit up-counting timer will be not counting and keep its value at 0.
When TCAP_EN (TMRx_CTL[16]) is set, TCAP_MODE (TMRx_CTL[17]) is 0, and once the transition of external pin matches the 1st transition of TCAP_EDGE (TMRx_CTL[19:18]) setting, the 24-bit up-counting timer will start counting.
And then if the transition of external pin matches the 2nd transition of TCAP_EDGE (TMRx_CTL[19:18]) setting, the 24-bit up-counting timer will stop counting.
And its value will be saved into register TMRx_TCAP.
0 = Capture with free-counting timer mode.
1 = Capture with trigger-counting timer mode.
Note: For TMRx+1_CTL, if INTR_TRG_EN (TMRx_CTL[24]) is set, the TCAP_CNT_MOD will be forced to high, the capture with Trigger-counting Timer mode (where x = 0 or 2).
[22] TCAP_DEB_EN TC Pin De-Bounce Enable Control
When CAP_DEB_EN (TMRx_CTL[22]) is set, the TC pin de-bounce circuit will be enabled to eliminate the bouncing of the signal.
In de-bounce circuit the TC pin signal will be sampled 4 times by TMRx_CLK.
0 = De-bounce circuit Disabled.
1 = De-bounce circuit Enabled.
Note: When TCAP_EN (TMRx_CTL[16]) is enabled, enable this bit is recommended.
And, while TCAP_EN (TMRx_CTL[16]) is disabled, disable this bit is recommended to save power consumption.
Note: When CAP_SRC (TMRx_ECTL[16]) is high, the capture signal is from internal of chip and the de-bounce circuit would not take effect no matter this bit is high or low.
Note: For Timer 1 and 3, when INTR_TRG_EN (TMRx_CTL[24]) is high, the capture signal is from internal of chip and the de-bounce circuit would not take effect no matter this bit is high or low.
[24] INTR_TRG_EN Inter-Timer Trigger Function Enable Control
This bit controls if Inter-timer Trigger function is enabled.
If Inter-timer Trigger function is enabled, the TMRx will be in counter mode and counting with external Clock Source or event.
In addition, TMRx+1 will be in trigger-counting mode of capture function.
0 = Inter-timer trigger function Disabled.
1 = Inter-timer trigger function Enabled.
Note: For TMRx+1_CTL, this bit is ignored and the read back value is always 0.
[25] INTR_TRG_MODE Inter-Timer Trigger Mode Selection
This bit controls the timer operation mode when inter-timer trigger function is enabled.
When this bit is low, the TMRx will be in counter mode and counting with external Clock Source or event.
In addition, TMRx+1 will be in trigger-counting mode of capture function.
In this mode, TMRx_CMPR control when inter-timer trigger function terminated.
When this bit is high, the TMRx will be in counter mode and counting with external Clock Source or event.
In addition, TMRx+1 will be in trigger-counting mode of capture function.
In this mode, TMRx+1_CMPR control when inter-timer trigger function terminated.
In this mode, TMRx would ignore some incoming event based on the EVNT_DROP_CNT (TMRx_ECTL[31:24]).
And once the TMRx+1 counter value equal or large than TMRx+1_CMPR, TMRx would terminate the operation when next incoming event received.
0 = Inter-Timer Trigger function wouldn't ignore any incoming event.
1 = Inter-Timer Trigger function would ignore incoming event based on the EVNT_DROP_CNT (TMRx_ECTL[31:24]).
Note: For TMRx+1_CTL, this bit is ignored and the read back value is always 0.

Definition at line 9178 of file Nano1X2Series.h.

◆ CTL [7/8]

__IO uint32_t UART_T::CTL

CTL

Offset: 0x04 UART Control State Register.

Bits Field Descriptions
[0] RX_RST RX Software Reset
When RX_RST is set, all the bytes in the receiving FIFO and RX internal state machine are cleared.
0 = No effect.
1 = Reset the RX internal state machine and pointers.
Note: This bit will be auto cleared and take at least 3 UART engine clock cycles.
[1] TX_RST TX Software Reset
When TX_RST is set, all the bytes in the transmitting FIFO and TX internal state machine are cleared.
0 = No effect.
1 = Reset the TX internal state machine and pointers.
Note: This bit will be auto cleared and take at least 3 UART engine clock cycles.
[2] RX_DIS Receiver Disable Register
The receiver is disabled or not (set "1" to disable receiver)
0 = Receiver Enabled.
1 = Receiver Disabled.
Note1: In RS-485 NMM mode, user can set this bit to receive data before detecting address byte.
Note2: In RS-485 AAD mode, this bit will be setting to "1" automatically.
Note3: In RS-485 AUD mode and LIN "break + sync +PID" header mode, hardware will control data automatically, so don't fill any value to this bit.
[3] TX_DIS Transfer Disable Register
The transceiver is disabled or not (set "1" to disable transceiver)
0 = Transfer Enabled.
1 = Transfer Disabled.
[4] AUTO_RTS_EN RTSn Auto-Flow Control Enable
0 = RTSn auto-flow control. Disabled.
1 = RTSn auto-flow control Enabled.
Note: When RTSn auto-flow is enabled, if the number of bytes in the RX-FIFO equals the UART_FCR [RTS_Tri_Lev], the UART will reassert RTSn signal.
[5] AUTO_CTS_EN CTSn Auto-Flow control Enable
0 = CTSn auto-flow control Disabled
1 = CTSn auto-flow control Enabled.
Note: When CTSn auto-flow is enabled, the UART will send data to external device when CTSn input assert (UART will not send data to device until CTSn is asserted).
[6] DMA_RX_EN RX DMA Enable
This bit can enable or disable RX PDMA service.
0 = RX PDMA service function Disabled.
1 = RX PDMA service function Enabled.
[7] DMA_TX_EN TX DMA Enable
This bit can enable or disable TX PDMA service.
0 = TX PDMA service function Disabled.
1 = TX PDMA service function Enabled.
[8] WAKE_CTS_EN CTSn Wake-Up Function Enable
0 = CTSn wake-up system function Disabled.
1 = Wake-up function Enabled when the system is in power-down mode, an external CTSn change will wake-up system from power-down mode.
[9] WAKE_DATA_EN Incoming Data Wake-Up Function Enable
0 = Incoming data wake-up system Disabled.
1 = Incoming data wake-up function Enabled when the system is in power-down mode, incoming data will wake-up system from power-down mode.
Note: Hardware will clear this bit when the incoming data wake-up operation finishes and "system clock" work stable
[12] ABAUD_EN Auto-Baud Rate Detect Enable
0 = Auto-baud rate detect function Disabled.
1 = Auto-baud rate detect function Enabled.
Note: When the auto-baud rate detect operation finishes, hardware will clear this bit and the associated interrupt (INT_ABAUD) will be generated (If ABAUD_IE (UART_IER [7]) be enabled).
[17] WAKE_THRESH_EN FIFO Threshold Reach Wake-Up Function Enable Control
0 = Received FIFO threshold reach wake-up function Disabled.
1 = Received FIFO threshold reach wake-up function Enabled when the system is in power-down mode.
[18] WAKE_RS485_AAD_EN RS-485 Address Match Wake-Up Function Enable Control
0 = RS-485 ADD mode address match wake-up function Disabled.
1 = RS-485 AAD mode address match wake-up function Enabled when the system is in power-down mode.
[26:24] PWM_SEL PWM Channel Select For Modulation
Select the PWM channel to modulate with the UART transmit bus.
000 = PWM channel 0 modulate with UART TX.
001 = PWM channel 1 modulate with UART TX.
010 = PWM channel 2 modulate with UART TX.
011 = PWM channel 3 modulate with UART TX.
The others, no modulation of UART with PWM

Definition at line 9581 of file Nano1X2Series.h.

◆ CTL [8/8]

__IO uint32_t WDT_T::CTL

CTL

Offset: 0x00 Watchdog Timer Control Register

Bits Field Descriptions
[0] WTR Clear Watchdog Timer
This is a protected register. Please refer to open lock sequence to program it.
Set this bit will clear the Watchdog timer.
0 = No effect.
1 = Reset the contents of the Watchdog timer.
Note: This bit will be auto cleared after few clock cycles.
[1] WTRE Watchdog Timer Reset Function Enable
This is a protected register. Please refer to open lock sequence to program it.
Setting this bit will enable the Watchdog timer reset function.
0 = Watchdog timer reset function Disabled.
1 = Watchdog timer reset function Enabled.
[2] WTWKE Watchdog Timer Wake-Up Function Enable
This is a protected register. Please refer to open lock sequence to program it.
0 = Watchdog timer Wake-up CPU function Disabled.
1 = Wake-up function Enabled so that Watchdog timer time-out can wake up CPU from power-down mode.
[3] WTE Watchdog Timer Enable
This is a protected register. Please refer to open lock sequence to program it.
0 = Watchdog timer Disabled (this action will reset the internal counter).
1 = Watchdog timer Enabled.
[6:4] WTIS Watchdog Timer Interval Selection
This is a protected register. Please refer to open lock sequence to program it.
These three bits select the time-out interval for the Watchdog timer.
This count is free running counter.
[9:8] WTRDSEL Watchdog Timer Reset Delay Select
When watchdog timeout happened, software has a time named watchdog reset delay period to clear watchdog timer to prevent watchdog reset happened.
Software can select a suitable value of watchdog reset delay period for different watchdog timeout period.
00 = Watchdog reset delay period is 1026 watchdog clock
01 = Watchdog reset delay period is 130 watchdog clock
10 = Watchdog reset delay period is 18 watchdog clock
11 = Watchdog reset delay period is 3 watchdog clock
This register will be reset if watchdog reset happened

Definition at line 10348 of file Nano1X2Series.h.

◆ DAR

__IO uint32_t PDMA_T::DAR

DAR

Offset: 0x08 PDMA Destination Address Register

Bits Field Descriptions
[31:0] PDMA_DAR PDMA Transfer Destination Address Register
This field indicates a 32-bit destination address of PDMA.
Note : The destination address must be word alignment

Definition at line 2140 of file Nano1X2Series.h.

◆ DATA

__IO uint32_t I2C_T::DATA

DATA

Offset: 0x14 I2C DATA Register

Bits Field Descriptions
[7:0] DATA I2C Data Bits
The DATA contains a byte of serial data to be transmitted or a byte which has just been received.

Definition at line 5004 of file Nano1X2Series.h.

◆ DATA0

__I uint32_t PWM_T::DATA0

DATA0

Offset: 0x20 PWM Data Register 0

Bits Field Descriptions
[15:0] DATA PWM Data Register
User can monitor PWM_DATA to know the current value in 16-bit down count counter of corresponding channel.
[30:16] DATA_H PWM Data Register
User can monitor PWM_DATA to know the current value in 32-bit down count counter of corresponding channel.
Notes: This will be valid only for the corresponding cascade enable bit is set
[31] sync CN Value Sync With PWM Counter
0 = CN value is sync to PWM counter.
1 = CN value is not sync to PWM counter.
Note: when the corresponding cascade enable bit is set, this bit will not appear in the corresponding channel

Definition at line 5995 of file Nano1X2Series.h.

◆ DATA1

__I uint32_t PWM_T::DATA1

DATA1

Offset: 0x2C PWM Data Register 1

Bits Field Descriptions
[15:0] DATA PWM Data Register
User can monitor PWM_DATA to know the current value in 16-bit down count counter of corresponding channel.
[30:16] DATA_H PWM Data Register
User can monitor PWM_DATA to know the current value in 32-bit down count counter of corresponding channel.
Notes: This will be valid only for the corresponding cascade enable bit is set
[31] sync CN Value Sync With PWM Counter
0 = CN value is sync to PWM counter.
1 = CN value is not sync to PWM counter.
Note: when the corresponding cascade enable bit is set, this bit will not appear in the corresponding channel

Definition at line 6060 of file Nano1X2Series.h.

◆ DATA2

__I uint32_t PWM_T::DATA2

DATA2

Offset: 0x38 PWM Data Register 2

Bits Field Descriptions
[15:0] DATA PWM Data Register
User can monitor PWM_DATA to know the current value in 16-bit down count counter of corresponding channel.
[30:16] DATA_H PWM Data Register
User can monitor PWM_DATA to know the current value in 32-bit down count counter of corresponding channel.
Notes: This will be valid only for the corresponding cascade enable bit is set
[31] sync CN Value Sync With PWM Counter
0 = CN value is sync to PWM counter.
1 = CN value is not sync to PWM counter.
Note: when the corresponding cascade enable bit is set, this bit will not appear in the corresponding channel

Definition at line 6125 of file Nano1X2Series.h.

◆ DATA3

__I uint32_t PWM_T::DATA3

DATA3

Offset: 0x44 PWM Data Register 3

Bits Field Descriptions
[15:0] DATA PWM Data Register
User can monitor PWM_DATA to know the current value in 16-bit down count counter of corresponding channel.
[30:16] DATA_H PWM Data Register
User can monitor PWM_DATA to know the current value in 32-bit down count counter of corresponding channel.
Notes: This will be valid only for the corresponding cascade enable bit is set
[31] sync CN Value Sync With PWM Counter
0 = CN value is sync to PWM counter.
1 = CN value is not sync to PWM counter.
Note: when the corresponding cascade enable bit is set, this bit will not appear in the corresponding channel

Definition at line 6190 of file Nano1X2Series.h.

◆ DBEN

__IO uint32_t GPIO_T::DBEN

DBEN

Offset: 0x14 GPIO Port De-bounce Enable Register

Bits Field Descriptions
[15:0] DBEN GPIO Port [X] Pin [N] Input Signal De-Bounce Enable
DBEN[n] used to enable the de-bounce function for each corresponding bit.
If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal transition is seen as the signal bounce and will not trigger the interrupt.
DBEN[n] is used for "edge-trigger" interrupt only, and ignored for "level trigger" interrupt
0 = The GPIO port [x] Pin [n] input signal de-bounce function is disabled.
1 = The GPIO port [x] Pin [n] input signal de-bounce function is enabled.
The de-bounce function is valid for edge triggered interrupt.
If the interrupt mode is level triggered, the de-bounce enable bit is ignored.
Note: For GPIOF_DBEN, bits [15:6] are reserved.

Definition at line 4294 of file Nano1X2Series.h.

◆ DBNCECON

__IO uint32_t GP_DB_T::DBNCECON

DBNCECON

Offset: 0x180 De-bounce Cycle Control Register

Bits Field Descriptions
[3:0] DBCLKSEL De-Bounce Sampling Cycle Selection
0000 = Sample interrupt input once per 1 clock.
0001 = Sample interrupt input once per 2 clocks.
0010 = Sample interrupt input once per 4 clocks.
0011 = Sample interrupt input once per 8 clocks.
0100 = Sample interrupt input once per 16 clocks.
0101 = Sample interrupt input once per 32 clocks.
0110 = Sample interrupt input once per 64 clocks.
0111 = Sample interrupt input once per 128 clocks.
1000 = Sample interrupt input once per 256 clocks.
1001 = Sample interrupt input once per 2*256 clocks.
1010 = Sample interrupt input once per 4*256clocks.
1011 = Sample interrupt input once per 8*256 clocks.
1100 = Sample interrupt input once per 16*256 clocks.
1101 = Sample interrupt input once per 32*256 clocks.
1110 = Sample interrupt input once per 64*256 clocks.
1111 = Sample interrupt input once per 128*256 clocks.
[4] DBCLKSRC De-Bounce Counter Clock Source Selection
0 = De-bounce counter Clock Source is the HCLK.
1 = De-bounce counter Clock Source is the internal 10 kHz clock.
[5] DBCLK_ON De-Bounce Clock Enable Control
This bit controls if the de-bounce clock is enabled.
However, if GPI/O pin's interrupt is enabled, the de-bounce clock will be enabled automatically no matter what the DBCLK_ON value is.
If CPU is in sleep mode, this bit didn't take effect.
And only the GPI/O pin with interrupt enable could get de-bounce clock.
0 = De-bounce clock Disabled.
1 = De-bounce clock Enabled.

Definition at line 4688 of file Nano1X2Series.h.

◆ DFBADR

__I uint32_t FMC_T::DFBADR

DFBADR

Offset: 0x14 Data Flash Base Address Register

Bits Field Descriptions
[31:0] DFBADR Data Flash Base Address
This register indicates data flash start address. It is a read only register.
The data flash start address is defined by user.
Since on chip flash erase unit is 512 bytes, it is mandatory to keep bit 8-0 as 0.

Definition at line 2581 of file Nano1X2Series.h.

◆ DISPCTL

__IO uint32_t LCD_T::DISPCTL

DISPCTL

Offset: 0x04 LCD Display Control Register

Bits Field Descriptions
[0] CPUMP_EN Charge Pump Enable
0 = Disabled.
1 = Enabled.
[2:1] BIAS_SEL Bias Selection
00 = Static.
01 = 1/2 Bias.
10 = 1/3 Bias.
11 = Reserved.
[4] IBRL_EN Internal Bias Reference Ladder Enable
0 = Bias reference ladder Disabled.
1 = Bias reference ladder Enabled.
[6] BV_SEL Bias Voltage Type Selection
0 = C-Type bias mode. Bias voltage source from internal bias generator.
1 = R-Type bias mode. Bias voltage source from external bias generator.
Note: The external resistor ladder should be connected to the V1 pin, V2 pin, V3 pin and VSS.
The VLCD pin should also be connected to VDD.
[10:8] CPUMP_VOL_SET Charge Pump Voltage Selection
000 = 2.7V.
001 = 2.8V.
010 = 2.9V.
011 = 3.0V.
100 = 3.1V.
101 = 3.2V.
110 = 3.3V.
111 = 3.4V.
[13:11] CPUMP_FREQ Charge Pump Frequency Selection
000 = LCD_CLK.
001 = LCD_CLK/2.
010 = LCD_CLK/4.
011 = LCD_CLK/8.
100 = LCD_CLK/16.
101 = LCD_CLK/32.
110 = LCD_CLK/64.
111 = LCD_CLK/128.
[16] Ext_C Ext_C Mode Selection
This mode is similar to C-type LCD mode, but the operation current is lower than C-type mode.
The control register setting is same with C-type mode except this bit is set to "1".
0 = Disable.
1 = Enable.
[18:17] Res_Sel R-Type Resistor Value Selection
The LCD operation current will be different when we select different R-type resistor value.
00 = 200K Ohm.
01 = 300K Ohm.
10 = Reserved.
11 = 400K Ohm.

Definition at line 5343 of file Nano1X2Series.h.

◆ DIV

__IO uint32_t I2C_T::DIV

DIV

Offset: 0x0C I2C clock divided Register

Bits Field Descriptions
[7:0] CLK_DIV I2C Clock Divided Bits
The I2C clock rate bits: Data Baud Rate of I2C = PCLK /( 4 x ( CLK_DIV + 1)).
Note: the minimum value of CLK_DIV is 4.

Definition at line 4973 of file Nano1X2Series.h.

◆ DMA

__IO uint32_t SPI_T::DMA

DMA

Offset: 0x38 SPI DMA Control Register

Bits Field Descriptions
[0] TX_DMA_EN Transmit PDMA Enable Control
0 = Transmit PDMA function Disabled.
1 = Transmit PDMA function Enabled.
Note1: Two transaction need minimal 18 APB clock + 8 SPI peripheral clocks suspend interval in master mode for edge mode and 18 APB clock + 9.5 SPI peripheral clocks for level mode.
Note2: If the 2-bit function is enabled, the requirement timing shall append 18 APB clock based on the above clock period.
Hardware will clear this bit to 0 automatically after PDMA transfer done.
[1] RX_DMA_EN Receiving PDMA Enable Control
0 = Receiver PDMA function Disabled.
1 = Receiver PDMA function Enabled.
Note: Hardware will clear this bit to 0 automatically after PDMA transfer done.
In Slave mode and the FIFO bit is disabled, if the receive PDMA is enabled but the transmit PDMA is disabled, the minimal suspend interval between two successive transactions input is need to be larger than 9 SPI peripheral clock + 4 APB clock for edge mode and 9.5 SPI peripheral clock + 4 APB clock
[2] PDMA_RST PDMA Reset
It is used to reset the SPI PDMA function into default state.
0 = After reset PDMA function or in normal operation.
1 = Reset PDMA function.
Note: it is auto cleared to "0" after the reset function has done.

Definition at line 8804 of file Nano1X2Series.h.

◆ DMABCR

__IO uint32_t DMA_CRC_T::DMABCR

DMABCR

Offset: 0x0C DMA CRC Transfer Byte Count Register

Bits Field Descriptions
[15:0] CRC_DMABCR CRC DMA Transfer Byte Count Register
This field indicates a 16-bit transfer byte count number of CRC DMA

Definition at line 1803 of file Nano1X2Series.h.

◆ DMACBCR

__I uint32_t DMA_CRC_T::DMACBCR

DMACBCR

Offset: 0x1C DMA CRC Current Transfer Byte Count Register

Bits Field Descriptions
[15:0] CRC_DMACBCR CRC DMA Current Byte Count Register (Read Only)
This field indicates the current remained byte count of CRC_DMA.
Note: CRC_RST will clear this register value.

Definition at line 1832 of file Nano1X2Series.h.

◆ DMACSAR

__I uint32_t DMA_CRC_T::DMACSAR

DMACSAR

Offset: 0x14 DMA CRC Current Source Address Register

Bits Field Descriptions
[31:0] CRC_DMACSAR CRC DMA Current Source Address Register (Read Only)
This field indicates the source address where the CRC DMA transfer is just occurring.

Definition at line 1817 of file Nano1X2Series.h.

◆ DMAIER

__IO uint32_t DMA_CRC_T::DMAIER

DMAIER

Offset: 0x20 DMA CRC Interrupt Enable Register

Bits Field Descriptions
[0] TABORT_IE CRC DMA Read/Write Target Abort Interrupt Enable
0 = Target abort interrupt generation Disabled during CRC DMA transfer.
1 = Target abort interrupt generation Enabled during CRC DMA transfer.
[1] BLKD_IE CRC DMA Transfer Done Interrupt Enable
0 = Interrupt generator Disabled during CRC DMA transfer done.
1 = Interrupt generator Enabled during CRC DMA transfer done.

Definition at line 1848 of file Nano1X2Series.h.

◆ DMAISR

__IO uint32_t DMA_CRC_T::DMAISR

DMAISR

Offset: 0x24 DMA CRC Interrupt Status Register

Bits Field Descriptions
[0] TABORT_IF CRC DMA Read/Write Target Abort Interrupt Flag
0 = No bus ERROR response received.
1 = Bus ERROR response received.
Software can write 1 to clear this bit to zero
Note: The CRC_DMAISR [TABORT_IF] indicate bus master received ERROR response or not.
If bus master received ERROR response, it means that target abort is happened.
DMA will stop transfer and respond this event to software then go to IDLE state.
When target abort occurred, software must reset DMA, and then transfer those data again.
[1] BLKD_IF Block Transfer Done Interrupt Flag
This bit indicates that CRC DMA has finished all transfer.
0 = Not finished yet.
1 = Done.
Software can write 1 to clear this bit to zero

Definition at line 1871 of file Nano1X2Series.h.

◆ DMASAR

__IO uint32_t DMA_CRC_T::DMASAR

DMASAR

Offset: 0x04 DMA CRC Source Address Register

Bits Field Descriptions
[31:0] CRC_DMASAR CRC DMA Transfer Source Address Register
This field indicates a 32-bit source address of CRC DMA.
Note : The source address must be word alignment

Definition at line 1789 of file Nano1X2Series.h.

◆ DMASK

__IO uint32_t GPIO_T::DMASK

DMASK

Offset: 0x0C GPIO Port Data Output Write Mask Register

Bits Field Descriptions
[15:0] DMASK GPIO Port [X] Pin [N] Data Output Write Mask
These bits are used to protect the corresponding register of GPIOx_DOUT bit [n].
When set the DMASK[n] to "1", the corresponding DOUT[n] bit is protected.
The write signal is masked, write data to the protect bit is ignored.
0 = The corresponding GPIO_DOUT bit [n] can be updated.
1 = The corresponding GPIO_DOUT bit [n] is protected.
Note: For GPIOF_DMASK, bits [15:6] are reserved.
Note: These mask bits only take effect while CPU is doing write operation to register GPIOx_DOUT.
If CPU is doing write operation to register GPIO[x][n], these mask bits will not take effect.

Definition at line 4262 of file Nano1X2Series.h.

◆ DOUT

__IO uint32_t GPIO_T::DOUT

DOUT

Offset: 0x08 GPIO Port Data Output Value Register

Bits Field Descriptions
[15:0] DOUT GPIO Port [X] Pin [N] Output Value
Each of these bits controls the status of a GPIO port [x] pin [n] when the GPI/O pin is configures as output or open-drain mode
0 = GPIO port [x] Pin [n] will drive Low if the corresponding output mode enabling bit is set.
1 = GPIO port [x] Pin [n] will drive High if the corresponding output mode enabling bit is set.
Note: For GPIOF_DOUT, bits [15:6] are reserved.

Definition at line 4243 of file Nano1X2Series.h.

◆ DR

__IO uint32_t TIMER_T::DR

DR

Offset: 0x14 Timer 0 Data Register

Bits Field Descriptions
[23:0] TDR Timer Data Register (Read)
User can read this register for internal 24-bit timer up-counter value.
Counter Reset (Write)
User can write any value to this register to reset internal 24-bit timer up-counter and 8-bit pre-scale counter.
This reset operation wouldn't affect any other timer control registers and circuit.
After reset completed, the 24-bit timer up-counter and 8-bit pre-scale counter restart the counting based on the TMRx_CTL register setting.
[31] RSTACT Reset Active
This bit indicates if the counter reset operation active.
When user write this register, timer starts to reset its internal 24-bit timer up-counter and 8-bit pre-scale counter to 0.
In the same time, timer set this flag to 1 to indicate the counter reset operation is in progress.
Once the counter reset operation done, timer clear this bit to 0 automatically.
0 = Reset operation done.
1 = Reset operation triggered by writing TMR_DR is in progress.
Note: This bit is read only. Write operation wouldn't take any effect.

Definition at line 9287 of file Nano1X2Series.h.

◆ DSSR0

__IO uint32_t DMA_GCR_T::DSSR0

DSSR0

Offset: 0x04 DMA Service Selection Control Register 0

Bits Field Descriptions
[12:8] CH1_SEL Channel 1 Selection
This filed defines which peripheral is connected to PDMA channel 1.
User can configure the peripheral by setting CH1_SEL.
00000 = Connect to SPI0_TX.
00001 = Connect to SPI1_TX.
00010 = Connect to UART0_TX.
00011 = Connect to UART1_TX.
00100 = Reserved.
00101 = Reserved.
00110 = Reserved.
00111 = Reserved.
01000 = Reserved.
01001 = Connect to TMR0.
01010 = Connect to TMR1.
01011 = Connect to TMR2.
01100 = Connect to TMR3.
10000 = Connect to SPI0_RX.
10001 = Connect to SPI1_RX.
10010 = Connect to UART0_RX.
10011 = Connect to UART1_RX.
10100 = Reserved.
10101 = Reserved.
10110 = Connect to ADC.
10111 = Reserved.
11000 = Reserved.
11001 = Connect to PWM0_CH0.
11010 = Connect to PWM0_CH2.
11011 = Reserved.
11100 = Reserved.
Others = Disable to connected any peripheral.
[20:16] CH2_SEL Channel 2 Selection
This filed defines which peripheral is connected to PDMA channel 2.
User can configure the peripheral setting by CH2_SEL.
The channel configuration is the same as CH1_SEL field.
Please refer to the explanation of CH1_SEL.
[28:24] CH3_SEL Channel 3 Selection
This filed defines which peripheral is connected to PDMA channel 3.
User can configure the peripheral setting by CH3_SEL.
The channel configuration is the same as CH1_SEL field.
Please refer to the explanation of CH1_SEL.

Definition at line 1994 of file Nano1X2Series.h.

◆ DSSR1

__IO uint32_t DMA_GCR_T::DSSR1

DSSR1

Offset: 0x08 DMA Service Selection Control Register 1

Bits Field Descriptions
[4:0] CH4_SEL Channel 4 Selection
This filed defines which peripheral is connected to PDMA channel 4.
User can configure the peripheral by setting CH4_SEL.
00000 = Connect to SPI0_TX.
00001 = Connect to SPI1_TX.
00010 = Connect to UART0_TX.
00011 = Connect to UART1_TX.
00100 = Reserved.
00101 = Reserved.
00110 = Reserved.
00111 = Reserved.
01000 = Reserved.
01001 = Connect to TMR0.
01010 = Connect to TMR1.
01011 = Connect to TMR2.
01100 = Connect to TMR3.
10000 = Connect to SPI0_RX.
10001 = Connect to SPI1_RX.
10010 = Connect to UART0_RX.
10011 = Connect to UART1_RX.
10100 = Reserved.
10101 = Reserved.
10110 = Connect to ADC.
10111 = Reserved.
11000 = Reserved.
11001 = Connect to PWM0_CH0.
11010 = Connect to PWM0_CH2.
11011 = Reserved.
11100 = Reserved.
Others = Disable to connected any peripheral.

Definition at line 2034 of file Nano1X2Series.h.

◆ DUTY0

__IO uint32_t PWM_T::DUTY0

DUTY0

Offset: 0x1C PWM Counter/Comparator Register 0

Bits Field Descriptions
[15:0] CN PWM Counter/Timer Loaded Value
CN determines the PWM period.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note: Any write to CN will take effect in next PWM cycle.
[31:16] CM PWM Comparator Register
CM determines the PWM duty.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note:Any write to CM will take effect in next PWM cycle.

Definition at line 5976 of file Nano1X2Series.h.

◆ DUTY1

__IO uint32_t PWM_T::DUTY1

DUTY1

Offset: 0x28 PWM Counter/Comparator Register 1

Bits Field Descriptions
[15:0] CN PWM Counter/Timer Loaded Value
CN determines the PWM period.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note: Any write to CN will take effect in next PWM cycle.
[31:16] CM PWM Comparator Register
CM determines the PWM duty.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note:Any write to CM will take effect in next PWM cycle.

Definition at line 6041 of file Nano1X2Series.h.

◆ DUTY2

__IO uint32_t PWM_T::DUTY2

DUTY2

Offset: 0x34 PWM Counter/Comparator Register 2

Bits Field Descriptions
[15:0] CN PWM Counter/Timer Loaded Value
CN determines the PWM period.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note: Any write to CN will take effect in next PWM cycle.
[31:16] CM PWM Comparator Register
CM determines the PWM duty.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note:Any write to CM will take effect in next PWM cycle.

Definition at line 6106 of file Nano1X2Series.h.

◆ DUTY3

__IO uint32_t PWM_T::DUTY3

DUTY3

Offset: 0x40 PWM Counter/Comparator Register 3

Bits Field Descriptions
[15:0] CN PWM Counter/Timer Loaded Value
CN determines the PWM period.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note: Any write to CN will take effect in next PWM cycle.
[31:16] CM PWM Comparator Register
CM determines the PWM duty.
In edge-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (CM+1)/(CN+1).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit.
CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
In center-aligned mode,
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(2x(CN+1)); where xy could be 01, 23, depending on the selected PWM channel.
Duty ratio = (2xCM+1)/(2x(CN+1)).
CM >= CN: PWM output is always high.
CM < CN: PWM low width = 2x(CN-CM)+1 unit; PWM high width = (2xCM+1) unit.
CM = 0: PWM low width = (2xCN+1) unit; PWM high width = 1 unit.
(Unit = one PWM clock cycle).
Note:Any write to CM will take effect in next PWM cycle.

Definition at line 6171 of file Nano1X2Series.h.

◆ DWR

__IO uint32_t RTC_T::DWR

DWR

Offset: 0x18 Day of the Week Register

Bits Field Descriptions
[2:0] DWR Day Of The Week Register
000 = Sunday.
001 = Monday.
010 = Tuesday.
011 = Wednesday.
100 = Thursday.
101 = Friday.
110 = Saturday.

Definition at line 7184 of file Nano1X2Series.h.

◆ ECTL

__IO uint32_t TIMER_T::ECTL

ECTL

Offset: 0x20 Timer x Extended Control Register

Bits Field Descriptions
[0] EVNT_GEN_EN Event Generator Function Enable Control
When this bit is high, timer would generate a high pulse event out when it increases the 24-bit up counter and the polarity of signal defined by EVNT_GEN_SRC (TMRx_ECTL[12]) is same as the polarity defined by EVNT_GEN_POL (TMRx_ECTL[1]).
0 = Event generator function disabled.
1 = Event generator function enabled.
[1] EVNT_GEN_POL Event Generator Reference Input Source Polarity Selection
When this bit is low and EVNT_GEN_EN (TMRx_ECTL[0]) is high, timer would generate a high pulse event out when it increases the 24-bit up counter and the polarity of signal defined by EVNT_GEN_SRC (TMRx_ECTL[12]) is low.
When this bit is high and EVNT_GEN_EN (TMRx_ECTL[0]) is high, timer would generate a low pulse event pulse out when it increases the 24-bit up counter and the polarity of signal defined by EVNT_GEN_SRC (TMRx_ECTL[12]) is high.
This bit only affects timer's operation when EVNT_GEN_EN (TMRx_ECTL[0]) is high.
0 = Timer generates a high pulse event out when it increase the 24-bit up counter and the polarity of signal defined by EVNT_GEN_SRC (TMRx_ECTL[12]) is low.
1 = Timer generates a high pulse event out when it increase the 24-bit up counter and the polarity of signal defined by EVNT_GEN_SRC (TMRx_ECTL[12]) is high.
[8] EVNT_CNT_SRC Event Counting Source Selection
This bit defines the TMRx+1 event counting source is from external event pin TMx+1 or internal signal from TMRx's event generator output (where x = 0 or 2).
0 = The event counting source is from external event pin.
1 = The event counting source is from TMRx's event generator output.
Note: This bit is only available in TMRx+1 (where x = 0 or 2).
[12] EVNT_GEN_SRC Event Generator Reference Input Source Selection
This bit defines the event generator function controlled by external event pin or internal event signals from ACMP0.
0 = The event generator reference source is from external event pin.
1 = The event generator reference source is from ACMP0.
Note: This bit is only available in TMRx (where x = 0 or 2).
[16] CAP_SRC Capture Function Source Selection
This bit defines timer counter reset function or timer capture function controlled by transition of TC pin or transition of internal signals from other functional blocks of this chip.
0 = Transition of TC pin selected.
1 = Transition of internal signals from ACMP0.
Note: When this bit is high, the EVNT_DEB_EN (TMRx_CTL[14]) would not take effect.
[31:24] EVNT_DROP_CNT Event Drop Count
This field indicates timer to drop how many events after inter-timer trigger function enable.
For example, if user writes 0x7 to this field, timer would drop 7 first incoming events and starts the inter-timer trigger operation when it get 8th event.
This field would affect timer's operation only when inter-timer trigger function enabled (INTR_TRG_EN (TMRx_CTL[24]) = 1) and ITNR_TRG_MODE (TMRx_CTL[25]) = 1.

Definition at line 9343 of file Nano1X2Series.h.

◆ EGTR

__IO uint32_t SC_T::EGTR

EGTR

Offset: 0x0C SC Extend Guard Time Register.

Bits Field Descriptions
[7:0] EGT Extended Guard Time
This field indicates the extended guard timer value.
Note: The counter is ETU based and the real extended guard time is EGT.

Definition at line 7761 of file Nano1X2Series.h.

◆ ETUCR

__IO uint32_t SC_T::ETUCR

ETUCR

Offset: 0x14 SC ETU Control Register.

Bits Field Descriptions
[11:0] ETU_RDIV ETU Rate Divider
The field indicates the clock rate divider.
The real ETU is ETU_RDIV + 1.
Note1: Software can configure this field, but this field must be greater than 0x04.
Note2: Software can configure this field, but if the error rate is equal to 2%, this field must be greater than 0x040.
[15] COMPEN_EN Compensation Mode Enable
This bit enables clock compensation function.
When this bit enabled, hardware will alternate between n clock cycles and (n-1) clock cycles, where n is the value to be written into the ETU_RDIV register.
0 = Compensation function Disabled.
1 = Compensation function Enabled.

Definition at line 7796 of file Nano1X2Series.h.

◆ FCR [1/2]

__IO uint32_t LCD_T::FCR

FCR

Offset: 0x30 LCD frame counter control register

Bits Field Descriptions
[0] FCEN LCD Frame Counter Enable
0 = Disabled.
1 = Enabled.
[1] FCINTEN LCD Frame Counter Interrupt Enable
0 = Frame counter interrupt Disabled.
1 = Frame counter interrupt Enabled.
[3:2] PRESCL Frame Counter Pre-Scaler Value
00 = CLKframe/1.
01 = CLKframe/2.
10 = CLKframe/4.
11 = CLKframe/8.
[9:4] FCV Frame Counter Top Value
These 6 bits contain the top value of the Frame counter.

Definition at line 5530 of file Nano1X2Series.h.

◆ FCR [2/2]

__IO uint32_t RTC_T::FCR

FCR

Offset: 0x08 RTC Frequency Compensation Register

Bits Field Descriptions
[21:0] FCR Frequency Compensation Register
FCR = 32768 * 0x200000 / (LXT period).
LXT period: the clock period (Hz) of LXT.

Definition at line 7120 of file Nano1X2Series.h.

◆ FCSTS

__IO uint32_t LCD_T::FCSTS

FCSTS

Offset: 0x34 LCD frame counter status

Bits Field Descriptions
[0] FCSTS LCD Frame Counter Status
0 = Frame counter value does not reach FCV (Frame Count TOP value).
1 = Frame counter value reaches FCV (Frame Count TOP value).
If the FCINTEN is s enabled, the frame counter overflow Interrupt is generated.
[1] PDSTS Power-Down Interrupt Status
0 = Inform system manager that LCD controller is not ready to enter power-down state until this bit becomes 1 if power down is set and one frame is not executed completely.
1 = Inform system manager that LCD controller is ready to enter power-down state if power down is set and one frame is executed completely

Definition at line 5547 of file Nano1X2Series.h.

◆ FFCTL

__IO uint32_t SPI_T::FFCTL

FFCTL

Offset: 0x3C SPI FIFO Control Register

Bits Field Descriptions
[0] RX_CLR Receiving FIFO Counter Clear
0 = No clear the received FIFO.
1 = Clear the received FIFO.
Note: This bit is used to clear the receiver counter in FIFO Mode.
This bit can be written "1" to clear the receiver counter and this bit will be cleared to "0" automatically after clearing receiving counter.
After the clear operation, the flag of RX_EMPTY in SPI_STATUS[0] will be set to "1".
[1] TX_CLR Transmitting FIFO Counter Clear
0 = No clear the transmitted FIFO.
1 = Clear the transmitted FIFO.
Note: This bit is used to clear the transmit counter in FIFO Mode.
This bit can be written "1" to clear the transmitting counter and this bit will be cleared to "0" automatically after clearing transmitting counter.
After the clear operation, the flag of TX_EMPTY in SPI_STATUS[2] will be set to "1".
[2] RXINT_EN RX Threshold Interrupt Enable Control
0 = Rx threshold interrupt Disabled.
1 = RX threshold interrupt Enable.
[3] TXINT_EN TX Threshold Interrupt Enable Control
0 = TX threshold interrupt Disabled.
1 = TX threshold interrupt Enable.
[4] RXOVINT_EN RX FIFO Over Run Interrupt Enable Control
0 = RX FIFO over run interrupt Disabled.
1 = RX FIFO over run interrupt Enable.
[7] TIMEOUT_EN RX Read Time Out Function Enable Control
0 = RX read Timeout function Disabled.
1 = RX read Timeout function Enable.
[26:24] RX_THRESHOLD Received FIFO Threshold
If RX valid data counts large than RXTHRESHOLD, RXINT_STS (SPI_STATUS[8]) will set to 1,.
[30:28] TX_THRESHOLD Transmit FIFO Threshold
If TX valid data counts small or equal than TXTHRESHOLD, TXINT_STS (SPI_STATUS[10]) will set to 1.

Definition at line 8842 of file Nano1X2Series.h.

◆ FRQDIV0

__IO uint32_t CLK_T::FRQDIV0

FRQDIV0

Offset: 0x28 Frequency Divider0 Control Register

Bits Field Descriptions
[3:0] FSEL Divider Output Frequency Selection Bits
The formula of output frequency is
FCLK0 = FRQDIV0_CLK/2^(N+1),.
Where FRQDIV0_CLK is the input clock frequency, Fout is the frequency of divider output clock and N is the 4-bit value of FSEL[3:0].
[4] FDIV_EN Frequency Divider Enable Bit
0 = Frequency Divider Disabled.
1 = Frequency Divider Enabled.
[5] DIV1 Output Frequency Divide By 1
0 = Output frequency is equal to FCLK0.
1 = Output frequency is equal to FRQDIV0_CLK.

Definition at line 1320 of file Nano1X2Series.h.

◆ FRQDIV1

__IO uint32_t CLK_T::FRQDIV1

FRQDIV1

Offset: 0x38 Frequency Divider1 Control Register

Bits Field Descriptions
[3:0] FSEL Divider Output Frequency Selection Bits
The formula of output frequency is
FCLK1 = FRQDIV1_CLK /2^(N+1),.
Where FRQDIV1_CLK is the input clock frequency, Fout is the frequency of divider output clock and N is the 4-bit value of FSEL[3:0].
[4] FDIV_EN Frequency Divider Enable Bit
0 = Frequency Divider Disabled.
1 = Frequency Divider Enabled.
[5] DIV1 Output Frequency Divide By 1
0 = Output frequency is equal to FCLK1.
1 = Output frequency is equal to FRQDIV1_CLK.

Definition at line 1374 of file Nano1X2Series.h.

◆ FSR

__IO uint32_t UART_T::FSR

FSR

Offset: 0x18 UART FIFO State Status Register.

Bits Field Descriptions
[0] RX_OVER_F RX Overflow Error Status Flag (Read Only)
This bit is set when RX-FIFO overflow.
If the number of bytes of received data is greater than RX-FIFO (UART_RBR) size, 16 bytes of UART0/UART1, this bit will be set.
0 = RX FIFO is not overflow.
1 = RX FIFO is overflow.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[1] RX_EMPTY_F Receiver FIFO Empty (Read Only)
This bit initiate RX-FIFO empty or not.
When the last byte of RX-FIFO has been read by CPU, hardware sets this bit high.
It will be cleared when UART receives any new data.
0 = RX FIFO is not empty.
1 = RX FIFO is empty.
[2] RX_FULL_F Receiver FIFO Full (Read Only)
This bit initiates RX-FIFO full or not.
This bit is set when RX_POINTER_F is equal to 16, otherwise is cleared by hardware.
0 = RX FIFO is not full.
1 = RX FIFO is full.
[4] PE_F Parity Error State Status Flag (Read Only)
This bit is set to logic "1" whenever the received character does not have a valid "parity bit", and it is reset whenever the CPU writes "1" to this bit.
0 = No parity error is generated.
1 = Parity error is generated.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[5] FE_F Framing Error Status Flag (Read Only)
This bit is set to logic "1" whenever the received character does not have a valid "stop bit" (that is, the stop bit following the last data bit or parity bit is detected as a logic "0"), and it is reset whenever the CPU writes "1" to this bit.
0 = No framing error is generated.
1 = Framing error is generated.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[6] BI_F Break Status Flag (Read Only)
This bit is set to a logic "1" whenever the received data input(RX) is held in the "spacing state" (logic "0") for longer than a full word transmission time (that is, the total time of "start bit" + data bits + parity + stop bits) and it is reset whenever the CPU writes "1" to this bit.
0 = No Break interrupt is generated.
1 = Break interrupt is generated.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[8] TX_OVER_F TX Overflow Error Interrupt Status Flag (Read Only)
If TX-FIFO (UART_THR) is full, an additional write to UART_THR will cause this bit to logic "1".
0 = TX FIFO is not overflow.
1 = TX FIFO is overflow.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[9] TX_EMPTY_F Transmitter FIFO Empty (Read Only)
This bit indicates TX-FIFO empty or not.
When the last byte of TX-FIFO has been transferred to Transmitter Shift Register, hardware sets this bit high.
It will be cleared when writing data into THR (TX-FIFO not empty).
0 = TX FIFO is not empty.
1 = TX FIFO is empty.
[10] TX_FULL_F Transmitter FIFO Full (Read Only)
This bit indicates TX-FIFO full or not.
This bit is set when TX_POINTER_F is equal to 16, otherwise is cleared by hardware.
0 = TX FIFO is not full.
1 = TX FIFO is full.
[11] TE_F Transmitter Empty Status Flag (Read Only)
Bit is set by hardware when TX is inactive. (TX shift register does not have data)
Bit is cleared automatically when TX-FIFO is transfer data to TX shift register or TX is empty but the transfer does not finish.
0 = TX FIFO is not empty.
1 = TX FIFO is empty.
[20:16] RX_POINTER_F RX-FIFO Pointer (Read Only)
This field indicates the RX-FIFO Buffer Pointer.
When UART receives one byte from external device, RX_POINTER_F increases one.
When one byte of RX-FIFO is read by CPU, RX_POINTER_F decreases one.
[28:24] TX_POINTER_F TX-FIFO Pointer (Read Only)
This field indicates the TX-FIFO Buffer Pointer.
When CPU writes one byte data into UART_THR, TX_POINTER_F increases one.
When one byte of TX-FIFO is transferred to Transmitter Shift Register, TX_POINTER_F decreases one.

Definition at line 9855 of file Nano1X2Series.h.

◆ FUN_SEL

__IO uint32_t UART_T::FUN_SEL

FUN_SEL

Offset: 0x38 UART Function Select Register.

Bits Field Descriptions
[1:0] FUN_SEL Function Select Enable
00 = UART function mode.
01 = LIN function mode.
10 = IrDA Function.
11 = RS-485 Function.

Definition at line 10015 of file Nano1X2Series.h.

◆ GCRCSR

__IO uint32_t DMA_GCR_T::GCRCSR

GCRCSR

Offset: 0x00 DMA Global Control Register

Bits Field Descriptions
[9] CLK1_EN PDMA Controller Channel 1 Clock Enable Control
0 = Disabled.
1 = Enabled.
[10] CLK2_EN PDMA Controller Channel 2 Clock Enable Control
0 = Disabled.
1 = Enabled.
[11] CLK3_EN PDMA Controller Channel 3 Clock Enable Control
0 = Disabled.
1 = Enabled.
[12] CLK4_EN PDMA Controller Channel 4 Clock Enable Control
0 = Disabled.
1 = Enabled.
[24] CRC_CLK_EN CRC Controller Clock Enable Control
0 = Disabled.
1 = Enabled.

Definition at line 1944 of file Nano1X2Series.h.

◆ GCRISR

__I uint32_t DMA_GCR_T::GCRISR

GCRISR

Offset: 0x0C DMA Global Interrupt Status Register

Bits Field Descriptions
[1] INTR1 Interrupt Status Of Channel 1 (Read Only)
This bit is the interrupt status of PDMA channel1.
[2] INTR2 Interrupt Status Of Channel 2 (Read Only)
This bit is the interrupt status of PDMA channel2.
Note: This bit is read only
[3] INTR3 Interrupt Status Of Channel 3 (Read Only)
This bit is the interrupt status of PDMA channel3.
[4] INTR4 Interrupt Status Of Channel 4 (Read Only)
This bit is the interrupt status of PDMA channel4.
[16] INTRCRC Interrupt Status Of CRC Controller (Read Only)
This bit is the interrupt status of CRC controller

Definition at line 2055 of file Nano1X2Series.h.

◆ IER [1/7]

__IO uint32_t PDMA_T::IER

IER

Offset: 0x20 PDMA Interrupt Enable Register

Bits Field Descriptions
[0] TABORT_IE PDMA Read/Write Target Abort Interrupt Enable
0 = Target abort interrupt generation Disabled during PDMA transfer.
1 = Target abort interrupt generation Enabled during PDMA transfer.
[1] TD_IE PDMA Transfer Done Interrupt Enable
0 = Interrupt generator Disabled when PDMA transfer is done.
1 = Interrupt generator Enabled when PDMA transfer is done.
[5:2] WRA_BCR_IE Wrap Around Byte Count Interrupt Enable
0001 = Interrupt enable of PDMA_CBCR equals 0
0100 = Interrupt enable of PDMA_CBCR equals 1/2 PDMA_BCR.
[6] TO_IE Time-Out Interrupt Enable
0 = Time-out interrupt Disabled.
1 = Time-out interrupt Enabled.

Definition at line 2214 of file Nano1X2Series.h.

◆ IER [2/7]

__IO uint32_t GPIO_T::IER

IER

Offset: 0x1C GPIO Port Interrupt Enable Register

Bits Field Descriptions
[0] FIER0 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[1] FIER1 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[2] FIER2 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[3] FIER3 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[4] FIER4 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[5] FIER5 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[6] FIER6 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[7] FIER7 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[8] FIER8 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[9] FIER9 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[10] FIER10 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[11] FIER11 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[12] FIER12 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[13] FIER13 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[14] FIER14 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[15] FIER15 GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low
FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n].
Set bit "1" also enable the pin wake-up function.
When set the FIER[n] bit "1":
If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt.
1 = PIN[n] state low-level or high-to-low change interrupt Enabled.
0 = PIN[n] state low-level or high-to-low change interrupt Disabled.
Note: For GPIOF_IER, bits [15:6] are reserved.
[16] RIER0 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[17] RIER1 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[18] RIER2 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[19] RIER3 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[20] RIER4 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[21] RIER5 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[22] RIER6 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[23] RIER7 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[24] RIER8 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[25] RIER9 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[26] RIER10 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[27] RIER11 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[28] RIER12 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[29] RIER13 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[30] RIER14 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.
[31] RIER15 GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High
RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x].
Set bit "1" also enable the pin wake-up function.
When set the RIER[x] bit "1":
If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt.
If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt.
1 = PIN[x] level-high or low-to-high interrupt Enabled.
0 = PIN[x] level-high or low-to-high interrupt Disabled.
Note: For GPIOF_IE, bits [31:22] are reserved.

Definition at line 4613 of file Nano1X2Series.h.

◆ IER [3/7]

__IO uint32_t SC_T::IER

IER

Offset: 0x18 SC Interrupt Enable Register.

Bits Field Descriptions
[0] RDA_IE Receive Data Reach Interrupt Enable
This field is used for received data reaching trigger level (SC_CTL [RX_FTRI_LEV]) interrupt enable.
0 = INT_RDR Disabled.
1 = INT_RDR Enabled.
[1] TBE_IE Transmit Buffer Empty Interrupt Enable
This field is used for transmit buffer empty interrupt enable.
0 = INT_THRE Disabled.
1 = INT_THRE Enabled.
[2] TERR_IE Transfer Error Interrupt Enable
This field is used for transfer error interrupt enable.
The transfer error states is at SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F), receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_ERETRY) and transmitter retry over limit error (TX_OVER_ERETRY).
0 = INT_TERR Disabled.
1 = INT_TERR Enabled.
[3] TMR0_IE Timer0 Interrupt Enable
This field is used for TMR0 interrupt enable.
0 = INT_TMR0 Disabled.
1 = INT_TMR0 Enabled.
[4] TMR1_IE Timer1 Interrupt Enable
This field is used for TMR1 interrupt enable.
0 = INT_TMR1 Disabled.
1 = INT_TMR1 Enabled.
[5] TMR2_IE Timer2 Interrupt Enable
This field is used for TMR2 interrupt enable.
0 = INT_TMR2 Disabled.
1 = INT_TMR2 Enabled.
[6] BGT_IE Block Guard Time Interrupt Enable
This field is used for block guard time interrupt enable.
0 = INT_BGT Disabled.
1 = INT_BGT Enabled.
[7] CD_IE Card Detect Interrupt Enable
This field is used for card detect interrupt enable.
The card detect status register is SC_PINCSR [CD_CH] and SC_PINCSR[CD_CL].
0 = INT_CD Disabled.
1 = INT_CD Enabled.
[8] INIT_IE Initial End Interrupt Enable
This field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt enable.
0 = INT_INIT Disabled.
1 = INT_INIT Enabled.
[9] RTMR_IE Receiver Buffer Time-Out Interrupt Enable
This field is used for receiver buffer time-out interrupt enable.
0 = INT_RTMR Disabled.
1 = INT_RTMR Enabled.
[10] ACON_ERR_IE Auto Convention Error Interrupt Enable
This field is used for auto convention error interrupt enable.
0 = INT_ACON_ERR Disabled.
1 = INT_ACON_ERR Enabled.

Definition at line 7852 of file Nano1X2Series.h.

◆ IER [4/7]

__IO uint32_t TIMER_T::IER

IER

Offset: 0x0C Timer x Interrupt Enable Register

Bits Field Descriptions
[0] TMR_IE Timer Interrupt Enable Control
0 = Timer Interrupt Disabled.
1 = Timer Interrupt Enabled.
Note: If timer interrupt is enabled, the timer asserts its interrupt signal when the associated counter is equal to TMR_CMPR.
[1] TCAP_IE Timer Capture Function Interrupt Enable Control
0 = Timer External Pin Function Interrupt Disabled.
1 = Timer External Pin Function Interrupt Enabled.
Note: If timer external pin function interrupt is enabled, the timer asserts its interrupt signal when the TCAP_EN (TMRx_CTL[16]) is set and the transition of external pin matches the TCAP_EDGE (TMRx_CTL[19:18]) setting

Definition at line 9226 of file Nano1X2Series.h.

◆ IER [5/7]

__IO uint32_t UART_T::IER

IER

Offset: 0x0C UART Interrupt Enable Register.

Bits Field Descriptions
[0] RDA_IE Receive Data Available Interrupt Enable
0 = INT_RDA Masked off.
1 = INT_RDA Enabled.
[1] THRE_IE Transmit Holding Register Empty Interrupt Enable
0 = INT_THRE Masked off.
1 = INT_THRE Enabled.
[2] RLS_IE Receive Line Status Interrupt Enable
0 = INT_RLS Masked off.
1 = INT_RLS Enabled.
[3] MODEM_IE Modem Status Interrupt Enable
0 = INT_MOS Masked off.
1 = INT_MOS Enabled.
[4] RTO_IE RX Time-Out Interrupt Enable
0 = INT_TOUT Masked off.
1 = INT_TOUT Enabled.
[5] BUF_ERR_IE Buffer Error Interrupt Enable
0 = INT_BUT_ERR Masked off.
1 = INT_BUF_ERR Enabled.
[6] WAKE_IE Wake-Up Interrupt Enable
0 = INT_WAKE Masked off.
1 = INT_WAKE Enabled.
[7] ABAUD_IE Auto-Baud Rate Interrupt Enable
0 = INT_ABAUD Masked off.
1 = INT_ABAUD Enabled.
[8] LIN_IE LIN Interrupt Enable
0 = INT_LIN Masked off.
1 = INT_LIN Enabled.

Definition at line 9666 of file Nano1X2Series.h.

◆ IER [6/7]

__IO uint32_t WDT_T::IER

IER

Offset: 0x04 Watchdog Timer Interrupt Enable Register

Bits Field Descriptions
[0] WDT_IE Watchdog Timer Interrupt Enable
0 = Watchdog timer interrupt Disabled.
1 = Watchdog timer interrupt Enabled.

Definition at line 10361 of file Nano1X2Series.h.

◆ IER [7/7]

__IO uint32_t WWDT_T::IER

IER

Offset: 0x08 Window Watchdog Timer Interrupt Enable Register

Bits Field Descriptions
[0] WWDTIE WWDT Interrupt Enable
Setting this bit will enable the Watchdog timer interrupt function.
0 = Watchdog timer interrupt function Disabled.
1 = Watchdog timer interrupt function Enabled.

Definition at line 10494 of file Nano1X2Series.h.

◆ IMD

__IO uint32_t GPIO_T::IMD

IMD

Offset: 0x18 GPIO Port Interrupt Mode Control Register

Bits Field Descriptions
[15:0] IMD GPIO Port [X] Pin [N] Edge Or Level Detection Interrupt Control
IMD[n] used to control the interrupt is by level trigger or by edge trigger.
If the interrupt is by edge trigger, the trigger source is control de-bounce.
If the interrupt is by level trigger, the input source is sampled by one clock and the generate the interrupt.
0 = Edge trigger interrupt.
1 = Level trigger interrupt.
If set pin as the level trigger interrupt, then only one level can be set on the registers GPIOX_IER.
If set both the level to trigger interrupt, the setting is ignored and no interrupt will occur.
The de-bounce function is valid for edge triggered interrupt.
If the interrupt mode is level triggered, the de-bounce enable bit is ignored.
Note: For GPIOF_IMD, bits [15:6] are reserved.

Definition at line 4315 of file Nano1X2Series.h.

◆ INIR

__IO uint32_t RTC_T::INIR

INIR

Offset: 0x00 RTC Initiation Register

Bits Field Descriptions
[0] ACTIVE RTC Active Status (Read Only)
0 = RTC is at reset state.
1 = RTC is at normal active state.
[31:1] INIR RTC Initiation (Write Only)
When RTC block is powered on, RTC is at reset state.
User has to write a number (0x a5eb1357) to INIR to make RTC leaving reset state.
Once the INIR is written as 0xa5eb1357, the RTC will be in un-reset state permanently.
The INIR is a write-only field and read value will be always "0".

Definition at line 7091 of file Nano1X2Series.h.

◆ Int_VREFCTL

__IO uint32_t SYS_T::Int_VREFCTL

Int_VREFCTL

Offset: 0x6C Internal Voltage Reference Control Register

Bits Field Descriptions
[0] BGP_EN Band-Gap Enable Control
This is a protected register. Please refer to open lock sequence to program it.
Band-gap is the reference voltage of internal reference voltage.
User must enable band-gap if want to enable internal 1.5, 1.8V or 2.5V reference voltage.
0 = Disabled.
1 = Enabled.
[1] REG_EN Regulator Enable Control
Enable internal 1.5, 1.8V or 2.5V reference voltage.
This is a protected register. Please refer to open lock sequence to program it.
0 = Disabled.
1 = Enabled.
[3:2] SEL25 Regulator Output Voltage Selection
Select internal reference voltage level.
This is a protected register. Please refer to open lock sequence to program it.
00 = 1.5V.
01 = 1.8V.
10 = 2.5V.
11 = 2.5V.
[4] EXT_MODE Regulator External Mode
This is a protected register. Please refer to open lock sequence to program it.
Users can output regulator output voltage in VREF pin if EXT_MODE is high.
0 = No connection with external VREF pin.
1 = Connect to external VREF pin.
Connect a 1uF to 10uF capacitor to AVSS will let internal voltage reference be more stable.
[11:8] VREF_TRIM Internal Voltage Reference Trim

Definition at line 3488 of file Nano1X2Series.h.

◆ INTEN

__IO uint32_t PWM_T::INTEN

INTEN

Offset: 0x0C PWM Interrupt Enable Register

Bits Field Descriptions
[0] TMIE0 PWM Timer 0 Interrupt Enable Control
0 = Disabled.
1 = Enabled.
[1] TMIE1 PWM Timer 1 Interrupt Enable Control
0 = Disabled.
1 = Enabled.
[2] TMIE2 PWM Timer 2 Interrupt Enable Control
0 = Disabled.
1 = Enabled.
[3] TMIE3 PWM Timer 3 Interrupt Enable Control
0 = Disabled.
1 = Enabled.

Definition at line 5870 of file Nano1X2Series.h.

◆ INTSTS [1/2]

__IO uint32_t I2C_T::INTSTS

INTSTS

Offset: 0x04 I2C Interrupt Status Register

Bits Field Descriptions
[0] INTSTS I2C STATUS's Interrupt Status
0 = No bus event occurred.
1 = New state is presented in the I2CSTATUS. Software can write 1 to cleat this bit.
[1] TIF Time-Out Status
0 = No Time-out flag. Software can cleat this flag.
1 = Time-Out flag active and it is set by hardware. It can interrupt CPU when INTEN bit is set.
[7] WAKEUP_ACK_DONE Wakeup Address Frame Acknowledge Bit Done
0 = The ACK bit cycle of address match frame isn't done.
1 = The ACK bit cycle of address match frame is done in power-down.

Definition at line 4947 of file Nano1X2Series.h.

◆ INTSTS [2/2]

__IO uint32_t PWM_T::INTSTS

INTSTS

Offset: 0x10 PWM Interrupt Indication Register

Bits Field Descriptions
[0] TMINT0 PWM Timer 0 Interrupt Flag
Flag is set by hardware when PWM0 down counter reaches 0, software can clear this bit by writing a one to it.
[1] TMINT1 PWM Timer 1 Interrupt Flag
Flag is set by hardware when PWM1 down counter reaches 0, software can clear this bit by writing a one to it.
[2] TMINT2 PWM Timer 2 Interrupt Flag
Flag is set by hardware when PWM2 down counter reaches 0, software can clear this bit by writing a one to it.
[3] TMINT3 PWM Timer 3 Interrupt Flag
Flag is set by hardware when PWM3 down counter reaches 0, software can clear this bit by writing a one to it.
[4] Duty0Syncflag Duty0 Synchronize Flag
0 = Duty0 has been synchronized to PWM_CLK domain of channel 0, 1.
1 = Duty0 is synchronizing to PWM_CLK domain of channel 0, 1.
Note: software should check this flag when writing duty0, if this flag is set, and user ignore this flag and change duty0, the corresponding CNR and CMR may be wrong for one duty cycle
[5] Duty1Syncflag Duty1 Synchronize Flag
0 = Duty1 has been synchronized to PWM_CLK domain of channel 0, 1.
1 = Duty1 is synchronizing to PWM_CLK domain of channel 0, 1.
Note: software should check this flag when writing duty1, if this flag is set, and user ignore this flag and change duty1, the corresponding CNR and CMR may be wrong for one duty cycle
[6] Duty2Syncflag Duty2 Synchronize Flag
0 = Duty2 has been synchronized to PWM_CLK domain of channel 2, 3.
1 = Duty2 is synchronizing to PWM_CLK domain of channel 2, 3.
Note: software should check this flag when writing duty2, if this flag is set, and user ignore this flag and change duty2, the corresponding CNR and CMR may be wrong for one duty cycle
[7] Duty3Syncflag Duty3 Synchronize Flag
0 = Duty3 has been synchronized to PWM_CLK domain of channel 2, 3.
1 = Duty3 is synchronizing to PWM_CLK domain of channel 2, 3.
Note: software should check this flag when writing duty3, if this flag is set, and user ignore this flag and change duty3, the corresponding CNR and CMR may be wrong for one duty cycle
[8] PresSyncFlag Prescale Synchronize Flag
0 = Two Prescales have been synchronized to corresponding PWM_CLK (of channel 0,1 or channel 2, 3) domain respectively.
1 = Prescale01 is synchronizing to PWM_CLK domain of channel 0,1 or Prescaler23 is synchronizing to PWM_CLK domain of channel 2, 3.
Note: software should check this flag when writing Prescale, if this flag is set, and user ignore this flag and change Prescale, the Prescale may be wrong for one prescale cycle

Definition at line 5908 of file Nano1X2Series.h.

◆ IPRST_CTL1

__IO uint32_t SYS_T::IPRST_CTL1

IPRST_CTL1

Offset: 0x08 Peripheral Reset Control Resister1

Bits Field Descriptions
[0] CHIP_RST Chip One-Shot Reset
This is a protected register. Please refer to open lock sequence to program it.
Setting this bit will reset the whole chip, including Cortex-M0 core and all peripherals like power-on reset and this bit will automatically return to "0" after the 2 clock cycles.
The chip setting from flash will be also reloaded when chip one shot reset.
0 = Normal.
1 = Reset chip.
Note: In the following conditions, chip setting from flash will be reloaded.
Power-on Reset
Brown-out-Detected Reset
Low level on the nRESET pin
Set IPRST_CTL1[CHIP_RST]
[1] CPU_RST Cortex-M0 Core One-Shot Reset
This is a protected register. Please refer to open lock sequence to program it.
Setting this bit will only reset the Cortex-M0 core and Flash Memory Controller (FMC), and this bit will automatically return to "0" after the 2 clock cycles
0 = Normal.
1 = Reset Cortex-M0 core.
[2] DMA_RST DMA Controller Reset
This is a protected register. Please refer to open lock sequence to program it.
Set this bit "1" will generate a reset signal to the DMA.
SW needs to set this bit to low to release reset signal.
0 = Normal operation.
1 = DMA IP reset.

Definition at line 2758 of file Nano1X2Series.h.

◆ IPRST_CTL2

__IO uint32_t SYS_T::IPRST_CTL2

IPRST_CTL2

Offset: 0x0C Peripheral Reset Control Resister2

Bits Field Descriptions
[1] GPIO_RST GPIO Controller Reset
0 = GPIO module normal operation.
1 = GPIO module reset.
[2] TMR0_RST Timer0 Controller Reset
0 = Timer0 module normal operation.
1 = Timer0 module reset.
[3] TMR1_RST Timer1 Controller Reset
0 = Timer1 module normal operation.
1 = Timer1 module reset.
[4] TMR2_RST Timer2 Controller Reset
0 = Timer2 module normal operation.
1 = Timer2 module reset.
[5] TMR3_RST Timer3 Controller Reset
0 = Timer3 module normal operation.
1 = Timer3 module reset.
[8] I2C0_RST I2C0 Controller Reset
0 = I2C0 module normal operation.
1 = I2C0 module reset.
[9] I2C1_RST I2C1 Controller Reset
0 = I2C1 module normal operation.
1 = I2C1 module reset.
[12] SPI0_RST SPI0 Controller Reset
0 = SPI0 module normal operation.
1 = SPI0 module reset.
[13] SPI1_RST SPI1 Controller Reset
0 = SPI1 module normal operation.
1 = SPI1 module reset.
[16] UART0_RST UART0 Controller Reset
0 = UART0 module normal operation.
1 = UART0 module reset.
[17] UART1_RST UART1 Controller Reset
0 = UART1 module normal operation.
1 = UART1 module reset.
[20] PWM0_RST PWM0 Controller Reset
0 = PWM0 module normal operation.
1 = PWM0 module reset.
[22] ACMP01_RST Comparator Controller Reset
0 = Comparator module normal operation.
1 = Comparator module reset.
[26] LCD_RST LCD Controller Reset
0 = LCD module normal operation.
1 = LCD module reset.
[28] ADC_RST ADC Controller Reset
0 = ADC module normal operation.
1 = ADC module reset.
[30] SC0_RST SmartCard 0 Controller Reset
0 = SmartCard module normal operation.
1 = SmartCard module reset.
[31] SC1_RST SmartCard1 Controller Reset
0 = SmartCard module normal operation.
1 = SmartCard module reset.

Definition at line 2819 of file Nano1X2Series.h.

◆ IRCR

__IO uint32_t UART_T::IRCR

IRCR

Offset: 0x30 UART IrDA Control Register.

Bits Field Descriptions
[1] TX_SELECT TX_SELECT
0 = IrDA receiver Enabled.
1 = IrDA transmitter Enabled.
Note: In IrDA mode, the DIV_16_EN (UART_BAUD[31]) register must be set (the baud equation must be Clock / 16 * (BRD)
[5] INV_TX INV_TX
0 = No inversion.
1 = Inverse TX output signal.
[6] INV_RX INV_RX
0 = No inversion.
1 = Inverse RX input signal.

Definition at line 9947 of file Nano1X2Series.h.

◆ IRCTRIMCTL

__IO uint32_t SYS_T::IRCTRIMCTL

IRCTRIMCTL

Offset: 0x80 HIRC Trim Control Register

Bits Field Descriptions
[1:0] TRIM_SEL Trim Frequency Selection
This field indicates the target frequency of HIRC auto trim.
If no any target frequency is selected (TRIM_SEL is 00), the HIRC auto trim function is disabled.
During auto trim operation, if 32.768 kHz clock error detected or trim retry limitation count reached, this field will be cleared to 00 automatically.
00 = Disable HIRC auto trim function
01 = Enable HIRC auto trim function and trim HIRC to 11.0592 MHz
10 = Enable HIRC auto trim function and trim HIRC to 12 MHz
11 = Enable HIRC auto trim function and trim HIRC to 16 MHz
[5:4] TRIM_LOOP Trim Calculation Loop
This field defines that trim value calculation is based on how many 32.768 kHz clock.
00 = 4 x 32.768 kHz clock
01 = 8 x 32.768 kHz clock
10 = 16 x 32.768 kHz clock
11 = 32 x 32.768 kHz clock
[7:6] TRIM_RETRY_CNT Trim Value Update Limitation Count
This field defines that how many times the auto trim circuit will try to update the HIRC trim value before the frequency of HIRC locked.
Once the HIRC locked, the internal trim value update counter will be reset.
If the trim value update counter reached this limitation value and frequency of HIRC still doesn't lock, the auto trim operation will be disabled and TRIM_SEL will be cleared to 00.
00 = Trim retry count limitation is 64
01 = Trim retry count limitation is 128
10 = Trim retry count limitation is 256
11 = Trim retry count limitation is 512
[8] ERR_STOP Trim Stop When 32.768 KHz Error Detected
This bit is used to control if stop the HIRC trim operation when 32.768 kHz clock error is detected.
If set this bit high and 32.768 kHz clock error detected, the status 32K_ERR_INT would be set high and HIRC trim operation was stopped.
If this bit is low and 32.768 kHz clock error detected, the status 23K_ERR_INT would be set high and HIRC trim operation is continuously.
0 = Continue the HIRC trim operation even if 32.768 kHz clock error detected.
1 = Stop the HIRC trim operation if 32.768 kHz clock error detected.

Definition at line 3549 of file Nano1X2Series.h.

◆ IRCTRIMIEN

__IO uint32_t SYS_T::IRCTRIMIEN

IRCTRIMIEN

Offset: 0x84 HIRC Trim Interrupt Enable Register

Bits Field Descriptions
[1] TRIM_FAIL_IEN Trim Failure Interrupt Enable Control
This bit controls if an interrupt will be triggered while HIRC trim value update limitation count reached and HIRC frequency still not locked on target frequency set by TRIM_SEL.
If this bit is high and TRIM_FAIL_INT is set during auto trim operation, an interrupt will be triggered to notify that HIRC trim value update limitation count was reached.
0 = TRIM_FAIL_INT status Disabled to trigger an interrupt to CPU.
1 = TRIM_FAIL_INT status Enabled to trigger an interrupt to CPU.
[2] 32K_ERR_IEN 32.768 KHz Clock Error Interrupt Enable Control
This bit controls if CPU would get an interrupt while 32.768 kHz clock is inaccuracy during auto trim operation.
If this bit is high, and 32K_ERR_INT is set during auto trim operation, an interrupt will be triggered to notify the 32.768 kHz clock frequency is inaccuracy.
0 = 32K_ERR_INT status Disabled to trigger an interrupt to CPU.
1 = 32K_ERR_INT status Enabled to trigger an interrupt to CPU.

Definition at line 3569 of file Nano1X2Series.h.

◆ IRCTRIMINT

__IO uint32_t SYS_T::IRCTRIMINT

IRCTRIMINT

Offset: 0x88 HIRC Trim Interrupt Status Register

Bits Field Descriptions
[0] FREQ_LOCK HIRC Frequency Lock Status
This bit indicates the HIRC frequency lock.
This is a status bit and doesn't trigger any interrupt.
[1] TRIM_FAIL_INT Trim Failure Interrupt Status
This bit indicates that HIRC trim value update limitation count reached and HIRC clock frequency still doesn't lock.
Once this bit is set, the auto trim operation stopped and TRIM_SEL will be cleared to 00 by hardware automatically.
If this bit is set and TRIM_FAIL_IEN is high, an interrupt will be triggered to notify that HIRC trim value update limitation count was reached.
Write 1 to clear this to zero.
0 = Trim value update limitation count doesn't reach.
1 = Trim value update limitation count reached and HIRC frequency still doesn't lock.
[2] 32K_ERR_INT 32.768 KHz Clock Error Interrupt Status
This bit indicates that 32.768 kHz clock frequency is inaccuracy.
Once this bit is set, the auto trim operation stopped and TRIM_SEL will be cleared to 00 by hardware automatically.
If this bit is set and 32K_ERR_IEN is high, an interrupt will be triggered to notify the 32.768 kHz clock frequency is inaccuracy.
Write 1 to clear this to zero.
0 = 32.768 kHz clock frequency is accuracy.
1 = 32.768 kHz clock frequency is inaccuracy.

Definition at line 3596 of file Nano1X2Series.h.

◆ ISPADR

__IO uint32_t FMC_T::ISPADR

ISPADR

Offset: 0x04 ISP Address Register

Bits Field Descriptions
[31:0] ISPADR ISP Address
This chip supports word program only.
ISPADR[1:0] must be kept 00b for ISP operation, and ISPADR[8:0] must be kept all 0 for Vector Page Re-map Command.

Definition at line 2519 of file Nano1X2Series.h.

◆ ISPCMD

__IO uint32_t FMC_T::ISPCMD

ISPCMD

Offset: 0x0C ISP Command Register

Bits Field Descriptions
[3:0] FCTRL ISP Command
The ISP command table is shown as follows
Read (FOEN = 0, FCEN = 0, FCRTL = 0000)
Program (FOEN = 1, FCEN = 0, FCRTL = 0001)
Page Erase (FOEN = 1, FCEN = 0, FCRTL = 0010)
Read CID (FOEN = 0, FCEN = 0, FCRTL = 1011)
Read DID (FOEN = 0, FCEN = 0, FCRTL = 1100)
[4] FCEN ISP Command
The ISP command table is shown as above.
[5] FOEN ISP Command
The ISP command table is shown as above.

Definition at line 2553 of file Nano1X2Series.h.

◆ ISPCON

__IO uint32_t FMC_T::ISPCON

ISPCON

Offset: 0x00 ISP Control Register

Bits Field Descriptions
[0] ISPEN ISP Enable Control (Write Protect)
ISP function enable bit. Set this bit to enable ISP function.
0 = ISP function Disabled.
1 = ISP function Enabled.
[1] BS Boot Select (Write Protect)
Set/clear this bit to select next booting from LDROM/APROM, respectively.
This bit also functions as chip booting status flag, which can be used to check where chip booted from.
This bit is initiated with the inversed value of CBS in Config0 after power-on reset; It keeps the same value at other reset.
0 = Boot from APROM.
1 = Boot from LDROM.
[3] APUEN APROM Update Enable Control (Write Protect)
0 = APROM cannot be updated.
1 = APROM can be updated.
[4] CFGUEN Enable Config-Bits Update By ISP (Write Protect)
0 = ISP update User Configuration Disabled.
1 = ISP update User Configuration Enabled.
[5] LDUEN LDROM Update Enable Control (Write Protect)
0 = LDROM cannot be updated.
1 = LDROM can be updated.
[6] ISPFF ISP Fail Flag (Write Protect)
This bit is set by hardware when a triggered ISP meets any of the following conditions:
(1) APROM writes to itself if APUEN is set to 0 or CBS[0]=1.
(2) LDROM writes to itself if LDUEN is set to 0 or CBS[0]=1.
(3) User Configuration is erased/programmed when CFGUEN is 0.
(4) Destination address is illegal, such as over an available range.
Note: Write 1 to clear this bit to 0.

Definition at line 2506 of file Nano1X2Series.h.

◆ ISPDAT

__IO uint32_t FMC_T::ISPDAT

ISPDAT

Offset: 0x08 ISP Data Register

Bits Field Descriptions
[31:0] ISPDAT ISP Data
Write data to this register before ISP program operation
Read data from this register after ISP read operation

Definition at line 2532 of file Nano1X2Series.h.

◆ ISPSTA

__I uint32_t FMC_T::ISPSTA

ISPSTA

Offset: 0x40 ISP Status Register

Bits Field Descriptions
[0] ISPBUSY ISP Busy (Read Only)
0 = ISP operation is finished.
1 = ISP operation is busy.
[2:1] CBS Config Boot Selection Status (Read Only)
This filed is a mirror of CBS in CONFIG0.
[5] PGFF Auto Flash Program Verified Fail Flag
This chip will perform flash verification automatically at the end of ISP PROGRAM operation, and set 1 to this bit when flash data is not matched with programming.
This bit is clear to 0 by "ERASE" command.
[6] ISPFF ISP Fail Flag
(1) APROM writes to itself if APUEN is set to 0 or CBS[0]=1.
(2) LDROM writes to itself if LDUEN is set to 0 or CBS[0]=1.
(3) User Configuration is erased/programmed when CFGUEN is 0.
(4) Destination address is illegal, such as over an available range.
Note: Write 1 to clear this bit to 0.

Definition at line 2607 of file Nano1X2Series.h.

◆ ISPTRG

__IO uint32_t FMC_T::ISPTRG

ISPTRG

Offset: 0x10 ISP Trigger Register

Bits Field Descriptions
[0] ISPGO ISP Start Trigger
Write 1 to start ISP operation and this bit will be cleared to 0 by hardware automatically when ISP operation is finished.
0 = ISP operation is finished.
1 = ISP is progressing.

Definition at line 2567 of file Nano1X2Series.h.

◆ ISR [1/5]

__IO uint32_t PDMA_T::ISR

ISR

Offset: 0x24 PDMA Interrupt Status Register

Bits Field Descriptions
[0] TABORT_IS PDMA Read/Write Target Abort Interrupt Status Flag
0 = No bus ERROR response received.
1 = Bus ERROR response received.
Note1: This bit is cleared by writing "1" to itself.
Note2: The PDMA_ISR [TABORT_IF] indicate bus master received ERROR response or not, if bus master received occur it means that target abort is happened.
PDMA controller will stop transfer and respond this event to software then go to IDLE state.
When target abort occurred, software must reset PDMA controller, and then transfer those data again.
[1] TD_IS Transfer Done Interrupt Status Flag
This bit indicates that PDMA has finished all transfer.
0 = Not finished yet.
1 = Done.
Note: This bit is cleared by writing "1" to itself.
[5:2] WRA_BCR_IS Wrap Around Transfer Byte Count Interrupt Status Flag
WRA_BCR_IS [0] (xxx1) = PDMA_CBCR equal 0 flag.
WRA_BCR_IS [2] (x1xx) = PDMA_CBCR equal 1/2 PDMA_BCR flag.
Note: Each bit is cleared by writing "1" to itself.
This field is only valid in wrap around mode.
(PDMA_CSR[DAD_SEL] =11 or PDMA_CSR[SAD_SEL] =11).
[6] TO_IS Time-Out Interrupt Status Flag
This flag indicated that PDMA has waited peripheral request for a period defined by PDMA_TCR.
0 = No time-out flag.
1 = Time-out flag.
Note: This bit is cleared by writing "1" to itself.

Definition at line 2247 of file Nano1X2Series.h.

◆ ISR [2/5]

__IO uint32_t SC_T::ISR

ISR

Offset: 0x1C SC Interrupt Status Register.

Bits Field Descriptions
[0] RDA_IS Receive Data Reach Interrupt Status Flag (Read Only)
This field is used for received data reaching trigger level (SC_CTL [RX_FTRI_LEV]) interrupt status flag.
Note: This field is the status flag of received data reaching SC_CTL [RX_FTRI_LEV].
If software reads data from SC_RBR and receiver pointer is less than SC_CTL [RX_FTRI_LEV], this bit will be cleared automatically.
[1] TBE_IS Transmit Buffer Empty Interrupt Status Flag (Read Only)
This field is used for transmit buffer empty interrupt status flag.
This bit is different with SC_TRSR [TX_EMPTY_F] flag and SC_TRSR [TX_ATV] flag; The TX_EMPTY_F will be set when the last byte data be read to shift register and TX_ATV flag indicates the transmitter is in active or not (the last data has been transmitted or not), but the TBE_IS may be set when the last byte data be read to shift register or the last data has been transmitted.
When this bit assert, software can write 1~4 byte data to SC_THR register.
Note: If software wants to clear this bit, software must write data to SC_THR register and then this bit will be cleared automatically.
[2] TERR_IS Transfer Error Interrupt Status Flag (Read Only)
This field is used for transfer error interrupt status flag.
The transfer error states is at SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F) and receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_ERETRY) and transmitter retry over limit error (TX_OVER_ERETRY).
Note: This field is the status flag of SC_TRSR [RX_EBR_F], SC_TRSR [RX_EFR_F], SC_TRSR [RX_EPA_F], SC_TRSR [RX_OVER_F], SC_TRSR [TX_OVER_F], SC_TRSR [RX_OVER_ERETRY] or SC_TRSR [TX_OVER_ERETRY].
So if software wants to clear this bit, software must write "1" to each field.
[3] TMR0_IS Timer0 Interrupt Status Flag (Read Only)
This field is used for TMR0 interrupt status flag.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[4] TMR1_IS Timer1 Interrupt Status Flag (Read Only)
This field is used for TMR1 interrupt status flag.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[5] TMR2_IS Timer2 Interrupt Status Flag (Read Only)
This field is used for TMR2 interrupt status flag.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[6] BGT_IS Block Guard Time Interrupt Status Flag (Read Only)
This field is used for block guard time interrupt status flag.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[7] CD_IS Card Detect Interrupt Status Flag (Read Only)
This field is used for card detect interrupt status flag.
The card detect status register is SC_PINCSR [CD_INS_F] and SC_PINCSR [CD_REM_F].
Note: This field is the status flag of SC_PINCSR [CD_INS_F] or SC_PINCSR [CD_REM_F].
So if software wants to clear this bit, software must write "1" to this field.
[8] INIT_IS Initial End Interrupt Status Flag (Read Only)
This field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt status flag.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[9] RTMR_IS Receiver Buffer Time-Out Interrupt Status Flag (Read Only)
This field is used for receiver buffer time-out interrupt status flag.
Note: This field is the status flag of receiver buffer time-out state.
If software wants to clear this bit, software must read the receiver buffer remaining data by reading SC_RBR register,.
[10] ACON_ERR_IS Auto Convention Error Interrupt Status Flag (Read Only)
This field indicates auto convention sequence error.
If the received TS at ATR state is not 0x3B or 0x3F, this bit will be set.
Note: This bit is read only, but can be cleared by writing "1" to it.

Definition at line 7904 of file Nano1X2Series.h.

◆ ISR [3/5]

__IO uint32_t TIMER_T::ISR

ISR

Offset: 0x10 Timer x Interrupt Status Register

Bits Field Descriptions
[0] TMR_IS Timer Interrupt Status
This bit indicates the interrupt status of Timer.
This bit is set by hardware when the up counting value of internal 24-bit counter matches the timer compared value (TMR_CMPR).
Write 1 to clear this bit to 0.
If this bit is active and TMR_IE (TMRx_IER[0]) is enabled, Timer will trigger an interrupt to CPU.
[1] TCAP_IS Timer Capture Function Interrupt Status
This bit indicates the external pin function interrupt status of Timer.
This bit is set by hardware when TCAP_EN (TMRx_CTL[16]) is set high, and the transition of external pin matches the TCAP_EDGE (TMRx_CTL[19:18]) setting.
Write 1 to clear this bit to 0.
If this bit is active and TCAP_IE (TMRx_IER[1]) is enabled, Timer will trigger an interrupt to CPU.
[4] TMR_WAKE_STS Timer Wake-Up Status
If timer causes CPU wakes up from power-down mode, this bit will be set to high.
It must be cleared by software with a write 1 to this bit.
0 = Timer does not cause system wake-up.
1 = Wakes system up from power-down mode by Timer timeout.
[5] NCAP_DET_STS New Capture Detected Status
This status is to indicate there is a new incoming capture event detected before CPU clearing the TCAP_IS (TMRx_ISR[1]) status.
If the above condition occurred, the Timer will keep register TMRx_TCAP unchanged and drop the new capture value.
Write 1 to clear this bit to 0.
0 = New incoming capture event didn't detect before CPU clearing TCAP_IS (TMRx_ISR[1]) status.
1 = New incoming capture event detected before CPU clearing TCAP_IS (TMRx_ISR[1]) status.
[6] TCAP_IS_FEDGE TC Pin Edge Detect Is Falling
This flag indicates the edge detected in TC pin is rising edge or falling edge.
Timer only updates this flag when it updates the Timer Capture Data (TMR_TCAP[23:0]) value.
When a new incoming capture event detected before CPU clearing the TCAP_IS (TMRx_ISR[1]) status, Timer will keep this bit unchanged.
0 = TC pin edge detected is rising edge.
1 = TC pin edge detected is falling edge.

Definition at line 9263 of file Nano1X2Series.h.

◆ ISR [4/5]

__IO uint32_t UART_T::ISR

ISR

Offset: 0x10 UART Interrupt Status Register.

Bits Field Descriptions
[0] RDA_IS Receive Data Available Interrupt Flag (Read Only)
When the number of bytes in the RX-FIFO equals the RFITL then the RDA_IF will be set.
If RDA_IEN (UART_IER[0]) is set then the RDA interrupt will be generated.
0 = No Receive Data available interrupt is generated.
1 = Receive Data available interrupt is generated.
Note: This bit is read only and it will be cleared when the number of unread bytes of RX-FIFO drops below the threshold level (RFITL).
[1] THRE_IS Transmit Holding Register Empty Interrupt Flag (Read Only)
This bit is set when the last data of TX-FIFO is transferred to Transmitter Shift Register.
If THRE_IEN (UART_IER[1]) is set that the THRE interrupt will be generated.
0 = No Transmit Holding register empty interrupt is generated.
1 = Transmit Holding register empty interrupt generated.
Note: This bit is read only and it will be cleared when writing data into THR (TX-FIFO not empty).
[2] RLS_IS Receive Line Interrupt Status Flag (Read Only)
This bit is set when the RX received data has parity error (PE_F (UART_FSR[4])), framing error (FE_F (UART_FSR[5])), break error (BI_F (UART_FSR[6])) or RS-485 detect address byte (RS-485_ADDET_F (UART_TRSR[0])).If RLS_IE (UART_IER[2]) is set then the RLS interrupt will be generated.
0 = No Receive Line interrupt is generated.
1 = Receive Line interrupt is generated.
Note1: This bit is read only, but can be cleared by it by writing "1" to BI_F (UART_FSR[6]), FE_F (UART_FSR[5]), PE_F (UART_FSR[4]) or RS-485_ADDET_F (UART_TRSR[0]).
Note2: This bit is cleared when the BI_F, FE_F, PE_F and RS-485_ADDET_F are cleared.
[3] MODEM_IS MODEM Interrupt Status Flag (Read Only)
This bit is set when the CTSn pin has state change (DCTSF = "1").
If MODEM_IEN (UART_IER[3]) is set then the modem interrupt will be generated.
0 = No MODEM interrupt is generated.
1 = MODEM interrupt is generated.
Note: This bit is read only, but can be cleared by it by writing "1" to DCT_F (UART_MCSR[18]).
[4] RTO_IS RX Time-Out Interrupt Status Flag (Read Only)
This bit is set when the RX-FIFO is not empty and no activities occur in the RX-FIFO and the time-out counter equal to TOIC.
If RTO_IE (UART_IER[4]) is set then the tout interrupt will be generated.
0 = No RX Time-Out interrupt is generated.
1 = RX Time-Out interrupt is generated.
Note: This bit is read only and user can read UART_RBR (RX is in active) to clear it.
[5] BUF_ERR_IS Buffer Error Interrupt Status Flag (Read Only)
This bit is set when the TX or RX-FIFO overflowed.
When BUF_ERR_IS is set, the transfer maybe not correct.
If BUF_ERR_IE (UART_IER[5]) is set then the buffer error interrupt will be generated.
0 = No Buffer error interrupt is generated.
1 = Buffer error interrupt is generated.
Note1: This bit is read only, but can be cleared by it by writing "1" to TX_OVER_F (UART_FSR[8]) or RX_OVER_F (UART_FSR[0]).
Note2: This bit is cleared when both the TX_OVER_F and RX_OVER_F are cleared.
[6] WAKE_IS Wake-Up Interrupt Status Flag (Read Only)
This bit is set in Power-down mode, the receiver received data or CTSn signal.
If WAKE_IE (UART_IER[6]) is set then the wake-up interrupt will be generated.
0 = No Wake-Up interrupt is generated.
1 = Wake-Up interrupt is generated.
Note: This bit is read only, but can be cleared by it by writing "1" to it.
[7] ABAUD_IS Auto-Baud Rate Interrupt Status Flag (Read Only)
This bit is set when auto-baud rate detection function finished or the auto-baud rate counter was overflow and if ABAUD_IE (UART_IER[7]) is set then the auto-baud rate interrupt will be generated.
0 = No Auto-Baud Rate interrupt is generated.
1 = Auto-Baud Rate interrupt is generated.
Note1: This bit is read only, but can be cleared by it by writing "1" to ABAUD_TOUT_F (UART_TRSR[2]) or ABAUD_F (UART_TRSR[1]).
Note2: This bit is cleared when both the ABAUD_TOUT_F and ABAUD_F are cleared.
[8] LIN_IS LIN Interrupt Status Flag (Read Only)
This bit is set when the LIN TX header transmitted, RX header received or the SIN does not equal SOUT and if LIN_IE(UART_IER[8]) is set then the LIN interrupt will be generated.
0 = No LIN interrupt is generated.
1 = LIN interrupt is generated.
Note1: This bit is read only, but can be cleared by it by writing "1" to BIT_ERR_F (UART_TRSR[5]), LIN_TX_F (UART_TRSR[3]) or LIN_RX_F (UART_TRSR[4]).
Note2: This bit is cleared when both the BIT_ERR_F, LIN_TX_F and LIN_RX_F are cleared.

Definition at line 9732 of file Nano1X2Series.h.

◆ ISR [5/5]

__IO uint32_t WDT_T::ISR

ISR

Offset: 0x08 Watchdog Timer Interrupt Status Register

Bits Field Descriptions
[0] IS Watchdog Timer Interrupt Status
If the Watchdog timer interrupt is enabled, then the hardware will set this bit to indicate that the Watchdog timer interrupt has occurred.
If the Watchdog timer interrupt is not enabled, then this bit indicates that a time-out period has elapsed.
0 = Watchdog timer interrupt did not occur.
1 = Watchdog timer interrupt occurs.
Note: This bit is read only, but can be cleared by writing "1" to it.
[1] RST_IS Watchdog Timer Reset Status
When the Watchdog timer initiates a reset, the hardware will set this bit.
This flag can be read by software to determine the source of reset.
Software is responsible to clear it manually by writing "1" to it.
If WTRE is disabled, then the Watchdog timer has no effect on this bit.
0 = Watchdog timer reset did not occur.
1 = Watchdog timer reset occurs.
Note: This bit is read only, but can be cleared by writing "1" to it.
[2] WAKE_IS Watchdog Timer Wake-Up Status
If Watchdog timer causes system to wake up from power-down mode, this bit will be set to high.
It must be cleared by software with a write "1" to this bit.
0 = Watchdog timer does not cause system wake-up.
1 = Wake system up from power-down mode by Watchdog time-out.
Note1: When system in power-down mode and watchdog time-out, hardware will set WDT_WAKE_IS and WDT_IS.
Note2: After one engine clock, this bit can be cleared by writing "1" to it

Definition at line 10392 of file Nano1X2Series.h.

◆ ISRC

__IO uint32_t GPIO_T::ISRC

ISRC

Offset: 0x20 GPIO Port Interrupt Trigger Source Status Register

Bits Field Descriptions
[15:0] ISRC GPIO Port [X] Pin [N] Interrupt Trigger Source Indicator
Read :
1 = Port x[n] generate an interrupt.
0 = No interrupt at Port x[n].
Write:
1 = Clear the correspond pending interrupt.
0 = No action.
Note: For GPIOF_ISRC, bits [15:6] are reserved.

Definition at line 4631 of file Nano1X2Series.h.

◆ LDO_CTL

__IO uint32_t SYS_T::LDO_CTL

LDO_CTL

Offset: 0x70 LDO Control Register

Bits Field Descriptions
[0] LDO_PD LDO Power Off
This is a protected register. Please refer to open lock sequence to program it.
Set this bit high will off LDO and cause Chip in unexpected state. User must keep this bit low.
0 = LDO Enabled.
1 = LDO Disabled.
[3:2] LDO_LEVEL LDO Output Voltage Select
This is a protected register. Please refer to open lock sequence to program it.
00 = Reserved.
01 = 1.6V.
10 = 1.8V.
11 = 1.8V.

Definition at line 3509 of file Nano1X2Series.h.

◆ LIR

__I uint32_t RTC_T::LIR

LIR

Offset: 0x24 Leap Year Indicator Register

Bits Field Descriptions
[0] LIR Leap Year Indication REGISTER (Read Only)
0 = This year is not a leap year.
1 = This year is leap year.

Definition at line 7229 of file Nano1X2Series.h.

◆ MCSR

__IO uint32_t UART_T::MCSR

MCSR

Offset: 0x1C UART Modem State Status Register.

Bits Field Descriptions
[0] LEV_RTS RTSn Trigger Level
This bit can change the RTSn trigger level.
0 = low level triggered.
1 = high level triggered.
Note: In RS-485 AUD mode and RTS Auto-flow control mode, hardware will control the output RTS pin automatically, so the table indicates the default value.
Note: The default setting in UART mode is LEV_RTS = "0" and RTS_ST = "1".
[1] RTS_ST RTSn Pin State (Read Only)
This bit is the pin status of RTSn.
0 = RTS pin input is low level voltage logic state.
1 = RTS pin input is high level voltage logic state.
[16] LEV_CTS CTSn Trigger Level
This bit can change the CTSn trigger level.
0 = Low level triggered.
1 = High level triggered.
[17] CTS_ST CTSn Pin Status (Read Only)
This bit is the pin status of CTSn.
0 = CTS pin input is low level voltage logic state.
1 = CTS pin input is high level voltage logic state.
[18] DCT_F Detect CTSn State Change Status Flag (Read Only)
This bit is set whenever CTSn input has change state, and it will generate Modem interrupt to CPU when MODEM_IE (UART_IER[3]).
0 = CTS input has not change state.
1 = CTS input has change state.
Note: This bit is read only, but it can be cleared by writing "1" to it.

Definition at line 9888 of file Nano1X2Series.h.

◆ MEM_0

__IO uint32_t LCD_T::MEM_0

MEM_0

Offset: 0x08 LCD SEG3 ~ SEG0 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5361 of file Nano1X2Series.h.

◆ MEM_1

__IO uint32_t LCD_T::MEM_1

MEM_1

Offset: 0x0C LCD SEG7 ~ SEG4 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5379 of file Nano1X2Series.h.

◆ MEM_2

__IO uint32_t LCD_T::MEM_2

MEM_2

Offset: 0x10 LCD SEG11 ~ SEG8 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5397 of file Nano1X2Series.h.

◆ MEM_3

__IO uint32_t LCD_T::MEM_3

MEM_3

Offset: 0x14 LCD SEG15 ~ SEG12 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5415 of file Nano1X2Series.h.

◆ MEM_4

__IO uint32_t LCD_T::MEM_4

MEM_4

Offset: 0x18 LCD SEG19 ~ SEG16 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5433 of file Nano1X2Series.h.

◆ MEM_5

__IO uint32_t LCD_T::MEM_5

MEM_5

Offset: 0x1C LCD SEG23 ~ SEG20 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5451 of file Nano1X2Series.h.

◆ MEM_6

__IO uint32_t LCD_T::MEM_6

MEM_6

Offset: 0x20 LCD SEG27 ~ SEG24 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5469 of file Nano1X2Series.h.

◆ MEM_7

__IO uint32_t LCD_T::MEM_7

MEM_7

Offset: 0x24 LCD SEG31 ~ SEG28 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5487 of file Nano1X2Series.h.

◆ MEM_8

__IO uint32_t LCD_T::MEM_8

MEM_8

Offset: 0x28 LCD SEG35 ~ SEG32 data

Bits Field Descriptions
[5:0] SEG_0_4x SEG_0_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[14:8] SEG_1_4x SEG_1_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[21:16] SEG_2_4x SEG_2_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data
[29:24] SEG_3_4x SEG_3_4x DATA for COM0 ~ COM5 (x= 0 ~ 8)
LCD display data

Definition at line 5505 of file Nano1X2Series.h.

◆ MODCR0

__IO uint32_t ACMP_T::MODCR0

MODCR0

Offset: 0x10 Analog Comparator 0 Mode Control Register

Bits Field Descriptions
[1:0] MOD_SEL Comparator Mode Selection
00 = Normal Comparator Mode.
01 = Sigma-Delta ADC Mode.
10 = Single Slope ADC Mode.
11 = Reserved.
[2] TMR_SEL Analog Comparator 0 Co-Operation Timer Selection
0 = Select TIMER0 as co-operation Timer.
1 = Select TIMER2 as co-operation Timer.
[3] TMR_TRI_LV Timer Trigger Level
This bit is for Sigma-Delta ADC Mode.
0 = Comparator Output Low to High to Enable Timer.
1 = Comparator Output High to Low to Enable Timer.
[6:4] CH_DIS_PIN_SEL Charge Or Discharge Pin Selection
000 = PA.1.
001 = PA.2.
010 = PA.3.
011 = PA.4.
100 = PA.5.
101 = PA.6.
110 = PA.14.
111 = PF.5.
[7] CH_DIS_FUN_SEL Charge Or Discharge Pin Function Option
This bit is for Single Slope ADC Mode only.
0 = Drive low on charge pin to dis-charge capacitor and drive high on charge pin to charge capacitor.
1 = Drive high on charge pin to dis-charge capacitor and drive low on charge pin to charge capacitor.
[8] START Start ADC Mode
0 = Stop Sigma-Delta ADC Mode or Single Slope ADC Mode.
1 = Start Sigma-Delta ADC Mode or Single Slope ADC Mode.

Definition at line 287 of file Nano1X2Series.h.

◆ OE

__IO uint32_t PWM_T::OE

OE

Offset: 0x14 PWM Output Enable for PWM0~PWM3

Bits Field Descriptions
[0] CH0_OE PWM CH0 Output Enable Control
0 = PWM CH0 output to pin Disabled.
1 = PWM CH0 output to pin Enabled.
[1] CH1_OE PWM CH1 Output Enable Control
0 = PWM CH1 output to pin Disabled.
1 = PWM CH1 output to pin Enabled.
[2] CH2_OE PWM CH2 Output Enable Control R
0 = PWM CH2 output to pin Disabled.
1 = PWM CH2 output to pin Enabled.
[3] CH3_OE PWM CH3 Output Enable Control
0 = PWM CH3 output to pin Disabled.
1 = PWM CH3 output to pin Enabled.

Definition at line 5930 of file Nano1X2Series.h.

◆ OFFD

__IO uint32_t GPIO_T::OFFD

OFFD

Offset: 0x04 GPIO Port Pin OFF Digital Enable Register

Bits Field Descriptions
[31:16] OFFD GPIO Port [X] Pin [N] Digital Input Path Disable
Determine if the digital input path of GPIO port [x] pin [n] is disabled.
0 = Digital input path of GPIO port [x] pin [n] Enabled.
1 = Digital input path of GPIO port [x] pin [n] Disabled (tied digital input to low).
Note: For GPIOF_OFFD, bits [31:22] are reserved.

Definition at line 4228 of file Nano1X2Series.h.

◆ PA_H_MFP

__IO uint32_t SYS_T::PA_H_MFP

PA_H_MFP

Offset: 0x34 Port A High Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PA8_MFP PA.8 Pin Function Selection
0000 = GPIOA[8]
0100 = SmartCard0 Power pin
[7:4] PA9_MFP PA.9 Pin Function Selection
0000 = GPIOA[9]
0100 = SmartCard0 RST pin
[11:8] PA10_MFP PA.10 Pin Function Selection
0000 = GPIOA[10]
0100 = SmartCard0 CLK pin
[15:12] PA11_MFP PA.11 Pin Function Selection
0000 = GPIOA[11]
0010 = ADC external trigger input.
0100 = SmartCard0 DATA pin(SC0_UART_RXD)
[18:16] PA12_MFP PA.12 Pin Function Selection
0000 = GPIOA[12]
0011 = Comparator1 P-end input
0101 = I2C 0 clock pin
0110 = SPI1 1st MOSI (Master Out, Slave In) pin
0111 = UART0 Data transmitter output pin(This pin could modulate with PWM0 output. Please refer PWM_SEL(UARTx_CTL[26:24])).
1000 = LCD segment output 19 at 48-pin package
[22:20] PA13_MFP PA.13 Pin Function Selection
0000 = GPIOA[13]
0011 = Comparator1 N-end input
0101 = I2C0 data I/O pin
0110 = SPI1 1st MISO (Master In, Slave Out) pin
0111 = UART0 Data receiver input pin
1000 = LCD segment output 18 at 48-pin package
[26:24] PA14_MFP PA.14 Pin Function Selection
0000 = GPIOA[14]
0101 = I2C1 clock pin
0110 = SPI1 serial clock pin
1000 = LCD segment output 17 at 48-pin package, LCD segment output 31 at 64-pin package
1001 = Comparator0 charge/discharge path
[31:28] PA15_MFP PA.15 Pin Function Selection
0000 = GPIOA[15]
0010 = Timer3 capture input
0011 = Comparator1 output
0101 = I2C1 data I/O pin
0110 = SPI1 1st slave select pin
1000 = LCD segment output 16 at 48-pin package, LCD segment output 30 at 64-pin package

Definition at line 2941 of file Nano1X2Series.h.

◆ PA_L_MFP

__IO uint32_t SYS_T::PA_L_MFP

PA_L_MFP

Offset: 0x30 Port A Low Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PA0_MFP PA.0 Pin Function Selection
0000 = GPIOA[0]
0010 = ADC input channel 0
[6:4] PA1_MFP PA.1 Pin Function Selection
0000 = GPIOA[1]
0010 = ADC analog input1
0011 = Comparator0 P-end input3
1001 = Comparator0 charge/discharge path
[11:8] PA2_MFP PA.2 Pin Function Selection
0000 = GPIOA[2]
0001 = External interrupt0 input pin
0010 = ADC analog input2
0011 = Comparator0 P-end input2
0100 = SmartCard0 clock pin(SC0_UART_TXD)
1001 = Comparator0 charge/discharge path
[14:12] PA3_MFP PA.3 Pin Function Selection
0000 = GPIOA[3]
0001 = External interrupt 1
0010 = ADC analog input3
0011 = Comparator0 P-end input1
0100 = SmartCard0 DATA pin(SC0_UART_RXD)
1001 = Comparator0 charge/discharge path
[19:16] PA4_MFP PA.4 Pin Function Selection
0000 = GPIOA[4]
0010 = ADC analog input4
0011 = Comparator0 P-end input0
0100 = SmartCard0 card detect pin
1001 = Comparator0 charge/discharge path
[23:20] PA5_MFP PA.5 Pin Function Selection
0000 = GPIOA[5]
0010 = ADC analog input5
0011 = Comparator0 N-end input0
0100 = SmartCard0 Power pin
0101 = I2C1 data I/O pin
0110 = SPI1 1st slave select pin
1001 = Comparator0 charge/discharge path
[27:24] PA6_MFP PA.6 Pin Function Selection
0000 = GPIOA[6]
0010 = ADC analog input6
0011 = Comparator0 output
0100 = SmartCard0 RST pin
1001 = Comparator0 charge/discharge path
[31:28] PA7_MFP PA.7 Pin Function Selection
0000 = GPIOA[7]
0010 = ADC input channel 7
0100 = SmartCard1 card detect

Definition at line 2891 of file Nano1X2Series.h.

◆ PB_H_MFP

__IO uint32_t SYS_T::PB_H_MFP

PB_H_MFP

Offset: 0x3C Port B High Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PB8_MFP PB.8 Pin Function Selection
0000 = GPIOB[8]
0001 = External interrupt1 input pin
0010 = Timer0 external counter input or Timer0 toggle out.
0011 = PWM0 Channel0 output
0100 = Snooper pin
1000 = LCD segment output 32 at 100-pin package
[7:4] PB9_MFP PB.9 Pin Function Selection
0000 = GPIOB[9]
0011 = PWM0 Channel1 output
1000 = LCD segment output 31 at 100-pin package
[11:8] PB10_MFP PB.10 Pin Function Selection
0000 = GPIOB[10]
0110 = SPI0 2nd MOSI (Master Out, Slave In) pin
0111 = UART1 Data receiver input pin
1000 = LCD segment output 24 at 64-pin package, LCD segment output 28 at 100-pin package
[15:12] PB11_MFP PB.11 Pin Function Selection
0000 = GPIOB[11]
0010 = Timer1 external counter input or Timer1 toggle out
0110 = SPI0 2nd MISO (Master In, Slave Out) pin
0111 = UART1 Request to Send output pin
1000 = LCD segment output 23 at 64-pin package, LCD segment output 27 at 100-pin package
[19:16] PB12_MFP PB.12 Pin Function Selection
0000 = GPIOB[12]
0001 = Frequency Divider0 output pin
0010 = Timer0 external counter input or Timer0 toggle out.
0110 = SPI0 1st MOSI (Master Out, Slave In) pin
0111 = UART0 Request to Send output pin
1000 = LCD segment output 15 at 48-pin package, LCD segment output 22 at 64-pin package, LCD segment output 26 at 100-pin package
[23:20] PB13_MFP PB.13 Pin Function Selection
0000 = GPIOB[13]
0110 = SPI0 1st MISO (Master In, Slave Out) pin
0111 = UART0 Data receiver input pin
1000 = LCD segment output 14 at 48-pin package, LCD segment output 21 at 64-pin package, LCD segment output 25 at 100-pin package
[27:24] PB14_MFP PB.14 Pin Function Selection
0000 = GPIOB[14]
0110 = SPI0 serial clock pin
0111 = UART0 Data transmitter output pin(This pin could modulate with PWM0 output)
1000 = LCD segment output 13 at 48-pin package, LCD segment output 20 at 64-pin package, LCD segment output 24 at 100-pin package
[31:28] PB15_MFP PB.15 Pin Function Selection
0000 = GPIOB[15]
0110 = SPI0 1st slave select pin
0111 = UART0 Clear to Send input pin
1000 = LCD segment output 12 at 48-pin package, LCD segment output 19 at 64-pin package, LCD segment output 23 at 100-pin package

Definition at line 3050 of file Nano1X2Series.h.

◆ PB_L_MFP

__IO uint32_t SYS_T::PB_L_MFP

PB_L_MFP

Offset: 0x38 Port B Low Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PB0_MFP PB.0 Pin Function Selection
0000 = GPIOB[0]
0001 = Frequency Divider1 output pin
0111 = UART0 Data transmitter output pin(This pin could modulate with PWM0 output. Please refer PWM_SEL(UARTx_CTL[26:24])).
1000 = LCD segment output 29 at 64-pin package
[7:4] PB1_MFP PB.1 Pin Function Selection
0000 = GPIOB[1]
0001 = External interrupt1 input pin
0010 = Timer 2 capture input
0111 = UART0 Data receiver input pin
1000 = LCD segment output 28 at 64-pin package
[11:8] PB2_MFP PB.2 Pin Function Selection
0000 = GPIOB[2]
0010 = Timer3 external counter input
0101 = I2C0 clock pin
0110 = SPI1 2nd MOSI (Master Out, Slave In) pin
0111 = UART0 Request to Send output pin
1000 = LCD segment output 27 at 64-pin package
[15:12] PB3_MFP PB.3 Pin Function Selection
0000 = GPIOB[3]
0010 = Timer2 external counter input
0101 = I2C0 data I/O pin
0110 = SPI1 2nd MISO (Master In, Slave Out) pin
0111 = UART0 Clear to Send input pin
1000 = LCD segment output 26 at 64-pin package
[19:16] PB4_MFP PB.4 Pin Function Selection
0000 = GPIOB[4]
0110 = SPI1 2nd MISO (Master In, Slave Out) pin
0111 = UART1 Request to Send output pin
[23:20] PB5_MFP PB.5 Pin Function Selection
0000 = GPIOB[5]
0110 = SPI1 2nd MOSI (Master Out, Slave In) pin SmartCard0 RST
0111 = UART1 Data receiver input pin
1000 = LCD segment output 35 at 100-pin package
[27:24] PB6_MFP PB.6 Pin Function Selection
0000 = GPIOB[6]
0001 = Frequency Divider0 output pin
0110 = SPI1 2nd slave select pin
0111 = UART1 Data transmitter output pin(This pin could modulate with PWM0 output. Please refer PWM_SEL(UARTx_CTL[26:24])).
1000 = LCD segment output 25 at 64-pin package, LCD segment output 34 at 100-pin package
[31:28] PB7_MFP PB.7 Pin Function Selection
0000 = GPIOB[7]
0100 = SmartCard0 card detect
0111 = UART1 Clear to Send input pin
1000 = LCD segment output 33 at 100-pin package

Definition at line 2996 of file Nano1X2Series.h.

◆ PC_H_MFP

__IO uint32_t SYS_T::PC_H_MFP

PC_H_MFP

Offset: 0x44 Port C High Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PC8_MFP PC.8 Pin Function Selection
0000 = GPIOC[8]
0100 = SmartCard0 RST pin
0111 = UART1 Data transmitter output pin(This pin could modulate with PWM0 output. Please refer PWM_SEL(UARTx_CTL[26:24])).
1000 = LCD segment output 3 at 48-pin package, LCD segment output 10 at 64-pin package, LCD segment output 14 at 100-pin package
[7:4] PC9_MFP PC.9 Pin Function Selection
1000 = LCD segment output 2 at 48-pin package, LCD segment output 9 at 64-pin package, LCD segment output 13 at 100-pin package
0000 = GPIOC[9]
[11:8] PC10_MFP PC.10 Pin Function Selection
0000 = GPIOC[10]
0100 = SmartCard1 card detect
0101 = I2C1 clock pin
1000 = LCD segment output 12 at 100-pin package
[15:12] PC11_MFP PC.11 Pin Function Selection
0000 = GPIOC[11]
0100 = SmartCard1 PWR pin
0101 = I2C 1 data I/O pin
1000 = LCD segment output 11 at 100-pin package
[19:16] PC12_MFP PC.12 Pin Function Selection
0000 = GPIOC[12]
0100 = SmartCard1 clock pin(SC1_UART_TXD)
1000 = LCD segment output 10 at 100-pin package
[23:20] PC13_MFP PC.13 Pin Function Selection
0000 = GPIOC[13]
0100 = SmartCard1 DATA pin(SC1_UART_RXD)
1000 = LCD segment output 9 at 100-pin package
[27:24] PC14_MFP PC.14 Pin Function Selection
0000 = GPIOC[14]
0100 = SmartCard1 card detect
1000 = LCD segment output 1 at 48-pin package, LCD segment output 8 at 64-pin package, LCD segment output 8 at 100-pin package
[31:28] PC15_MFP PC.15 Pin Function Selection
0000 = GPIOC[15]
0100 = SmartCard1 PWR pin
1000 = LCD segment output 0 at 48-pin package, LCD segment output 7 at 64-pin package, LCD segment output 7 at 100-pin package

Definition at line 3145 of file Nano1X2Series.h.

◆ PC_L_MFP

__IO uint32_t SYS_T::PC_L_MFP

PC_L_MFP

Offset: 0x40 Port C Low Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PC0_MFP PC.0 Pin Function Selection
0000 = GPIOC[0]
0011 = PWM0 Channel0 output
0101 = I2C0 clock pin
0110 = SPI0 2nd slave select pin
1000 = LCD segment output 11 at 48-pin package, LCD segment output 18 at 64-pin package, LCD segment output 22 at 100-pin package
[7:4] PC1_MFP PC.1 Pin Function Selection
0000 = GPIOC[1]
0011 = PWM0 Channel1 output
0101 = I2C0 data I/O pin
1000 = LCD segment output 10 at 48-pin package, LCD segment output 17 at 64-pin package, LCD segment output 21 at 100-pin package
[11:8] PC2_MFP PC.2 Pin Function Selection
0000 = GPIOC[2]
0011 = PWM0 Channel2 output
0101 = I2C1 clock pin
1000 = LCD segment output 9 at 48-pin package, LCD segment output 16 at 64-pin package, LCD segment output 20 at 100-pin package
[15:12] PC3_MFP PC.3 Pin Function Selection
0000 = GPIOC[3]
0011 = PWM0 Channel3 output
0101 = I2C1 data I/O pin
1000 = LCD segment output 8 at 48-pin package, LCD segment output 15 at 64-pin package, LCD segment output 19 at 100-pin package
[19:16] PC4_MFP PC.4 Pin Function Selection
0000 = GPIOC[4]
0001 = External interrupt0 input pin
0100 = SmartCard0 clock pin(SC0_UART_TXD)
0111 = UART1 Clear to Send input pin
1000 = LCD segment output 7 at 48-pin package, LCD segment output 14 at 64-pin package, LCD segment output 18 at 100-pin package
[23:20] PC5_MFP PC.5 Pin Function Selection
0000 = GPIOC[5]
0100 = SmartCard0 card detect pin
1000 = LCD segment output 6 at 48-pin package, LCD segment output 13 at 64-pin package, LCD segment output 17 at 100-pin package
[27:24] PC6_MFP PC.6 Pin Function Selection
0000 = GPIOC[6]
0100 = SmartCard0 DATA pin(SC0_UART_RXD)
0111 = UART1 Request to Send output pin
1000 = LCD segment output 5 at 48-pin package, LCD segment output 12 at 64-pin package, LCD segment output 16 at 100-pin package
[31:28] PC7_MFP PC.7 Pin Function Selection
0000 = GPIOC[7]
0100 = SmartCard0 Power pin
0111 = UART1 Data receiver input pin
1000 = LCD segment output 4 at 48-pin package, LCD segment output 11 at 64-pin package, LCD segment output 15 at 100-pin package

Definition at line 3101 of file Nano1X2Series.h.

◆ PD_H_MFP

__IO uint32_t SYS_T::PD_H_MFP

PD_H_MFP

Offset: 0x4C Port D High Byte Multiple Function Control Register

Bits Field Descriptions
[2:0] PD8_MFP PD.8 Pin Function Selection
0000 = GPIOD[8]
0100 = SmartCard1 DATA pin(SC1_UART_RXD)
1000 = LCD common output 2 at 48-pin, LCD common output 2 at 64-pin package, LCD common output 2 at 100-pin package
[6:4] PD9_MFP PD.9 Pin Function Selection
0000 = GPIOD[9]
0011 = PWM0 Channel3 output
0100 = SmartCard1 RST pin
1000 = LCD common output 1 at 48-pin, LCD common output 1 at 64-pin package, LCD common output 1 at 100-pin package
[10:8] PD10_MFP PD.10 Pin Function Selection
0000 = GPIOD[10]
0010 = Timer1 capture input
0011 = PWM0 Channel2 output
1000 = LCD common output 0 at 48-pin, LCD common output 0 at 64-pin package, LCD common output 0 at 100-pin package
[14:12] PD11_MFP PD.11 Pin Function Selection
0000 = GPIOD[11]
0010 = Timer0 capture input
0011 = PWM0 Channel1 output
1000 = LCD external capacitor pin of charge pump circuit at 64-pin package, LCD external capacitor pin of charge pump circuit at 100-pin package
[18:16] PD12_MFP PD.12 Pin Function Selection
0000 = GPIOD[12]
0001 = Frequency Divider0 output pin
0010 = Timer1 external counter input or Timer1 toggle out
0011 = PWM0 Channel0 output
1000 = LCD external capacitor pin of charge pump circuit at 64-pin package, LCD external capacitor pin of charge pump circuit at 100-pin package
1001 = 1, 1/2, 1/4, 1/16 Hz clock output
[22:20] PD13_MFP PD.13 Pin Function Selection
0000 = GPIOD[13]
0001 = External interrupt 1 input pin
1000 = LCD Unit voltage for LCD charge pump circuit at 48-pin package, LCD Unit voltage for LCD charge pump circuit at 64-pin package, LCD Unit voltage for LCD charge pump circuit at 100-pin package
[27:24] PD14_MFP PD.14 Pin Function Selection
0000 = GPIOD[14]
1000 = LCD Unit voltage for LCD charge pump circuit at 48-pin package, LCD Unit voltage for LCD charge pump circuit at 64-pin package, LCD Unit voltage for LCD charge pump circuit at 100-pin package
[30:28] PD15_MFP PD.15 Pin Function Selection
0000 = GPIOD[15]
1000 = LCD Unit voltage for LCD charge pump circuit at 48-pin package, LCD Unit voltage for LCD charge pump circuit at 64-pin package, LCD Unit voltage for LCD charge pump circuit at 100-pin package

Definition at line 3227 of file Nano1X2Series.h.

◆ PD_L_MFP

__IO uint32_t SYS_T::PD_L_MFP

PD_L_MFP

Offset: 0x48 Port D Low Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PD0_MFP PD.0 Pin Function Selection
0000 = GPIOD[0]
1000 = LCD segment output 6 at 64-pin package, LCD segment output 6 at 100-pin package
[7:4] PD1_MFP PD.1 Pin Function Selection
0000 = GPIOD[1]
1000 = LCD segment output 5 at 64-pin package, LCD segment output 5 at 100-pin package
[11:8] PD2_MFP PD.2 Pin Function Selection
0000 = GPIOD[2]
1000 = LCD segment output 4 at 64-pin package, LCD segment output 4 at 100-pin package
[15:12] PD3_MFP PD.3 Pin Function Selection
0000 = GPIOD[3]
1000 = LCD segment output 3 at 64-pin package, LCD segment output 3 at 100-pin package
[19:16] PD4_MFP PD.4 Pin Function Selection
0000 = GPIOD[4]
0100 = SmartCard1 RST pin
1000 = LCD segment output 2 at 64-pin package, LCD segment output 2 at 100-pin package
[23:20] PD5_MFP PD.5 Pin Function Selection
0000 = GPIOD[5]
1000 = LCD segment output 1 at 64-pin package(or as LD_COM5), LCD segment output 1 at 100-pin package(or as LD_COM5)
[27:24] PD6_MFP PD.6 Pin Function Selection
0000 = GPIOD[6]
1000 = LCD segment output 0 at 64-pin package(or as LD_COM4), LCD segment output 0 at 100-pin package(or as LD_COM4)
[31:28] PD7_MFP PD.7 Pin Function Selection
0000 = GPIOD[7]
0100 = SmartCard1 clock pin(SC1_UART_TXD)
1000 = LCD common output 3 at 48-pin package, LCD common output 3 at 64-pin, LCD common output 3 at 100-pin package

Definition at line 3181 of file Nano1X2Series.h.

◆ PDID

__I uint32_t SYS_T::PDID

PDID

Offset: 0x00 Part Device Identification Number Register

Bits Field Descriptions
[31:0] PDID Part Device ID
This register reflects device part number code.
Software can read this register to identify which device is used.

Definition at line 2692 of file Nano1X2Series.h.

◆ PDMA

__I uint32_t ADC_T::PDMA

PDMA

Offset: 0x60 A/D PDMA current transfer data Register

Bits Field Descriptions
[11:0] AD_PDMA ADC PDMA Current Transfer Data Register
When PDMA transferring, read this register can monitor current PDMA transfer data.
This is a read only register.

Definition at line 648 of file Nano1X2Series.h.

◆ PDMACH0

__I uint32_t PWM_T::PDMACH0

PDMACH0

Offset: 0x80 PDMA Channel 0 Captured Data

Bits Field Descriptions
[7:0] PDMACH01 Captured Data Of Channel 0 When CH01CASK Is Disabled, It Is The Capturing Value(CFL0/CRL0) For Channel 0
When CH01CASK is enabled, It is the for the first byte of 32 bit capturing data for channel 0
[15:8] PDMACH02 Captured Data Of Channel 0
When CH01CASK is disabled, it is the capturing value(CFL0/CRL0) for channel 0
When CH01CASK is enabled, It is the second byte of 32 bit capturing data for channel 0
[23:16] PDMACH03 Captured Data Of Channel 0 When CH01CASK Is Disabled, This Byte Is 0
When CH01CASK is enabled, It is the third byte of 32 bit capturing data for channel 0
[31:24] PDMACH04 Captured Data Of Channel 0
When CH01CASK is disabled, this byte is 0
When CH01CASK is enabled, It is the 4th byte of 32 bit capturing data for channel 0

Definition at line 6532 of file Nano1X2Series.h.

◆ PDMACH2

__I uint32_t PWM_T::PDMACH2

PDMACH2

Offset: 0x84 PDMA Channel 2 Captured Data

Bits Field Descriptions
[7:0] PDMACH21 Captured Data Of Channel 2 When CH23CASK Is Disabled, It Is The Capturing Value(CFL2/CRL2) For Channel 2
When CH23CASK is enabled, It is the for the first byte of 32 bit capturing data for channel 2
[15:8] PDMACH22 Captured Data Of Channel 2
When CH23CASK is disabled, it is the capturing value(CFL2/CRL2) for channel 2
When CH23CASK is enabled, It is the second byte of 32 bit capturing data for channel 2
[23:16] PDMACH23 Captured Data Of Channel 2
When CH23CASK is disabled, this byte is 0
When CH23CASK is enabled, It is the third byte of 32 bit capturing data for channel 2
[31:24] PDMACH24 Captured Data Of Channel 2
When CH23CASK is disabled, this byte is 0
When CH23CASK is enabled, It is the 4th byte of 32 bit capturing data for channel 2

Definition at line 6553 of file Nano1X2Series.h.

◆ PE_H_MFP

__IO uint32_t SYS_T::PE_H_MFP

PE_H_MFP

Offset: 0x54 Port E High Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PE8_MFP PE.8 Pin Function Selection
0000 = GPIOE[8]
0011 = PWM0 Channel2 output
1000 = LCD segment output 30 at 100-pin package
[7:4] PE9_MFP PE.9 Pin Function Selection
0000 = GPIOE[9]
0011 = PWM0 Channel3 output
1000 = LCD segment output 29 at 100-pin package

Definition at line 3279 of file Nano1X2Series.h.

◆ PE_L_MFP

__IO uint32_t SYS_T::PE_L_MFP

PE_L_MFP

Offset: 0x50 Port E Low Byte Multiple Function Control Register

Bits Field Descriptions
[2:0] PE0_MFP PE.0 Pin Function Selection
0000 = GPIOE[0]
0110 = SPI0 1st MOSI (Master Out, Slave In) pin
[6:4] PE1_MFP PE.1 Pin Function Selection
0000 = GPIOE[1]
0110 = SPI0 1st MISO (Master In, Slave Out) pin
[10:8] PE2_MFP PE.2 Pin Function Selection
0000 = GPIOE[2]
0110 = SPI0 serial clock pin
[15] PE3_MFP PE.3 Pin Function Selection
0000 = GPIOE[4]
0110 = SPI0 1st slave select pin
[18:16] PE4_MFP PE.4 Pin Function Selection
0000 = GPIOE[4]
0100 = SmartCard1 RST pin
[23:20] PE5_MFP PE.5 Pin Function Selection
0000 = GPIOE[5]
0100 = SmartCard1 PWR pin
[27:24] PE6_MFP PE.6 Pin Function Selection
0000 = GPIOE[6]
0100 = SmartCard1 clock pin(SC1_UART_TXD)
[31:28] PE7_MFP PE.7 Pin Function Selection
0000 = GPIOE[7]
0100 = SmartCard1 DATA pin(SC1_UART_RXD)

Definition at line 3261 of file Nano1X2Series.h.

◆ PF_L_MFP

__IO uint32_t SYS_T::PF_L_MFP

PF_L_MFP

Offset: 0x58 Port F Low Byte Multiple Function Control Register

Bits Field Descriptions
[3:0] PF0_MFP PF.0 Pin Function Selection
0000 = GPIOF[1]
0010 = Timer3 external counter input or Timer3 toggle out.
1111 = External 32.768 kHz crystal input pin(default)
[7:4] PF1_MFP PF.1 Pin Function Selection
0000 = GPIOF[1]
0010 = Timer2 external counter input or Timer2 toggle out.
1111 = External 32.768 kHz crystal output pin(default)
[11:8] PF2_MFP PF.2 Pin Function Selection
0000 = GPIOF[2]
0001 = External interrupt1 input pin
0010 = Timer3 capture input
0111 = UART1 Data receiver input pin
1111 = External 4~24 MHz crystal input pin(default)
[15:12] PF3_MFP PF.3 Pin Function Selection
0000 = GPIOF[3]
0001 = External interrupt0 input pin
0010 = Timer 2 capture input
0111 = UART1 Data transmitter output pin(This pin could modulate with PWM0 output. Please refer PWM_SEL(UARTx_CTL[26:24])).
1111 = External 4~24 MHz crystal output pin
[19:16] PF4_MFP PF.4 Pin Function Selection
0000 = GPIOF[4]
0001 = Frequency Divider1 output pin
0010 = Timer1 capture input
0011 = PWM0 Channel2 output
1001 = 1, 1/2, 1/4, 1/8, 1/16 Hz clock output
1111 = Serial Wired Debugger Clock pin
[23:20] PF5_MFP PF.5 Pin Function Selection
0000 = GPIOF[5]
0010 = Timer0 capture input
0011 = PWM0 Channel3 output
1001 = Comparator0 charge/discharge path
1111 = Serial Wired Debugger Data pin

Definition at line 3322 of file Nano1X2Series.h.

◆ PIN

__I uint32_t GPIO_T::PIN

PIN

Offset: 0x10 GPIO Port Pin Value Register

Bits Field Descriptions
[15:0] PIN GPIO Port [X] Pin [N] Value
The value read from each of these bit reflects the actual status of the respective GPI/O pin
Note: For GPIOF_PIN, bits [15:6] are reserved.

Definition at line 4275 of file Nano1X2Series.h.

◆ PINCSR

__IO uint32_t SC_T::PINCSR

PINCSR

Offset: 0x24 SC Pin Control State Register.

Bits Field Descriptions
[0] POW_EN SC_POW_EN Pin Signal
This bit is the pin status of SC_POW_EN but user can drive SC_POW_EN pin to high or low by setting this bit.
0 = Drive SC_POW_EN pin to low.
1 = Drive SC_POW_EN pin to high.
Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically.
So don't fill this field When operating in these modes.
[1] SC_RST SC_RST Pin Signal
This bit is the pin status of SC_RST but user can drive SC_RST pin to high or low by setting this bit.
0 = Drive SC_RST pin to low.
1 = Drive SC_RST pin to high.
Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically.
So don't fill this field When operating in these modes.
[2] CD_REM_F Card Detect Removal Status Of SC_CD Pin (Read Only)
This bit is set whenever card has been removal.
0 = No effect.
1 = Card Removal.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: Card detect engine will start after SC_CTL [SC_CEN] set.
[3] CD_INS_F Card Detect Insert Status Of SC_CD Pin (Read Only)
This bit is set whenever card has been inserted.
0 = No effect.
1 = Card insert.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: Card detect engine will start after SC_CTL [SC_CEN] set.
[4] CD_PIN_ST Card Detect Status Of SC_CD Pin Status (Read Only)
This bit is the pin status flag of SC_CD
0 = SC_CD pin state at low.
1 = SC_CD pin state at high.
[6] CLK_KEEP SC Clock Enable
0 = SC clock generation Disabled.
1 = SC clock always keeps free running.
Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically.
So don't fill this field when operation in these modes.
[7] ADAC_CD_EN Auto Deactivation When Card Removal
0 = Auto deactivation Disabled when hardware detected the card is removal.
1 = Auto deactivation Enabled when hardware detected the card is removal.
Note1: When the card is removal, hardware will stop any process and then do deactivation sequence (if this bit be setting).
If this process completes.
Hardware will generate an interrupt INT_INIT to CPU.
[8] SC_OEN_ST SC Data Pin Output Enable Status (Read Only)
0 = SC data output enable pin status is at low.
1 = SC data output enable pin status is at high.
[9] SC_DATA_O Output Of SC Data Pin
This bit is the pin status of SC data output but user can drive this pin to high or low by setting this bit.
0 = Drive SC data output pin to low.
1 = Drive SC data output pin to high.
Note: When SC is at activation, warm re set or deactivation mode, this bit will be changed automatically.
So don't fill this field when SC is in these modes.
[10] CD_LEV Card Detect Level
0 = When hardware detects the card detect pin from high to low, it indicates a card is detected.
1 = When hardware detects the card detect pin from low to high, it indicates a card is detected.
Note: Software must select card detect level before Smart Card engine enable
[11] POW_INV SC_POW Pin Inverse
This bit is used for inverse the SC_POW pin.
There are four kinds of combination for SC_POW pin setting by POW_INV and
POW_EN(SC_PINCSR[0]). POW_INV is bit 1 and POW_EN is bit 0 for SC_POW_Pin as
high or low voltage selection.
POW_INV is 0 and POW_EN is 0, than SC_POW Pin output 0.
POW_INV is 0 and POW_EN is 1, than SC_POW Pin output 1.
POW_INV is 1 and POW_EN is 0, than SC_POW Pin output 1.
POW_INV is 1 and POW_EN is 1, than SC_POW Pin output 0.
Note: Software must select POW_INV before Smart Card is enabled by SC_CEN (SC_CTL[0])
[16] SC_DATA_I_ST SC Data Input Pin Status (Read Only)
This bit is the pin status of SC_DATA_I
0 = The SC_DATA_I pin is low.
1 = The SC_DATA_I pin is high.

Definition at line 8055 of file Nano1X2Series.h.

◆ PLLCTL

__IO uint32_t CLK_T::PLLCTL

PLLCTL

Offset: 0x24 PLL Control Register

Bits Field Descriptions
[5:0] PLL_MLP PLL Multiple
000000: Reserved
000001: X1
000010: X2
000011: X3
000100: X4
...
010000:X16
...
100000: X32
0thers: Reserved
PLL output frequency: PLL input frequency * PLL_MLP.
PLL output frequency range: 16MHz ~ 32MHz
[11:8] PLL_SRC_N PLL Input Source Divider
The PLL input clock frequency = (PLL Clock Source frequency ) / (PLL_SRC_N + 1).
PLL input clock frequency range: 0.8MHz ~ 2MHz
[16] PD Power-Down Mode
If set the PD_EN bit "1" in PWR_CTL register, the PLL will enter Power-down mode too
0 = PLL is in normal mode.
1 = PLL is in power-down mode (default).
[17] PLL_SRC PLL Source Clock Select
0 = PLL source clock from HXT.
1 = PLL source clock from HIRC.

Definition at line 1300 of file Nano1X2Series.h.

◆ PMD

__IO uint32_t GPIO_T::PMD

PMD

Offset: 0x00 GPIO Port Pin I/O Mode Control Register

Bits Field Descriptions
[1:0] PMD0 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[3:2] PMD1 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[5:4] PMD2 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[7:6] PMD3 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[9:8] PMD4 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[11:10] PMD5 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[13:12] PMD6 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[15:14] PMD7 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[17:16] PMD8 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[19:18] PMD9 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[21:20] PMD10 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[23:22] PMD11 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[25:24] PMD12 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[27:26] PMD13 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[29:28] PMD14 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.
[31:30] PMD15 GPIO Port [X] Pin [N] Mode Control
Determine the I/O type of GPIO port [x] pin [n]
00 = GPIO port [x] pin [n] is in INPUT mode.
01 = GPIO port [x] pin [n] is in OUTPUT mode.
10 = GPIO port [x] pin [n] is in Open-Drain mode.
11 = Reserved.
Note: For GPIOE_PMD, PMD10 ~ PMD15 are reserved.
For GPIOF_PMD, PMD6 ~ PMD15 are reserved.

Definition at line 4213 of file Nano1X2Series.h.

◆ PORCTL

__IO uint32_t SYS_T::PORCTL

PORCTL

Offset: 0x60 Power-On-Reset Controller Register

Bits Field Descriptions
[15:0] POR_DIS_CODE Power-On Reset Enable Control
This is a protected register. Please refer to open lock sequence to program it.
When powered on, the POR circuit generates a reset signal to reset the whole chip function, but noise on the power may cause the POR active again.
If setting the POR_DIS_CODE to 0x5AA5, the POR reset function will be disabled and the POR function will be active again when POR_DIS_CODE is set to another value or POR_DIS_CODE is reset by chip other reset functions, including: /RESET, Watchdog Timer reset, BOD reset, ICE reset command and the software-chip reset function.

Definition at line 3338 of file Nano1X2Series.h.

◆ PRECNT

__IO uint32_t TIMER_T::PRECNT

PRECNT

Offset: 0x04 Timer x Pre-Scale Counter Register

Bits Field Descriptions
[7:0] PRESCALE_CNT Pre-Scale Counter
Clock input is divided by PRESCALE_CNT + 1 before it is fed to the counter.
If PRESCALE_CNT =0, then there is no scaling.

Definition at line 9191 of file Nano1X2Series.h.

◆ PRES

__IO uint32_t PWM_T::PRES

PRES

Offset: 0x00 PWM Prescaler Register

Bits Field Descriptions
[7:0] CP01 Clock Prescaler 0 For PWM Timer 0 & 1
Clock input is divided by (CP01 + 1) before it is fed to the PWM counter 0 & 1
If CP01 =0, the prescaler 0 output clock will be stopped. So PWM counter 0 and 1 will be stopped also.
[15:8] CP23 Clock Prescaler 2 For PWM Timer 2 & 3
Clock input is divided by (CP23 + 1) before it is fed to the PWM counter 2 & 3
If CP23=0, the prescaler 2 output clock will be stopped. So PWM counter 2 and 3 will be stopped also.
[23:16] DZ01 Dead Zone Interval Register For CH0 And CH1 Pair
These 8 bits determine dead zone length.
The unit time of dead zone length is received from clock selector 0.
[31:24] DZ23 Dead Zone Interval Register For CH2 And CH3 Pair
These 8 bits determine dead zone length.
The unit time of dead zone length is received from clock selector 2.

Definition at line 5758 of file Nano1X2Series.h.

◆ PUEN

__IO uint32_t GPIO_T::PUEN

PUEN

Offset: 0x24 GPIO Port Pull-Up Enable Register

Bits Field Descriptions
[15:0] PUEN GPIO Port [X] Pin [N] Pull-Up Enable Register
Read :
1 = GPIO port [A/B/C/D/E/F] bit [n] pull-up resistor Enabled.
0 = GPIO port [A/B/C/D/E/F] bit [n] pull-up resistor Disabled.
Note: For GPIOF_PUEN, bits [15:6] are reserved.

Definition at line 4646 of file Nano1X2Series.h.

◆ PWRCTL [1/2]

__IO uint32_t ADC_T::PWRCTL

PWRCTL

Offset: 0x64 ADC Power Management Register

Bits Field Descriptions
[0] PWUPRDY ADC Power-Up Sequence Completed And Ready For Conversion
0 = ADC is not ready for conversion; may be in power down state or in the progress of power up.
1 = ADC is ready for conversion.
[1] PWDCALEN Power Up Calibration Function Enable
1 = Power up with calibration.
0 = Power up without calibration.
Note: This bit work together with CALFBKSEL set 1
[3:2] PWDMOD Power-Down Mode
00 = Power down
01 = Reserved
10 = Standby mode
11 = Reserved
Note: Different PWDMOD has different power down/up sequence, in order to avoid ADC powering up with wrong sequence; user must keep PWMOD consistent each time in powe down and power up

Definition at line 671 of file Nano1X2Series.h.

◆ PWRCTL [2/2]

__IO uint32_t CLK_T::PWRCTL

PWRCTL

Offset: 0x00 System Power-down Control Register

Bits Field Descriptions
[0] HXT_EN HXT Enable Control
This is a protected register. Please refer to open lock sequence to program it.
The bit default value is set by flash controller user configuration register config0 [26].
0 = Disabled.
1 = Enabled.
HXT is disabled by default.
[1] LXT_EN LXT Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Disabled.
1 = Enabled.
LXT is disabled by default.
[2] HIRC_EN HIRC Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Disabled.
1 = Enabled.
HIRC is enabled by default.
[3] LIRC_EN LIRC Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Disabled.
1 = Enabled.
LIRC is enabled by default.
[4] WK_DLY Wake-Up Delay Counter Enable Control
This is a protected register. Please refer to open lock sequence to program it.
When chip wakes up from Power-down mode, the clock control will delay 4096 clock cycles to wait HXT stable or 16 clock cycles to wait HIRC stable.
0 = Delay clock cycle Disabled.
1 = Delay clock cycle Enabled.
[5] PD_WK_IE Power-Down Mode Wake-Up Interrupt Enable Control
This is a protected register. Please refer to open lock sequence to program it.
0 = Disabled.
1 = Enabled.
PD_WK_INT will be set if both PD_WK_IS and PD_WK_IE are high.
[6] PD_EN Chip Power-Down Mode Enable Bit
This is a protected register. Please refer to open lock sequence to program it.
When CPU sets this bit, the chip power down is enabled and chip will not enter Power-down mode until CPU sleep mode is also active.
When chip wakes up from Power-down mode, this bit will be auto cleared.
When chip is in Power-down mode, the LDO, HXT and HIRC will be disabled, but LXT and LIRC are not controlled by Power-down mode.
When power down, the PLL and system clock (CPU, HCLKx and PCLKx) are also disabled no matter the Clock Source selection.
Peripheral clocks are not controlled by this bit, if peripheral Clock Source is from LXT or LIRC.
In Power-down mode, flash macro power is ON.
0 = Chip operated in Normal mode.
1 = Chip power down Enabled.
[8] HXT_SELXT HXT SELXT
This is a protected register. Please refer to open lock sequence to program it.
0 = High frequency crystal loop back path Disabled. It is used for external oscillator.
1 = High frequency crystal loop back path Enabled. It is used for external crystal.
[9] HXT_CUR_SEL HXT Internal Current Selection
HXT has some internal current path to help crystal start-up.
However when these current path existence, HXT will consume more power.
User can use this bit to balance the start-up and power consumption.
0 = HXT current path always exists. HXT will consume more power.
For 16MHz to 24 MHz crystal.
1 = HXT current path will exist 2ms then cut down. HXT will consume less power.
For 4 MHz to 16 MHz crystal.
[11:10] HXT_GAIN HXT Gain Control Bit
This is a protected register. Please refer to open lock sequence to program it.
Gain control is used to enlarge the gain of crystal to make sure crystal wok normally.
If gain control is enabled, crystal will consume more power than gain control off.
00 = HXT frequency is lower than from 8 MHz.
01 = HXT frequency is from 8 MHz to 12 MHz.
10 = HXT frequency is from 12 MHz to 16 MHz.
11 = HXT frequency is higher than 16 MHz.
[12] HIRC_FSEL HIRC Output Frequency Select
0 = HIRC will output 12MHz clock.
1 = HIRC will output 16MHz Clock.
[13] HIRC_F_STOP HIRC Stop Output When Frequency Changes
This is a protected register. Please refer to open lock sequence to program it.
0 = HIRC will continue to output when HIRC frequency changes.
1 = HIRC will suppress to output during first 16 clocks when HIRC frequency change.

Definition at line 983 of file Nano1X2Series.h.

◆  [1/4]

__I uint32_t { ... } ::RBR

RBR

Offset: 0x00 SC Receive Buffer Register

Bits Field Descriptions
[7:0] RBR Receiving Buffer
By reading this register, the SC Controller will return an 8-bit data received from RX pin (LSB first).

Definition at line 7559 of file Nano1X2Series.h.

◆ RBR [2/4]

__I uint32_t SC_T::RBR

RBR

Offset: 0x00 SC Receive Buffer Register

Bits Field Descriptions
[7:0] RBR Receiving Buffer
By reading this register, the SC Controller will return an 8-bit data received from RX pin (LSB first).

Definition at line 7559 of file Nano1X2Series.h.

◆  [3/4]

__I uint32_t { ... } ::RBR

RBR

Offset: 0x00 UART Receive Buffer Register

Bits Field Descriptions
[7:0] RBR Receiving Buffer
By reading this register, the UART Controller will return an 8-bit data received from RX pin (LSB first).

Definition at line 9496 of file Nano1X2Series.h.

◆ RBR [4/4]

__I uint32_t UART_T::RBR

RBR

Offset: 0x00 UART Receive Buffer Register

Bits Field Descriptions
[7:0] RBR Receiving Buffer
By reading this register, the UART Controller will return an 8-bit data received from RX pin (LSB first).

Definition at line 9496 of file Nano1X2Series.h.

◆ RegLockAddr

__IO uint32_t SYS_T::RegLockAddr

RegLockAddr

Offset: 0x100 Register Lock Key address

Bits Field Descriptions
[0] RegUnLock Protected Register Enable Control
0 = Protected register are Locked. Any write to the target register is ignored.
1 = Protected registers are Unlocked.

Definition at line 3611 of file Nano1X2Series.h.

◆ RESERVE0 [1/12]

uint32_t FMC_T::RESERVE0[10]

Definition at line 2582 of file Nano1X2Series.h.

◆ RESERVE0 [2/12]

uint32_t CLK_T::RESERVE0[1]

Definition at line 1321 of file Nano1X2Series.h.

◆ RESERVE0 [3/12]

uint32_t DMA_CRC_T::RESERVE0[1]

Definition at line 1790 of file Nano1X2Series.h.

◆ RESERVE0 [4/12]

uint32_t PDMA_T::RESERVE0[1]

Definition at line 2154 of file Nano1X2Series.h.

◆ RESERVE0 [5/12]

uint32_t LCD_T::RESERVE0[1]

Definition at line 5506 of file Nano1X2Series.h.

◆ RESERVE0 [6/12]

uint32_t PWM_T::RESERVE0[1]

Definition at line 5931 of file Nano1X2Series.h.

◆ RESERVE0 [7/12]

uint32_t TIMER_T::RESERVE0[1]

Definition at line 9303 of file Nano1X2Series.h.

◆ RESERVE0 [8/12]

uint32_t I2C_T::RESERVE0[2]

Definition at line 5039 of file Nano1X2Series.h.

◆ RESERVE0 [9/12]

uint32_t RTC_T::RESERVE0[2]

Definition at line 7303 of file Nano1X2Series.h.

◆ RESERVE0 [10/12]

uint32_t SPI_T::RESERVE0[2]

Definition at line 8722 of file Nano1X2Series.h.

◆ RESERVE0 [11/12]

uint32_t UART_T::RESERVE0[2]

Definition at line 9926 of file Nano1X2Series.h.

◆ RESERVE0 [12/12]

uint32_t SYS_T::RESERVE0[4]

Definition at line 2821 of file Nano1X2Series.h.

◆ RESERVE1 [1/6]

uint32_t ADC_T::RESERVE1[1]

Definition at line 635 of file Nano1X2Series.h.

◆ RESERVE1 [2/6]

uint32_t DMA_CRC_T::RESERVE1[1]

Definition at line 1804 of file Nano1X2Series.h.

◆ RESERVE1 [3/6]

uint32_t PWM_T::RESERVE1[1]

Definition at line 5996 of file Nano1X2Series.h.

◆ RESERVE1 [4/6]

uint32_t SYS_T::RESERVE1[3]

Definition at line 2834 of file Nano1X2Series.h.

◆ RESERVE1 [5/6]

uint32_t SPI_T::RESERVE1[3]

Definition at line 8764 of file Nano1X2Series.h.

◆ RESERVE1 [6/6]

uint32_t I2C_T::RESERVE1[4]

Definition at line 5067 of file Nano1X2Series.h.

◆ RESERVE2 [1/4]

uint32_t DMA_CRC_T::RESERVE2[1]

Definition at line 1818 of file Nano1X2Series.h.

◆ RESERVE2 [2/4]

uint32_t SYS_T::RESERVE2[1]

Definition at line 3323 of file Nano1X2Series.h.

◆ RESERVE2 [3/4]

uint32_t PWM_T::RESERVE2[1]

Definition at line 6061 of file Nano1X2Series.h.

◆ RESERVE2 [4/4]

uint32_t SPI_T::RESERVE2[4]

Definition at line 8843 of file Nano1X2Series.h.

◆ RESERVE3 [1/3]

uint32_t PWM_T::RESERVE3[1]

Definition at line 6126 of file Nano1X2Series.h.

◆ RESERVE3 [2/3]

uint32_t DMA_CRC_T::RESERVE3[22]

Definition at line 1872 of file Nano1X2Series.h.

◆ RESERVE3 [3/3]

uint32_t SYS_T::RESERVE3[3]

Definition at line 3510 of file Nano1X2Series.h.

◆ RESERVE4 [1/2]

uint32_t SYS_T::RESERVE4[29]

Definition at line 3597 of file Nano1X2Series.h.

◆ RESERVE4 [2/2]

uint32_t PWM_T::RESERVE4[3]

Definition at line 6191 of file Nano1X2Series.h.

◆ RESULT

__I uint32_t ADC_T::RESULT[18]

RESULT

Offset: 0x00 ~ 0x44 A/D Data Register 0 ~ 7 and 14 ~ 17

Bits Field Descriptions
[11:0] RSLT A/D Conversion Result
This field contains 12 bits conversion results.
[16] VALID Data Valid Flag
After ADC converts finish, this field will set to high.
This field will clear when this register be read.
[17] OVERRUN Over Run Flag
When VALID is high and ADC converts finish, this field will set to high.

Definition at line 397 of file Nano1X2Series.h.

◆ RFTMR

__IO uint32_t SC_T::RFTMR

RFTMR

Offset: 0x10 SC Receive Buffer Time-Out Register.

Bits Field Descriptions
[8:0] RFTM SC Receiver Buffer Time-Out Register (ETU Based)
The time-out counter resets and starts counting whenever the RX buffer received a new data word.
Once the counter decrease to "1" and no new data is received or CPU does not read data by reading SC_RBR register, a receiver time-out interrupt INT_RTMR will be generated(if SC_IER[RTMR_IE] is high).
Note1: The counter is ETU based and the real count value is RFTM + 1
Note2: Fill all "0" to this field to disable this function.

Definition at line 7776 of file Nano1X2Series.h.

◆ RIER

__IO uint32_t RTC_T::RIER

RIER

Offset: 0x28 RTC Interrupt Enable Register

Bits Field Descriptions
[0] AIER Alarm Interrupt Enable
0 = RTC Alarm Interrupt is disabled.
1 = RTC Alarm Interrupt is enabled.
[1] TIER Time Tick Interrupt And Wake-Up By Tick Enable
0 = RTC Time Tick Interrupt is disabled.
1 = RTC Time Tick Interrupt is enabled.
[2] SNOOPIER Snooper Pin Event Detection Interrupt Enable
0 = Snooper Pin Event Detection Interrupt is disabled.
1 = Snooper Pin Event Detection Interrupt is enabled.

Definition at line 7248 of file Nano1X2Series.h.

◆ RIIR

__IO uint32_t RTC_T::RIIR

RIIR

Offset: 0x2C RTC Interrupt Indication Register

Bits Field Descriptions
[0] AIS RTC Alarm Interrupt Status
RTC unit will set AIS to high once the RTC real time counters TLR and CLR reach the alarm setting time registers TAR and CAR.
When this bit is set and AIER is also high, RTC will generate an interrupt to CPU.
This bit is cleared by writing "1" to it through software.
0 = RCT Alarm Interrupt condition never occurred.
1 = RTC Alarm Interrupt is requested if AIER (RTC_RIER[0])=1.
[1] TIS RTC Time Tick Interrupt Status
RTC unit will set this bit to high periodically in the period selected by TTR (RTC_TTR[2:0]).
When this bit is set and TIER (RTC_RIER[1]) is also high, RTC will generate an interrupt to CPU.
This bit is cleared by writing "1" to it through software.
0 = RCT Time Tick Interrupt condition never occurred.
1 = RTC Time Tick Interrupt is requested.
[2] SNOOPIF Snooper Pin Event Detection Interrupt Flag
When SNOOPEN is high and an event defined by SNOOPEDGE detected in snooper pin, this flag will be set.
While this bit is set and SNOOPIER (RTC_RIER[2]) is also high, RTC will generate an interrupt to CPU.
Write "1" to clear this bit to "0".
0 = Snooper pin event defined by SNOOPEDGE (RTC_SPRCTL[1]) never detected.
1 = Snooper pin event defined by SNOOPEDGE (RTC_SPRCTL[1]) detected.

Definition at line 7276 of file Nano1X2Series.h.

◆ RLD

__O uint32_t WWDT_T::RLD

RLD

Offset: 0x00 Window Watchdog Timer Reload Counter Register

Bits Field Descriptions
[31:0] RLD Window Watchdog Timer Reload Counter Register
Writing 0x00005AA5 to this register will reload the Window Watchdog Timer counter value to 0x3F.
Note: SW only can write WWDTRLD when WWDT counter value between 0 and WINCMP.
If SW writes WWDTRLD when WWDT counter value larger than WINCMP, WWDT will generate RESET signal.

Definition at line 10457 of file Nano1X2Series.h.

◆ RST_SRC

__IO uint32_t SYS_T::RST_SRC

RST_SRC

Offset: 0x04 System Reset Source Register

Bits Field Descriptions
[0] RSTS_POR The RSTS_POR Flag Is Set By The "Reset Signal" From The Power-On Reset (POR) Module Or Bit CHIP_RST (IPRSTC1[0]) To Indicate The Previous Reset Source
0 = No reset from POR or CHIP_RST.
1 = Power-on Reset (POR) or CHIP_RST had issued the reset signal to reset the system.
Note: This bit is cleared by writing 1 to it.
[1] RSTS_PAD The RSTS_PAD Flag Is Set By The "Reset Signal" From The /RESET Pin Or Power Related Reset Sources To Indicate The Previous Reset Source
0 = No reset from nRESET pin.
1 = The /RESET pin had issued the reset signal to reset the system.
Note: This bit is cleared by writing 1 to it.
[2] RSTS_WDT The RSTS_WDT Flag Is Set By The "Reset Signal" From The Watchdog Timer Module To Indicate The Previous Reset Source
0 = No reset from Watchdog Timer.
1 = The Watchdog Timer module had issued the reset signal to reset the system.
Note: This bit is cleared by writing 1 to it.
[4] RSTS_BOD The RSTS_BOD Flag Is Set By The "Reset Signal" From The Brown-Out-Detected Module To Indicate The Previous Reset Source
0 = No reset from BOD.
1 = Brown-out-Detected module had issued the reset signal to reset the system.
Note: This bit is cleared by writing 1 to it.
[5] RSTS_SYS The RSTS_SYS Flag Is Set By The "Reset Signal" From The Cortex_M0 Kernel To Indicate The Previous Reset Source
0 = No reset from Cortex_M0.
1 = Cortex_M0 had issued the reset signal to reset the system by writing 1 to the bit SYSRESTREQ(AIRCR[2], Application Interrupt and Reset Control Register) in system control registers of Cortex_M0 kernel.
Note: This bit is cleared by writing 1 to it.
[7] RSTS_CPU The RSTS_CPU Flag Is Set By Hardware If Software Writes CPU_RST (IPRST_CTL1[1]) "1" To Rest Cortex-M0 Core And Flash Memory Controller (FMC)
0 = No reset from CPU.
1 = Cortex-M0 core and FMC are reset by software setting CPU_RST to 1.
Note: This bit is cleared by writing 1 to it.

Definition at line 2726 of file Nano1X2Series.h.

◆ RVCR

__IO uint32_t ACMP_T::RVCR

RVCR

Offset: 0x0C Analog Comparator Reference Voltage Control Register

Bits Field Descriptions
[3:0] CRVS Comparator Reference Voltage Setting
Comparator reference voltage = VIN * (1/6+CRVS[3:0]/24). VIN = AVDD or Int_VREF.
[4] CRV_EN CRV Enable Control
0 = CRV Disabled.
1 = CRV Enabled.
[5] CRVSRC_SEL CRV Source Selection
0 = From AVDD.
1 = From Int_VREF.

Definition at line 249 of file Nano1X2Series.h.

◆ RX0

__I uint32_t SPI_T::RX0

RX0

Offset: 0x10 SPI Receive Data FIFO Register 0

Bits Field Descriptions
[31:0] RDATA Receive Data FIFO Bits(Read Only)
The received data can be read on it.
If the FIFO bit is set as 1, the user also checks the RX_EMPTY, SPI_STATUS[0], to check if there is any more received data or not.
Note1: The SPI_RX1 is used only in TWOB bit (SPI_CTL[22]) is set 1.
The first channel's received data shall be read from SPI_RX0 and the second channel's received data shall be read from SPI_RX1 in two-bit mode.
SPI_RX0 shall be read first in TWOB mode.
In FIFO and two-bit mode, the first read back data in SPI_RX0 is the first channel data and the second read back data in SPI_RX0 is the second channel data.
Note2: These registers are read only.

Definition at line 8703 of file Nano1X2Series.h.

◆ RX1

__I uint32_t SPI_T::RX1

RX1

Offset: 0x14 SPI Receive Data FIFO Register 1

Bits Field Descriptions
[31:0] RDATA Receive Data FIFO Bits(Read Only)
The received data can be read on it.
If the FIFO bit is set as 1, the user also checks the RX_EMPTY, SPI_STATUS[0], to check if there is any more received data or not.
Note1: The SPI_RX1 is used only in TWOB bit (SPI_CTL[22]) is set 1.
The first channel's received data shall be read from SPI_RX0 and the second channel's received data shall be read from SPI_RX1 in two-bit mode.
SPI_RX0 shall be read first in TWOB mode.
In FIFO and two-bit mode, the first read back data in SPI_RX0 is the first channel data and the second read back data in SPI_RX0 is the second channel data.
Note2: These registers are read only.

Definition at line 8721 of file Nano1X2Series.h.

◆ SADDR0

__IO uint32_t I2C_T::SADDR0

SADDR0

Offset: 0x18 I2C Slave address Register0

Bits Field Descriptions
[0] GCALL General Call Function
0 = General Call Function Disabled.
1 = General Call Function Enabled.
[7:1] SADDR I2C Salve Address Bits
The content of this register is irrelevant when the device is in Master mode.
In the Slave mode, the seven most significant bits must be loaded with the device's own address.
The device will react if either of the address is matched.

Definition at line 5021 of file Nano1X2Series.h.

◆ SADDR1

__IO uint32_t I2C_T::SADDR1

SADDR1

Offset: 0x1C I2C Slave address Register1

Bits Field Descriptions
[0] GCALL General Call Function
0 = General Call Function Disabled.
1 = General Call Function Enabled.
[7:1] SADDR I2C Salve Address Bits
The content of this register is irrelevant when the device is in Master mode.
In the Slave mode, the seven most significant bits must be loaded with the device's own address.
The device will react if either of the address is matched.

Definition at line 5038 of file Nano1X2Series.h.

◆ SAMASK0

__IO uint32_t I2C_T::SAMASK0

SAMASK0

Offset: 0x28 I2C Slave address Mask Register0

Bits Field Descriptions
[7:1] SAMASK I2C Slave Address Mask Bits
0 = Mask disable (the received corresponding register bit should be exact the same as address register).
1 = Mask enable (the received corresponding address bit is don't care).

Definition at line 5053 of file Nano1X2Series.h.

◆ SAMASK1

__IO uint32_t I2C_T::SAMASK1

SAMASK1

Offset: 0x2C I2C Slave address Mask Register1

Bits Field Descriptions
[7:1] SAMASK I2C Slave Address Mask Bits
0 = Mask disable (the received corresponding register bit should be exact the same as address register).
1 = Mask enable (the received corresponding address bit is don't care).

Definition at line 5066 of file Nano1X2Series.h.

◆ SAR

__IO uint32_t PDMA_T::SAR

SAR

Offset: 0x04 PDMA Source Address Register

Bits Field Descriptions
[31:0] PDMA_SAR PDMA Transfer Source Address Register
This field indicates a 32-bit source address of PDMA.
Note: The source address must be word alignment.

Definition at line 2127 of file Nano1X2Series.h.

◆ SEED

__IO uint32_t DMA_CRC_T::SEED

SEED

Offset: 0x84 DMA CRC Seed Register

Bits Field Descriptions
[31:0] CRC_SEED CRC Seed Register
This field indicates the CRC seed value.

Definition at line 1900 of file Nano1X2Series.h.

◆ SMPLCNT0

__IO uint32_t ADC_T::SMPLCNT0

SMPLCNT0

Offset: 0x70 ADC Channel Sampling Time Counter Register Group 0

Bits Field Descriptions
[3:0] CH0SAMPCNT Channel 0 Sampling Counter
0000 = 0 ADC clock
0001 = 1 ADC clock
0010 = 2 ADC clocks
0011 = 4 ADC clocks
0100 = 8 ADC clocks
0101 = 16 ADC clocks
0110 = 32 ADC clocks
0111 = 64 ADC clocks
1000 = 128 ADC clocks
1001 = 256 ADC clocks
1010 = 512 ADC clocks
Others = 1024 ADC clocks
[7:4] CH1SAMPCNT Channel 1 Sampling Counter
The same as Channel 0 sampling counter table.
[11:8] CH2SAMPCNT Channel 2 Sampling Counter
The same as Channel 0 sampling counter table.
[15:12] CH3SAMPCNT Channel 3 Sampling Counter
The same as Channel 0 sampling counter table.
[19:16] CH4SAMPCNT Channel 4 Sampling Counter
The same as Channel 0 sampling counter table.
[23:20] CH5SAMPCNT Channel 5 Sampling Counter
The same as Channel 0 sampling counter table.
[27:24] CH6SAMPCNT Channel 6 Sampling Counter
The same as Channel 0 sampling counter table.
[31:28] CH7SAMPCNT Channel 7 Sampling Counter
The same as Channel 0 sampling counter table.

Definition at line 746 of file Nano1X2Series.h.

◆ SMPLCNT1

__IO uint32_t ADC_T::SMPLCNT1

SMPLCNT1

Offset: 0x74 ADC Channel Sampling Time Counter Register Group 1

Bits Field Descriptions
[19:16] INTCHSAMPCNT Internal Channel (VTEMP, AVDD, AVSS, Int_VREF) Sampling Counter
The same as Channel 0 sampling counter table.

Definition at line 758 of file Nano1X2Series.h.

◆ SP_DET

__IO uint32_t CLK_T::SP_DET

SP_DET

Offset: 0x3C Clock Stop Detect Control Register

Bits Field Descriptions
[0] HCLK_DET HCLK Stop Detect Enable Control
0 = HCLK stop detect Disabled.
1 = HCLK stop detect Enabled.
Once HCLK stop detected, hardware will force HCLK from LIRC.
[1] HCLK_STOP_IE HCLK Stop Detect Interrupt Enable Control
0 = HCLK stop detect interrupt Disabled.
1 = HCLK stop detect interrupt Enabled.
[2] HXT_DET HXT Stop Detect Enable Control
0 = HXT stop detect Disabled.
1 = HXT stop detect Enabled.
[3] HXT_STOP_IE HXT Stop Detect Interrupt Enable Control
0 = HXT stop detect interrupt Disabled.
1 = HXT stop detect interrupt Enabled.
[4] HIRC_DET HIRC Stop Detect Enable Control
0 = HIRC stop detect Disabled.
1 = HIRC stop detect Enabled.
[5] HIRC_STOP_IE HIRC Stop Detect Interrupt Enable Control
0 = HIRC stop detect interrupt Disabled.
1 = HIRC stop detect interrupt Enabled.

Definition at line 1403 of file Nano1X2Series.h.

◆ SP_STS

__I uint32_t CLK_T::SP_STS

SP_STS

Offset: 0x40 Clock Stop Detect Status Register

Bits Field Descriptions
[0] HCLK_SP_IS HCLK Clock Stop Flag
0 = HCLK normal.
1 = HCLK abnormal.
[2] HXT_SP_IS HXT Stop Flag
0 = HXT normal.
1 = HXT abnormal.
[4] HIRC_SP_IS HIRC Stop Flag
0 = HIRC normal.
1 = HIRC abnormal.
[10:8] HCLK_SEL HCLK Target Clock Select
000 = HXT
001 = LXT
010 = PLL Clock
011 = LIRC
111 = HIRC
Others = Reserved

Definition at line 1429 of file Nano1X2Series.h.

◆ SPR

__IO uint32_t RTC_T::SPR[20]

SPR0

Offset: 0x40 ~ 0x8C RTC Spare Register 0 ~ 19

Bits Field Descriptions
[31:0] SPARE SPARE
This field is used to store back-up information defined by software.
This field will be cleared by hardware automatically once a snooper pin event is detected.

Definition at line 7338 of file Nano1X2Series.h.

◆ SPRCTL

__IO uint32_t RTC_T::SPRCTL

SPRCTL

Offset: 0x3C RTC Spare Functional Control Register

Bits Field Descriptions
[0] SNOOPEN Snooper Pin Event Detection Enable
This bit enables the snooper pin event detection.
When this bit is set high and an event defined by SNOOPEDGE detected, the 20 spare registers will be cleared to "0" by hardware automatically.
And, the SNOOPIF will also be set.
In addition, RTC will also generate wake-up event to wake system up.
0 = Snooper pin event detection function Disabled.
1 = Snooper pin event detection function Enabled.
[1] SNOOPEDGE Snooper Active Edge Selection
This bit defines which edge of snooper pin will generate a snooper pin detected event to clear the 20 spare registers.
0 = Rising edge of snooper pin generates snooper pin detected event.
1 = Falling edge of snooper pin generates snooper pin detected event.

Definition at line 7325 of file Nano1X2Series.h.

◆ SR [1/2]

__IO uint32_t ACMP_T::SR

SR

Offset: 0x08 Analog Comparator Status Register

Bits Field Descriptions
[0] ACMPF0 Comparator ACMP0 Flag
This bit is set by hardware whenever the comparator 0 output changes state.
This will generate an interrupt if ACMP0IE set.
Note: Write "1" to clear this bit to 0.
[1] ACMPF1 Comparator ACMP1 Flag
This bit is set by hardware whenever the comparator 1 output changes state.
This will generate an interrupt if ACMP1IE set.
Note: Write "1" to clear this bit to 0.
[2] CO0 Comparator ACMP0 Output
Synchronized to the PCLK to allow reading by software.
Cleared when the comparator is disabled (ACMP0EN = 0).
[3] CO1 Comparator ACMP1 Output
Synchronized to the PCLK to allow reading by software.
Cleared when the comparator is disabled (ACMP1EN = 0).

Definition at line 231 of file Nano1X2Series.h.

◆ SR [2/2]

__IO uint32_t ADC_T::SR

SR

Offset: 0x58 A/D Status Register

Bits Field Descriptions
[0] ADF A/D Conversion End Flag
A status flag that indicates the end of A/D conversion.
ADF is set to 1 at these two conditions:
When A/D conversion ends in single mode
When A/D conversion ends on all specified channels in scan mode.
This flag can be cleared by writing 1 to it.
[1] CMPF0 Compare Flag
When the selected channel A/D conversion result meets setting condition in ADCMPR0 then this bit is set to 1.
And it is cleared by writing 1 to self.
0 = Conversion result in ADC_RESULTx does not meet ADCMPR0setting.
1 = Conversion result in ADC_RESULTx meets ADCMPR0setting.
This flag can be cleared by writing 1 to it.
Note: When this flag is set, the matching counter will be reset to 0,and continue to count when user write 1 to clear CMPF0
[2] CMPF1 Compare Flag
When the selected channel A/D conversion result meets setting condition in ADCMPR1 then this bit is set to 1.
And it is cleared by writing 1 to self.
0 = Conversion result in ADC_RESULTx does not meet ADCMPR1 setting.
1 = Conversion result in ADC_RESULTx meets ADCMPR1 setting.
This flag can be cleared by writing 1 to it.
Note: when this flag is set, the matching counter will be reset to 0,and continue to count when user write 1 to clear CMPF1
[3] BUSY BUSY/IDLE
0 = A/D converter is in idle state.
1 = A/D converter is busy at conversion.
This bit is a mirror of ADST bit in ADCR. That is to say if ADST = 1,then BUSY is 1 and vice versa.
It is read only.
[8:4] CHANNEL Current Conversion Channel
This filed reflects current conversion channel when BUSY=1.
When BUSY=0, it shows the next channel to be converted.
It is read only.
[16] INITRDY ADC Power-Up Sequence Completed
0 = ADC not powered up after system reset.
1 = ADC has been powered up since the last system reset.
Note: This bit will be set after system reset occurred and automatically cleared by power-up event.

Definition at line 634 of file Nano1X2Series.h.

◆ SSR

__IO uint32_t SPI_T::SSR

SSR

Offset: 0x0C SPI Slave Select Register

Bits Field Descriptions
[1:0] SSR Slave Select Active Register (Master Only)
If AUTOSS bit (SPI_SSR[3]) is cleared, writing "1" to SSR[0] bit sets the SPISS[0] line to an active state and writing "0" sets the line back to inactive state.(the same as SSR[1] for SPISS[1])
AUTOSS = 0.
00 = Both SPISS[1] and SPISS[0] are inactive.
01 = SPISS[1] is inactive, SPISS[0] is active.
10 = SPISS[1] is active, SPISS[0] is inactive.
11 = Both SPISS[1] and SPISS[0] are active.
If AUTOSS bit is set, writing "1" to any bit location of this field will select appropriate SPISS[1:0] line to be automatically driven to active state for the duration of the transaction, and will be driven to inactive state for the rest of the time.
(The active level of SPISS[1:0] is specified in SS_LVL).
AUTOSS =1.
00 = Both SPISS[1] and SPISS[0] are inactive.
01 = SPISS[1] is inactive, SPISS[0] is active on the duration of transaction.
10 = SPISS[1] is active on the duration of transaction, SPISS[0] is inactive.
11 = Both SPISS[1] and SPISS[0] are active on the duration of transaction.
Note1: This interface can only drive one device/slave at a given time.
Therefore, the slaves select of the selected device must be set to its active level before starting any read or write transfer.
Note2: SPISS[0] is also defined as device/slave select input in Slave mode.
And that the slave select input must be driven by edge active trigger which level depend on the SS_LVL setting, otherwise the SPI slave core will go into dead path until the edge active triggers again or reset the SPI core by software.
[2] SS_LVL Slave Select Active Level
It defines the active level of device/slave select signal (SPISS[1:0]).
0 = The SPI_SS slave select signal is active Low.
1 = The SPI_SS slave select signal is active High.
[3] AUTOSS Automatic Slave Selection (Master Only)
0 = If this bit is set as "0", slave select signals are asserted and de-asserted by setting and clearing related bits in SSR[1:0] register.
1 = If this bit is set as "1", SPISS[1:0] signals are generated automatically.
It means that device/slave select signal, which is set in SSR[1:0] register is asserted by the SPI controller when transmit/receive is started, and is de-asserted after each transaction is done.
[4] SS_LTRIG Slave Select Level Trigger
0 = The input slave select signal is edge-trigger.
1 = The slave select signal will be level-trigger.
It depends on SS_LVL to decide the signal is active low or active high.
[5] NOSLVSEL No Slave Selected In Slave Mode
This is used to ignore the slave select signal in Slave mode.
The SPI controller can work on 3 wire interface including SPICLK, SPI_MISO, and SPI_MOSI when it is set as a slave device.
0 = The controller is 4-wire bi-direction interface.
1 = The controller is 3-wire bi-direction interface in Slave mode.
When this bit is set as 1, the controller start to transmit/receive data after the GO_BUSY bit active and the serial clock input.
Note: In no slave select signal mode, the SS_LTRIG (SPI_SSR[4]) shall be set as "1".
[8] SLV_ABORT Abort In Slave Mode With No Slave Selected
0 = No force the slave abort.
1 = Force the current transfer done in no slave select mode.
Note: It is auto cleared to "0" by hardware when the abort event is active.
[9] SSTA_INTEN Slave Start Interrupt Enable Control
0 = Transfer start interrupt Disabled in no slave select mode.
1 = Transaction start interrupt Enabled in no slave select mode.
It is cleared when the current transfer done or the SLV_START_INTSTS bit cleared (write 1 clear).
[16] SS_INT_OPT Slave Select Interrupt Option
It is used to enable the interrupt when the transfer has done in slave mode.
0 = No any interrupt, even there is slave select inactive event.
1 = There is interrupt event when the slave select becomes inactive from active condition.
It is used to inform the user to know that the transaction has finished and the slave select into the inactive state.

Definition at line 8685 of file Nano1X2Series.h.

◆ STATUS [1/2]

__I uint32_t I2C_T::STATUS

STATUS

Offset: 0x08 I2C Status Register

Bits Field Descriptions
[7:0] STATUS I2C Status Bits (Read Only)
Indicates the current status code of the bus information.
The detail information about the status is described in the sections of I2C protocol register and operation mode.

Definition at line 4960 of file Nano1X2Series.h.

◆ STATUS [2/2]

__IO uint32_t SPI_T::STATUS

STATUS

Offset: 0x04 SPI Status Register

Bits Field Descriptions
[0] RX_EMPTY Received FIFO_EMPTY Status
0 = Received data FIFO is not empty in the FIFO mode.
1 = Received data FIFO is empty in the FIFO mode.
[1] RX_FULL Received FIFO_FULL Status
0 = Received data FIFO is not full in FIFO mode.
1 = Received data FIFO is full in the FIFO mode.
[2] TX_EMPTY Transmitted FIFO_EMPTY Status
0 = Transmitted data FIFO is not empty in the FIFO mode.
1 =Transmitted data FIFO is empty in the FIFO mode.
[3] TX_FULL Transmitted FIFO_FULL Status
0 = Transmitted data FIFO is not full in the FIFO mode.
1 = Transmitted data FIFO is full in the FIFO mode.
[4] LTRIG_FLAG Level Trigger Accomplish Flag (INTERNAL ONLY)
In Slave mode, this bit indicates whether the received bit number meets the requirement or not after the current transaction done.
0 = The transferred bit length of one transaction does not meet the specified requirement.
1 = The transferred bit length meets the specified requirement which defined in TX_BIT_LEN.
Note: This bit is READ only.
As the software sets the GO_BUSY bit to 1, the LTRIG_FLAG will be cleared to 0 after 4 SPI engine clock periods plus 1 system clock period.
In FIFO mode, this bit is unmeaning.
[6] SLV_START_INTSTS Slave Start Interrupt Status
It is used to dedicate that the transfer has started in Slave mode with no slave select.
0 = Slave started transfer no active.
1 = Transfer has started in Slave mode with no slave select.
It is auto clear by transfer done or writing one clear.
[7] INTSTS Interrupt Status
0 = Transfer is not finished yet.
1 = Transfer is done. The interrupt is requested when the INTEN(SPI_CTL[17]) bit is enabled.
Note: This bit is read only, but can be cleared by writing "1" to this bit.
[8] RXINT_STS RX FIFO Threshold Interrupt Status (Read Only)
0 = RX valid data counts small or equal than RXTHRESHOLD (SPI_FFCTL[27:24]).
1 = RX valid data counts bigger than RXTHRESHOLD.
Note: If RXINT_EN(SPI_FFCTL[2]) = 1 and RX_INTSTS = 1, SPI will generate interrupt.
[9] RX_OVER_RUN RX FIFO Over Run Status
0 = No FIFO is over run.
1 = Receive FIFO over run.
Note1: If SPI receives data when RX FIFO is full, this bit will set to 1, and the received data will dropped.
Note2: This bit will be cleared by writing 1 to it.
[10] TXINT_STS TX FIFO Threshold Interrupt Status (Read Only)
0 = TX valid data counts bigger than TXTHRESHOLD (SPI_FFCTL[31:28].
1 = TX valid data counts small or equal than TXTHRESHOLD.
[12] TIME_OUT_STS TIMEOUT Interrupt Flag
0 = There is not timeout event on the received buffer.
1 = Time out event active in RX FIFO is not empty.
Note: This bit will be cleared by writing 1 to it.
[19:16] RX_FIFO_CNT Data counts in RX FIFO (Read Only)
[23:20] TX_FIFO_CNT Data counts in TX FIFO (Read Only)

Definition at line 8607 of file Nano1X2Series.h.

◆ STATUS2

__IO uint32_t I2C_T::STATUS2

STATUS2

Offset: 0x44 I2C Status Register 2

Bits Field Descriptions
[0] WKUPIF Wake-Up Interrupt Flag
0 = Wake-up flag inactive.
1 = Wake-up flag active.
Software can write 1 to clear this flag
[1] OVERUN I2C OVER RUN Status Bit
0 = The received FIFO is not over run when the TWOFF_EN = 1.
1 = The received FIFO is over run when the TWOFF_EN = 1.
[2] UNDERUN I2C UNDER RUN Status Bit
0 = The transmitted FIFO is not under run when the TWOFF_EN = 1.
1 = The transmitted FIFO is under run when the TWOFF_EN = 1.
[3] WR_STATUS I2C Read/Write Status Bit In Address Wakeup Frame
0 = Write command be record on the address match wakeup frame.
1 = Read command be record on the address match wakeup frame.
[4] FULL I2C TWO LEVEL FIFO FULL
0 = TX FIFO no full when the TWOFF_EN = 1.
1 = TX FIFO full when the TWOFF_EN = 1.
[5] EMPTY I2C TWO LEVEL FIFO EMPTY
0 = RX FIFO no empty when the TWOFF_EN = 1.
1 = RX FIFO empty when the TWOFF_EN = 1.
[6] BUS_FREE Bus Free Status
The bus status in the controller.
0 = I2C's "Start" condition is detected on the bus.
1 = Bus free and it is released by "STOP" condition or the controller is disabled.

Definition at line 5126 of file Nano1X2Series.h.

◆ STS

__IO uint32_t WWDT_T::STS

STS

Offset: 0x0C Window Watchdog Timer Status Register

Bits Field Descriptions
[0] IF WWDT Compare Match Interrupt Flag
When WWCMP match the WWDT counter, then this bit is set to 1.
This bit will be cleared by software write 1 to this bit.
[1] RF WWDT Reset Flag
When WWDT counter down count to 0 or write WWDTRLD during WWDT counter larger than WINCMP, chip will be reset and this bit is set to 1.
Software can write 1 to clear this bit to 0.

Definition at line 10510 of file Nano1X2Series.h.

◆ TAR

__IO uint32_t RTC_T::TAR

TAR

Offset: 0x1C Time Alarm Register

Bits Field Descriptions
[3:0] 1SEC 1 Sec Time Digit of Alarm Setting (0~9)
[6:4] 10SEC 10 Sec Time Digit of Alarm Setting (0~5)
[11:8] 1MIN 1 Min Time Digit of Alarm Setting (0~9)
[14:12] 10MIN 10 Min Time Digit of Alarm Setting (0~5)
[19:16] 1HR 1 Hour Time Digit of Alarm Setting (0~9)
[21:20] 10HR 10 Hour Time Digit of Alarm Setting (0~2)

Definition at line 7200 of file Nano1X2Series.h.

◆ TCAP

__I uint32_t TIMER_T::TCAP

TCAP

Offset: 0x18 Timer x Capture Data Register

Bits Field Descriptions
[23:0] CAP Timer Capture Data Register
When TCAP_EN (TMRx_CTL[16]) is set, TCAP_MODE (TMRx_CTL[17]) is 0, TCAP_CNT_MOD (TMRx_CTL[20]) is 0, and the transition of external pin matches the TCAP_EDGE (TMRx_CTL[19:18]) setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAP.
When TCAP_EN (TMRx_CTL[16]) is set, TCAP_MODE (TMRx_CTL[17]) is 0, TCAP_CNT_MOD (TMRx_CTL[20]) is 1, and the transition of external pin matches the 2nd transition of TCAP_EDGE (TMRx_CTL[19:18]) setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAP.
User can read this register to get the counter value.
When a new incoming capture event detected before CPU clearing the TCAP_IS (TMRxISR[1]) status, Timer will keep this filed value unchanged and drop the new capture value.

Definition at line 9302 of file Nano1X2Series.h.

◆ TCR

__IO uint32_t PDMA_T::TCR

TCR

Offset: 0x28 PDMA Timer Counter Setting Register

Bits Field Descriptions
[15:0] PDMA_TCR PDMA Timer Count Setting Register
Each PDMA channel contains an internal counter.
The internal counter loads the value of PDAM_TCR and starts counting down when setting PDMA_CSRx [TO_EN] register.
PDMA will request interrupt when this internal counter reaches zero and PDMA_IERx[TO_IE] is high.
This internal counter will reload and start counting when completing each peripheral request service.

Definition at line 2262 of file Nano1X2Series.h.

◆ TDRA

__I uint32_t SC_T::TDRA

TDRA

Offset: 0x38 SC Timer Current Data Register A.

Bits Field Descriptions
[23:0] TDR0 Timer0 Current Data Register (Read Only)
This field indicates the current count values of timer0.

Definition at line 8139 of file Nano1X2Series.h.

◆ TDRB

__I uint32_t SC_T::TDRB

TDRB

Offset: 0x3C SC Timer Current Data Register B.

Bits Field Descriptions
[7:0] TDR1 Timer1 Current Data Register (Read Only)
This field indicates the current count values of timer1.
[15:8] TDR2 Timer2 Current Data Register (Read Only)
This field indicates the current count values of timer2.

Definition at line 8153 of file Nano1X2Series.h.

◆ TEMPCTL

__IO uint32_t SYS_T::TEMPCTL

TEMPCTL

Offset: 0x20 Temperature Sensor Control Register

Bits Field Descriptions
[0] VTEMP_EN Temperature Sensor Enable Control
0 = Temperature sensor function Disabled (default).
1 = Temperature sensor function Enabled.

Definition at line 2833 of file Nano1X2Series.h.

◆  [1/4]

__O uint32_t { ... } ::THR

THR

Offset: 0x00 SC Transmit Buffer Register

Bits Field Descriptions
[7:0] THR Transmit Buffer
By writing to this register, the SC sends out an 8-bit data through the TX pin (LSB first).

Definition at line 7570 of file Nano1X2Series.h.

◆ THR [2/4]

__O uint32_t SC_T::THR

THR

Offset: 0x00 SC Transmit Buffer Register

Bits Field Descriptions
[7:0] THR Transmit Buffer
By writing to this register, the SC sends out an 8-bit data through the TX pin (LSB first).

Definition at line 7570 of file Nano1X2Series.h.

◆  [3/4]

__O uint32_t { ... } ::THR

THR

Offset: 0x00 UART Transmit Buffer Register

Bits Field Descriptions
[7:0] THR Transmit Buffer
By writing to this register, the UART sends out an 8-bit data through the TX pin (LSB first).

Definition at line 9509 of file Nano1X2Series.h.

◆ THR [4/4]

__O uint32_t UART_T::THR

THR

Offset: 0x00 UART Transmit Buffer Register

Bits Field Descriptions
[7:0] THR Transmit Buffer
By writing to this register, the UART sends out an 8-bit data through the TX pin (LSB first).

Definition at line 9509 of file Nano1X2Series.h.

◆ TLCTL

__IO uint32_t UART_T::TLCTL

TLCTL

Offset: 0x08 UART Transfer Line Control Register.

Bits Field Descriptions
[1:0] DATA_LEN Data Length
00 = 5 bits.
01 = 6 bits.
10 = 7 bits.
11 = 8 bits.
[2] NSB Number Of STOP Bit Length
1 = 1.5 "STOP bit" is generated in the transmitted data when 5-bit word length is selected, and 2 STOP bit" is generated when 6, 7 and 8 bits data length is selected.
0 = 1 " STOP bit" is generated in the transmitted data.
[3] PBE Parity Bit Enable
1 = Parity bit is generated or checked between the "last data"word "it" and "stop bit" of the serial data.
0 = Parity bit is not generated (transmitting data) or checked (receiving data) during transfer.
[4] EPE Even Parity Enable
1 = Even number of logic 1's are transmitted or check the data word and parity bits in receiving mode.
0 = Odd number of logic 1's are transmitted or check the data word and parity bits in receiving mode.
Note: This bit has effect only when PBE bit (parity bit enable) is set.
[5] SPE Stick Parity Enable
1 = When bits PBE, EPE and SPE are set, the parity bit is transmitted and checked as "0".
When PBE and SPE are set and EPE is cleared, the parity bit is transmitted and checked as "1".
In RS-485 mode, PBE, EPE and SPE can control bit 9.
0 = Stick parity Disabled.
[6] BCB Break Control Bit
When this bit is set to logic "1", the serial data output (TX) is forced to the Spacing State (logic "0").
This bit acts only on TX pin and has no effect on the transmitter logic.
1 = Break control Enabled.
0 = Break control Disabled.
[9:8] RFITL RX-FIFO Interrupt (INT_RDA) Trigger Level
When the number of bytes in the receiving FIFO is equal to the RFITL then the RDA_IF will be set (if RDA_IE(IER[0]) is enabled, an interrupt will be generated)
00 = RX FIFO Interrupt Trigger Level is 1 byte.
01 = RX FIFO Interrupt Trigger Level is 4 bytes.
10 = RX FIFO Interrupt Trigger Level is 8 bytes.
11 = RX FIFO Interrupt Trigger Level is 14 bytes.
Note: When operating in IrDA mode or RS-485 mode, the RFITL must be set to "0".
[13:12] RTS_TRI_LEV RTSn Trigger Level (For Auto-Flow Control Use)
00 = RTS Trigger Level is 1 byte.
01 = RTS Trigger Level is 4 bytes.
10 = RTS Trigger Level is 8 bytes.
11 = RTS Trigger Level is 14 bytes.
Note: This field is used for auto RTSn flow control.

Definition at line 9629 of file Nano1X2Series.h.

◆ TLR

__IO uint32_t RTC_T::TLR

TLR

Offset: 0x0C Time Loading Register

Bits Field Descriptions
[3:0] 1SEC 1 Sec Time Digit (0~9)
[6:4] 10SEC 10 Sec Time Digit (0~5)
[11:8] 1MIN 1 Min Time Digit (0~9)
[14:12] 10MIN 10 Min Time Digit (0~5)
[19:16] 1HR 1 Hour Time Digit (0~9)
[21:20] 10HR 10 Hour Time Digit (0~2)

Definition at line 7136 of file Nano1X2Series.h.

◆ TMCTL

__IO uint32_t UART_T::TMCTL

TMCTL

Offset: 0x20 UART Time-Out Control State Register.

Bits Field Descriptions
[8:0] TOIC Time-Out Comparator
The time-out counter resets and starts counting whenever the RX-FIFO receives a new data word.
Note1: Fill all "0" to this field indicates to disable this function.
Note2: The real time-out value is TOIC + 1.
Note3: The counting clock is baud rate clock.
Note4: The UART data format is start bit + 8 data bits + parity bit + stop bit, although software can configure this field by any value but it is recommend to filled this field great than 0xA.
[23:16] DLY TX Delay Time Value
This field is use to program the transfer delay time between the last stop bit and next start bit.
Note1: Fill all "0" to this field indicates to disable this function.
Note2: The real delay value is DLY.
Note3: The counting clock is baud rate clock.

Definition at line 9909 of file Nano1X2Series.h.

◆ TMR0

__IO uint32_t SC_T::TMR0

TMR0

Offset: 0x28 SC Internal Timer Control Register 0.

Bits Field Descriptions
[23:0] CNT Timer 0 Counter Value Register (ETU Base)
This field indicates the internal timer operation values.
[27:24] MODE Timer 0 Operation Mode Selection
This field indicates the internal 24 bit timer operation selection.

Definition at line 8069 of file Nano1X2Series.h.

◆ TMR1

__IO uint32_t SC_T::TMR1

TMR1

Offset: 0x2C SC Internal Timer Control Register 1.

Bits Field Descriptions
[7:0] CNT Timer 1 Counter Value Register (ETU Base)
This field indicates the internal timer operation values.
[27:24] MODE Timer 1 Operation Mode Selection
This field indicates the internal 8 bit timer operation selection.

Definition at line 8083 of file Nano1X2Series.h.

◆ TMR2

__IO uint32_t SC_T::TMR2

TMR2

Offset: 0x30 SC Internal Timer Control Register 2.

Bits Field Descriptions
[7:0] CNT Timer 2 Counter Value Register (ETU Base)
This field indicates the internal timer operation values.
[27:24] MODE Timer 2 Operation Mode Selection
This field indicates the internal 8 bit timer operation selection.

Definition at line 8097 of file Nano1X2Series.h.

◆ TOUT

__IO uint32_t I2C_T::TOUT

TOUT

Offset: 0x10 I2C Time-out control Register

Bits Field Descriptions
[0] TOUTEN Time-Out Counter Enable/Disable Control
0 = Disabled.
1 = Enabled.
When set this bit to enable, the 14 bits time-out counter will start counting when INTSTS (I2CINTSTS[0]) is cleared.
Setting flag STAINTSTS to high or the falling edge of I2C clock or stop signal will reset counter and re-start up counting after INTSTS is cleared.
[1] DIV4 Time-Out Counter Input Clock Divider By 4
0 = Disabled.
1 = Enabled.
When Enabled, the time-out period is extended 4 times.

Definition at line 4992 of file Nano1X2Series.h.

◆ TRSR [1/2]

__IO uint32_t SC_T::TRSR

TRSR

Offset: 0x20 SC Transfer Status Register.

Bits Field Descriptions
[0] RX_OVER_F RX Overflow Error Status Flag (Read Only)
This bit is set when RX buffer overflow.
If the number of received bytes is greater than RX Buffer (SC_RBR) size, 4 bytes of SC, this bit will be set.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: The overwrite data will be ignored.
[1] RX_EMPTY_F Receiver Buffer Empty Status Flag(Read Only)
This bit indicates RX buffer empty or not.
When the last byte of RX buffer has been read by CPU, hardware sets this bit high.
It will be cleared when SC receives any new data.
[2] RX_FULL_F Receiver Buffer Full Status Flag (Read Only)
This bit indicates RX buffer full or not.
This bit is set when RX pointer is equal to 4, otherwise it is cleared by hardware.
[4] RX_EPA_F Receiver Parity Error Status Flag (Read Only)
This bit is set to logic "1" whenever the received character does not have a valid "parity bit".
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: If CPU sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag.
[5] RX_EFR_F Receiver Frame Error Status Flag (Read Only)
This bit is set to logic "1" whenever the received character does not have a valid "stop bit" (that is, the stop bit following the last data bit or parity bit is detected as a logic "0").
Note1: This bit is read only, but can be cleared by writing "1" to it.
Note2: If CPI sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag.
[6] RX_EBR_F Receiver Break Error Status Flag (Read Only)
This bit is set to a logic "1" whenever the received data input (RX) held in the "spacing state" (logic "0") is longer than a full word transmission time (that is, the total time of "start bit" + data bits + parity + stop bits).
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: If CPU sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag.
[8] TX_OVER_F TX Overflow Error Interrupt Status Flag (Read Only)
If TX buffer is full (TX_FULL_F = "1"), an additional write data to SC_THR will cause this bit to logic "1".
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: The additional write data will be ignored.
[9] TX_EMPTY_F Transmit Buffer Empty Status Flag (Read Only)
This bit indicates TX buffer empty or not.
When the last byte of TX buffer has been transferred to Transmitter Shift Register, hardware sets this bit high.
It will be cleared when writing data into SC_THR (TX buffer not empty).
[10] TX_FULL_F Transmit Buffer Full Status Flag (Read Only)
This bit indicates TX buffer full or not.
This bit is set when TX pointer is equal to 4, otherwise is cleared by hardware.
[18:16] RX_POINT_F Receiver Buffer Pointer Status Flag (Read Only)
This field indicates the RX buffer pointer status flag.
When SC receives one byte from external device, RX_POINT_F increases one.
When one byte of RX buffer is read by CPU, RX_POINT_F decreases one.
[21] RX_REERR Receiver Retry Error (Read Only)
This bit is set by hardware when RX has any error and retries transfer.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2 This bit is a flag and can not generate any interrupt to CPU.
Note3: If CPU enables receiver retry function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F).
[22] RX_OVER_ERETRY Receiver Over Retry Error (Read Only)
This bit is set by hardware when RX transfer error retry over retry number limit.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: If CPU enables receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F).
[23] RX_ATV Receiver In Active Status Flag (Read Only)
This bit is set by hardware when RX transfer is in active.
This bit is cleared automatically when RX transfer is finished.
[26:24] TX_POINT_F Transmit Buffer Pointer Status Flag (Read Only)
This field indicates the TX buffer pointer status flag.
When CPU writes data into SC_THR, TX_POINT_F increases one.
When one byte of TX Buffer is transferred to transmitter shift register, TX_POINT_F decreases one.
[29] TX_REERR Transmitter Retry Error (Read Only)
This bit is set by hardware when transmitter re-transmits.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2 This bit is a flag and can not generate any interrupt to CPU.
[30] TX_OVER_ERETRY Transmitter Over Retry Error (Read Only)
This bit is set by hardware when transmitter re-transmits over retry number limitation.
Note: This bit is read only, but it can be cleared by writing "1" to it.
[31] TX_ATV Transmit In Active Status Flag (Read Only)
This bit is set by hardware when TX transfer is in active or the last byte transmission has not completed.
This bit is cleared automatically when TX transfer is finished and the STOP bit (include guard time) has been transmitted.

Definition at line 7979 of file Nano1X2Series.h.

◆ TRSR [2/2]

__IO uint32_t UART_T::TRSR

TRSR

Offset: 0x14 UART Transfer State Status Register.

Bits Field Descriptions
[0] RS485_ADDET_F RS-485 Address Byte Detection Status Flag (Read Only)
This bit is set to logic "1" and set RS-485_ADD_EN (UART_ALT_CTL[19]) whenever in RS-485 mode the receiver detected any address byte character (bit 9 ='1') bit".
This bit is reset whenever the CPU writes "1" to this bit.
0 = No RS-485 address detection interrupt is generated.
1 = RS-485 address detection interrupt is generated.
Note1: This field is used for RS-485 mode.
Note2: This bit is read only, but can be cleared by writing "1" to it.
[1] ABAUD_F Auto-Baud Rate Interrupt (Read Only)
This bit is set to logic "1" when auto-baud rate detect function finished.
0 = No Auto- Baud Rate interrupt is generated.
1= Auto-Baud Rate interrupt is generated.
Note: This bit is read only, but can be cleared by writing "1" to it.
[2] ABAUD_TOUT_F Auto-Baud Rate Time-Out Interrupt (Read Only)
This bit is set to logic "1" in Auto-baud Rate Detect mode and the baud rate counter is overflow.
0 = No Auto-Baud Rate Time-Out interrupt is generated.
1 = Auto-Baud Rate Time-Out interrupt is generated.
Note: This bit is read only, but can be cleared by writing "1" to it.
[3] LIN_TX_F LIN TX Interrupt Flag (Read Only)
This bit is set to logic "1" when LIN transmitted header field.
The header may be "break field" or "break field + sync field" or "break field + sync field + PID field", it can be choose by setting LIN_HEAD_SEL (UART_ALT_CTL[5:4]) register.
0 = No LIN Tx interrupt is generated.
1 = LIN Tx interrupt is generated.
Note: This bit is read only, but can be cleared by writing "1" to it.
[4] LIN_RX_F LIN RX Interrupt Flag (Read Only)
This bit is set to logic "1" when received LIN header field.
The header may be "break field" or "break field + sync field" or "break field + sync field + PID field", and it can be choose by setting LIN_HEAD_SEL (UART_ALT_CTL[5:4]) register.
0 = No LIN Rx interrupt is generated.
1 = LIN Rx interrupt is generated.
Note: This bit is read only, but can be cleared by writing "1" to it.
[5] BIT_ERR_F Bit Error Detect Status Flag (Read Only)
At TX transfer state, hardware will monitoring the bus state, if the input pin (SIN) state is not equal to the output pin (SOUT) state, BIT_ERR_F will be set.
When occur bit error, hardware will generate an interrupt to CPU (INT_LIN).
0 = No Bit error interrupt is generated.
1 = Bit error interrupt is generated.
Note1: This bit is read only, but it can be cleared by writing "1" to it.
Note2: This bit is only valid when enabling the bit error detection function (BIT_ERR_EN (UART_ALT_CTL[8]) = "1").
[8] LIN_RX_SYNC_ERR_F LIN RX SYNC Error Flag (Read Only)
This bit is set to logic "1" when LIN received incorrect SYNC field.
User can choose the header by setting LIN_HEAD_SEL (UART_ALT_CTL[5:4]) register.
0 = No LIN Rx sync error is generated.
1 = LIN Rx sync error is generated.
Note: This bit is read only, but can be cleared by writing "1" to LIN_RX_F.

Definition at line 9784 of file Nano1X2Series.h.

◆ TSSR

__IO uint32_t RTC_T::TSSR

TSSR

Offset: 0x14 Time Scale Selection Register

Bits Field Descriptions
[0] 24hr_12hr 24-Hour / 12-Hour Mode Selection
It indicates that TLR and TAR are in 24-hour mode or 12-hour mode
0 = select 12-hour time scale with AM and PM indication.
1 = select 24-hour time scale.

Definition at line 7166 of file Nano1X2Series.h.

◆ TTR

__IO uint32_t RTC_T::TTR

TTR

Offset: 0x30 RTC Time Tick Register

Bits Field Descriptions
[2:0] TTR Time Tick Register
The RTC time tick period for Periodic Time Tick Interrupt request.
000 = 1 tick/second.
001 = 1/2 tick/second.
010 = 1/4 tick/second.
011 = 1/8 tick/second.
100 = 1/16 tick/second.
101 = 1/32 tick/second.
110 = 1/64 tick/second.
111 = 1/128 tick/second.
Note: This register can be read back after the RTC is active by AER.
[3] TWKE RTC Timer Wake-Up CPU Function Enable
If TWKE is set before CPU enters power-down mode, when a RTC Time Tick, CPU will be wakened up by RTC unit.
0 = Time Tick wake-up CPU function Disabled.
1 = Wake-up function Enabled so that CPU can be waken up from Power-down mode by Time Tick.
Note: Tick timer setting follows the TTR ( RTC_TTR[2:0]) description.

Definition at line 7302 of file Nano1X2Series.h.

◆ TX0

__O uint32_t SPI_T::TX0

TX0

Offset: 0x20 SPI Transmit Data FIFO Register 0

Bits Field Descriptions
[31:0] TDATA Transmit Data FIFO Bits(Write Only)
The Data Transmit Registers hold the data to be transmitted in the next transfer.
The number of valid bits depends on the setting of transmit bit length field of the SPI_CTL register.
For example, if TX_BIT_LEN is set to 0x8, the bit SPI_TX[7:0] will be transmitted in next transfer.
If TX_BIT_LEN is set to 0x0, the SPI controller will perform a 32-bit transfer.
Note1: The SPI_TX1 is used only in TWOB bit (SPI_CTL[22]) is set 1.
The first channel's transmitted data shall be written into SPI_TX0 and the second channel's transmitted data shall be written into SPI_TX1 in two-bit mode.
SPI_TX0 shall be written first in TWOB mode.
In FIFO and two-bit mode, the first written into data in SPI_TX0 is the first channel's transmitted data and the second written data in SPI_RX0 is the second channel's transmitted data.
Note2: When the SPI controller is configured as a slave device and the FIFO mode is disabled, if the SPI controller attempts to transmit data to a master, the software must update the transmit data register before setting the GO_BUSY bit to 1.

Definition at line 8743 of file Nano1X2Series.h.

◆ TX1

__O uint32_t SPI_T::TX1

TX1

Offset: 0x24 SPI Transmit Data FIFO Register 1

Bits Field Descriptions
[31:0] TDATA Transmit Data FIFO Bits(Write Only)
The Data Transmit Registers hold the data to be transmitted in the next transfer.
The number of valid bits depends on the setting of transmit bit length field of the SPI_CTL register.
For example, if TX_BIT_LEN is set to 0x8, the bit SPI_TX[7:0] will be transmitted in next transfer.
If TX_BIT_LEN is set to 0x0, the SPI controller will perform a 32-bit transfer.
Note1: The SPI_TX1 is used only in TWOB bit (SPI_CTL[22]) is set 1.
The first channel's transmitted data shall be written into SPI_TX0 and the second channel's transmitted data shall be written into SPI_TX1 in two-bit mode.
SPI_TX0 shall be written first in TWOB mode.
In FIFO and two-bit mode, the first written into data in SPI_TX0 is the first channel's transmitted data and the second written data in SPI_RX0 is the second channel's transmitted data.
Note2: When the SPI controller is configured as a slave device and the FIFO mode is disabled, if the SPI controller attempts to transmit data to a master, the software must update the transmit data register before setting the GO_BUSY bit to 1.

Definition at line 8763 of file Nano1X2Series.h.

◆ UACTL

__IO uint32_t SC_T::UACTL

UACTL

Offset: 0x34 SC UART Mode Control Register.

Bits Field Descriptions
[0] UA_MODE_EN UART Mode Enable
0 = Smart Card mode.
1 = UART mode.
Note1: When operating in UART mode, user must set SCx_CTL [CON_SEL] and SCx_CTL [AUTO_CON_EN] to "0".
Note2: When operating in smart card mode, user must set SCx_UACTL [7:0] register to "0".
Note3: When UART is enabled, hardware will generate a reset to reset internal buffer and internal state machine.
[5:4] DATA_LEN Data Length
00 = 8 bits
01 = 7 bits
10 = 6 bits
11 = 5 bits
Note: In Smart Card mode, this field must be '00'
[6] PBDIS Parity Bit Disable
0 = Parity bit is generated or checked between the "last data word bit" and "stop bit" of the serial data.
1 = Parity bit is not generated (transmitting data) or checked (receiving data) during transfer.
Note: In Smart Card mode, this field must be '0' (default setting is with parity bit)
[7] OPE Odd Parity Enable
0 = Even number of logic 1's are transmitted or check the data word and parity bits in receiving mode.
1 = Odd number of logic 1's are transmitted or check the data word and parity bits in receiving mode.
Note: This bit has effect only when PBDIS bit is '0'.

Definition at line 8127 of file Nano1X2Series.h.

◆ VAL

__I uint32_t WWDT_T::VAL

WWDTVAL

Offset: 0x10 Window Watchdog Timer Counter Value Register

Bits Field Descriptions
[5:0] VAL WWDT Counter Value
This register reflects the counter value of window watchdog. This register is read only

Definition at line 10522 of file Nano1X2Series.h.

◆ VARCLK

__IO uint32_t SPI_T::VARCLK

VARCLK

Offset: 0x34 SPI Variable Clock Pattern Flag Register

Bits Field Descriptions
[31:0] VARCLK Variable Clock Pattern Flag
The value in this field is the frequency patterns of the SPICLK.
Note: It is used for CLKP = 0 only.

Definition at line 8778 of file Nano1X2Series.h.

◆ WDATA

__IO uint32_t DMA_CRC_T::WDATA

WDATA

Offset: 0x80 DMA CRC Write Data Register

Bits Field Descriptions
[31:0] CRC_WDATA CRC Write Data Register
When operating in CPU PIO (CRC_CTL [CRCCEN] = 1, CRC_CTL [TRIG_EN] = 0) mode, software can write data to this field to perform CRC operation;.
When operating in CRC DMA mode (CRC_CTL [CRCCEN] = 1, CRC_CTL [TRIG_EN] = 0), this field will be used for DMA internal buffer.
Note1: When operating in CRC DMA mode, so don't filled any data in this field.
Note2:The CRC_CTL [WDATA_COM] and CRC_CTL [WDATA_RVS] bit setting will affected this field; For example, if WDATA_RVS = 1, if the write data in CRC_WDATA register is 0xAABBCCDD, the read data from CRC_WDATA register will be 0x55DD33BB

Definition at line 1888 of file Nano1X2Series.h.

◆ WK_INTSTS

__IO uint32_t CLK_T::WK_INTSTS

WK_INTSTS

Offset: 0x30 Wake-up Interrupt Status

Bits Field Descriptions
[0] PD_WK_IS Wake-Up Interrupt Status In Chip Power-Down Mode
This bit indicates that some event resumes chip from Power-down mode
The status is set if external interrupts, UART, GPIO, RTC, USB, SPI, Timer, WDT, and BOD wake-up occurred.
Write 1 to clear this bit.

Definition at line 1336 of file Nano1X2Series.h.