GD32W51x User Manual
160
By configuring the RCU_SECP_CFG register, you can prohibit non-secure access to read
or modify the configuration and status of HXTAL, CKMEN, IRC16M, IRC32K, LXTAL, PLL,
PLLDIG, PLLI2S, AHB pre-scaler related registers, as well as the selection of the system
clock source, CKOUT clock output and reset flag RMVF can also be configured through the
RCU_SECP_CFG register. The summary of the RCU secured bits in RCU_SECP_CFG
register is show as the
Table 6-4. RCU secure protection configuration summary
.
For a secure peripheral, its related clock, reset, clock source selection and clock enable
during low-power modes control bits are also secure in the RCU_AHBxEN, RCU_APBxEN,
RCU_AHBxRST, RCU_APBxRST, RCU_AHBxSPEN, RCU_APBxSPEN registers.
Table 6-4. RCU secure protection configuration summary
Configuration bit in
RCU_SECPC FG
Corresponding
register
Secured bit
IRC16MSECP=1
RCU_CTL
IRC16MEN, IRC16MSTB,
IRC16MA DJ, IRC16MCALIB,
RCU_INT
IRC16MSTBIE, IRC16MSTBIF,
IRC16MSTBIC, IRC16MSTBIF
RCU_CFG1
IRC16MDIV
HXTALSECP=1
RCU_CTL
HXTALEN,HXTALSTV,HXTALBPS,CKMEN,RFCKME
N,HXTALPU,HXTALENI2S,HSTALENPLL,HA TALREA
DY
RCU_INT
CKMIC, HXTALSTBIC, HXTALSTBIE,
CKMIF, HXTALSTBIF
IRC32KSEC P=1
RCU_PLLSSCTL
IRC32KEN, IRC32KSTB
RCU_INT
IRC32KSTBIC, IRC32KSTBIE,
IRC32KSTBIF
LXTALSECP=1
RCU_BDCTL
LXTALEN, LXTALSTB, LXTALBPS,
LXTALDRI
SYSCLKSECP=1
RCU_CFG0
SCS[1:0], SCSS[1:0],CKOUT0SEL[1:0],
CKOUT0DIV[2:0],CKOUT1DIV[2:0], CKOUT1SEL[1:0]
PRESCSECP=1
RCU_CFG0
AHBPSC[3:0], APB1PSC[2:0],
APB2PSC [2:0], TIMERSEL
PLLSECP=1
RCU_PLL
PLLSRC[0], PLLPSC[6:0],
PLLN[8:0], PLLEN, PLLP[1:0],
RCU_CTL
PLLSTB, PLLEN
RCU_PLLSSCTL
SSCGON, SS_TYPE,
MODSTEP, MODCNT
RCU_INT
PLLSTBIC, PLLSTBIE,
PLLSTBIF
PLLDIGSECP=1
RCU_CTL
PLLDIGFSYSD IV[5:0],
PLLDIGSEL[1:0]
RCU_CTL
PLLDIGSTB, PLLDIGEN,
PLLDIGPU