XMC 1100 CC4yINS Setup

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

cross mob
User14877
Level 1
Level 1
Hi,

I am using a XMC1100 where I am trying to run VADC with CCU40_41 (slice 1) , but I am having problems setting up CCU40_CC41->INS= ( 8 << CCU4_CC4_INS_EV0IS_Pos) for pin 2.8 (Analog input is at this pin).
I have checked the datasheet in which out of 0-15 inputs , I have to choose one .
I am not able to decide what should the one .
Any help is appreciated .

CCU40_CC41->INS = ( 8 << CCU4_CC4_INS_EV0IS_Pos ) | // Select Event Type 'InyI' for Input Multiplexer associated with event 0
( 2 << CCU4_CC4_INS_EV0EM_Pos ); // Falling Edge Select -> Restart timer if CC41 period match
//
CCU40_CC41->CMC = ( 1 << CCU4_CC4_CMC_STRTS_Pos ); // Ext.Start Selector -> Start triggered by Event 0

Thanks in advance.
0 Likes
2 Replies
DRubeša
Employee
Employee
First solution authored First like received
Hi,

Can you please explain a bit in more detail what would you exactly try to do? You would like to connect pin 2.8 to the CCU40_41 (slice 1) unit as an external trigger event 0 and then connect CCU4 timer status signal ("st") to VADC as an gating input, or what is your exact idea? I didn´t quite understand from your initial question.

Best regards,
Deni
0 Likes
User14877
Level 1
Level 1
Yes , exactly what u mentioned i the above comment
0 Likes