Anxious BCCU

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

cross mob
Not applicable
Good afternoon,

I detected that the output's of the "DMX512RD01_Example1_XMC12" are anxious during low DMX input signal (value 1-20).

I developed the following SW without App but with the same problem!

void Init_BCCU(void){
//ENABLE-CLOCK-TO-BCCU---------------------------------------------------------
SCU_GENERAL->PASSWD = 0x000000C0UL;
SCU_CLK->CGATCLR0 = 0x000000010UL;
while((SCU_CLK->CLKCR)&0x40000000UL); //wait for VDDC to stabilize
SCU_GENERAL->PASSWD = 0x000000C3UL;
//ENABLE-CLOCK-TO-BCCU-End-----------------------------------------------------

BCCU0->GLOBCLK = 0x000DB0040; //FCLK_PS = d200, DCLK_PS = d219 (Dimmer Clock Prescaler Factor)
BCCU0->GLOBCON = 0x3E80000; //WDMBN = 1000
//Interrupt Configuration
BCCU0->EVIER = 0x00;
//Global Dimming Level
BCCU0->GLOBDIM = 0x00;
//Select the DimDiv value, Dither Function Selection & Curve Selection
BCCU0_DE0->DTT = 0x00020000;//64 //DIMDIV = d0, DTEN = 0, CSEL = 1 = fine curve DIMDIV = Fade Geschwindigkeit
BCCU0->DEEN = 0x00000001UL; //Dimming Engine Enable: enable Engine 0
BCCU0_CH5->INTS = 4095;

BCCU0_CH5->CHCONFIG = 0x00000020AUL; //PKTH = 010, PEN = 1, DSEL = 0, WEN = 1
BCCU0_CH5->PKCMP = 0x0004000060; //OFFCMP = 96, ONCMP = 4
BCCU0_CH5->PKCNTR = 0x00000048; //OFFCNTVAL = d72
BCCU0->CHEN = 0x20UL; //ECH = 5
BCCU0->CHSTRCON = 0x20; //CH5

WR_REG(BCCU0_CH5->CHCONFIG, BCCU_CH_CHCONFIG_LINPRES_Msk, BCCU_CH_CHCONFIG_LINPRES_Pos, 8);//854);

}//Init_BCCU END***********************************************************************************

//Value and start
BCCU0_DE0->DLS = 1;
BCCU0->DESTRCON = 0x00000001UL; //Dimming mashine start and dimming level will change

Regards,
Bernd
0 Likes
2 Replies
SySa_4665481
Employee
Employee
5 sign-ins Welcome! 10 replies posted
Hi Bernd,

I noticed that you have set ONCMP to a value of 4. This is not allowed as we have observed that the packer is not functional with this value.
You should use a value greater than 5 for ONCMP and a value lesser than 249 for OFFCMP, as mentioned in our Errata Sheet under functional deviation BCCU_CM.005.

Hope this helps.

Best Regards,
Syafii
0 Likes
Not applicable
Thank you Syafii,

I will try it and inform you.

Regards,
Bernd
0 Likes