No 100% power by BCCU

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,

I have the problem that I cant get 100% power by the following adjustments:

SCU_GENERAL->PASSWD = 0xC0U;
while(((SCU_GENERAL->PASSWD)& SCU_GENERAL_PASSWD_PROTS_Msk)){;}
SCU_CLK->CLKCR = 0x3FF10100; //32MHz/64MHz
while(SCU_CLK->CLKCR &(SCU_CLK_CLKCR_VDDC2LOW_Msk));
SCU_GENERAL->PASSWD = 0xC3U;

SCU_GENERAL->PASSWD = 0xC0UL; //Counter
WR_REG(SCU_CLK->CLKCR, SCU_CLK_CLKCR_CNTADJ_Msk, SCU_CLK_CLKCR_CNTADJ_Pos, 0x3FFU);
SET_BIT(SCU_CLK->CGATCLR0, SCU_CLK_CGATCLR0_BCCU0_Pos);
while(SCU_CLK->CLKCR & SCU_CLK_CLKCR_VDDC2LOW_Msk);
SCU_GENERAL->PASSWD = 0xC3UL;

BCCU0->GLOBCLK = 0xDB0040; //FastClockPrescalerfactor = 0x40 = divided by 64,
BCCU0->GLOBCON = 0x3E80000;
BCCU0->EVIER = 0x00;
BCCU0->GLOBDIM = 0x00;
BCCU0_DE2->DTT = 0x10000;
BCCU0->DEEN = 0x4;
BCCU0_DE2->DLS = 0x400;
SET_BIT(BCCU0->DESTRCON, BCCU_DESTRCON_DE2S_Pos);
BCCU0->CHEN = 0x1E0;
BCCU0_CH5->CHCONFIG = 0x202;
BCCU0_CH5->PKCMP = 0xFF00FF;
BCCU0_CH5->PKCNTR = 0xFF;

P0_9_set_mode(OUTPUT_PP_AF1);

WR_REG(BCCU0_CH5->CHCONFIG, BCCU_CH_CHCONFIG_DSEL_Msk, BCCU_CH_CHCONFIG_DSEL_Pos, 2);
WR_REG(BCCU0_CH5->CHCONFIG, BCCU_CH_CHCONFIG_LINPRES_Msk, BCCU_CH_CHCONFIG_LINPRES_Pos, 10);
WR_REG(BCCU0_DE2->DTT, BCCU_DE_DTT_DIMDIV_Msk, BCCU_DE_DTT_DIMDIV_Pos, 100);

BCCU0_CH5->INTS = 4095; // should be 100%
BCCU0->CHSTRCON = 0x20; //CH5

The power is about only 50% (see my pic)
What's my fault?

Thank you for your help!

Bernd
0 Likes
0 Replies