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

cross mob
BlueSky
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

 

Dear Krup, 

we would like to know the relationship between the  /CTRIP and /Enable  in the FOC software.

/Enable   TP301A.15   on XMC4400 board
/CTRIP0  TP301A.13    on XMC 4400 board

/CTRIP0 is monitored by ISR.  and /Enable is controlled by state machine.     Can we describe the /CTRIP0 detection sequence as following. 

Power ON.   ----> Software will check /CTRIP0  

        Branch 1,  if /CTRIP0 = GND,    Set /ENABLE  to high. 

        Branch 2,  if / CTRIP0 = High,  Set /Enable to Low, ( enable the invertor). 

Question:   

1.  Does XMC4400 provide a filter for CTRIP0 detection?  and what is the sampling rate if level detection?   What is the filter value? 

2. Will XMC4400 enable the invertor before detecting the /CTRIP0?

Finally, where can we find the documentation for this question?  or we have to read the code?  If we have to read the code,  may advice which function? 

Regards

 

0 Likes
1 Solution
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

Hi @BlueSky ,

1.  Does XMC4400 provide a filter for CTRIP0 detection?  and what is the sampling rate if level detection?   What is the filter value? 

XMC_CCU8_SLICE_CaptureInit(); -> initialize the CCU8 capture

XMC_CCU8_SLICE_CAPTURE_CONFIG_t  -> Use this structure to configure pre-scaler to vary the filter time

XMC_CCU8_SLICE_SetPassiveLevel(); -> can be used to set the passive level of inverter pin.

2. Will XMC4400 enable the invertor before detecting the /CTRIP0?

CTRAP - will be initiated during interrupt initialization 

CTRAP will be initialized and captured before inverter initialization

 

Thanks,

Krupashankar

View solution in original post

0 Likes
1 Reply
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

Hi @BlueSky ,

1.  Does XMC4400 provide a filter for CTRIP0 detection?  and what is the sampling rate if level detection?   What is the filter value? 

XMC_CCU8_SLICE_CaptureInit(); -> initialize the CCU8 capture

XMC_CCU8_SLICE_CAPTURE_CONFIG_t  -> Use this structure to configure pre-scaler to vary the filter time

XMC_CCU8_SLICE_SetPassiveLevel(); -> can be used to set the passive level of inverter pin.

2. Will XMC4400 enable the invertor before detecting the /CTRIP0?

CTRAP - will be initiated during interrupt initialization 

CTRAP will be initialized and captured before inverter initialization

 

Thanks,

Krupashankar

0 Likes