Tool/software: Code Composer Studio
Hello,
I'm currently trying the CLB module. In the combinatorial logic exemple, and from what I understood, there are 2 modes (mode 1 = active low ; mode 2 = active high) corresponding respectively to those 2 equations in LUT_0 (almost same thing for LUT_1) :
(i0 & !i1 & !(i3 & !(i2 & i3))) ; (!i0 & i1 & i2 & !(i2 & i3))
First of all, i'm not sure how the inputs 0 and 1 works (corresponding both to the same "CTRDIR", weird ?). I think it allows to chose the mode ( i0 &!i1 = mode 1 ; !i0 & i1 = mode 2) but i'm not sure.
Then, my goal is to add a logic in LUT_2, which is, I think, not used, except in FSM_2 and in COUNTER_2 (LUT_2.OUT is displayed) but here again i'm not sure if it influence the final output.
This new logic i'm trying to make needs to compare, for exemple, ePWM1A and ePWM1B to create a third signal (ePWM3A) which will be HIGH only when 1A and 1B are HIGH (= check cross-conductions).
On my scope, I can visualize the third signal ePWM3 but I can't have any influence on it (by using the .syscfg) so I guess i'm doing something wrong. I have set my boundary.in4 like this in the .c file :
CLB_configGlobalInputMux(CLB1_BASE, CLB_IN4, CLB_GLOBAL_IN_MUX_EPWM3A); so maybe my error comes from the .syscfg (I've set OUTLUT_1 to have eqn = i0 = LUT_2.OUT and I think this is right)
I know this is a lot of questions but i'm a beginner, so thanks you in advance for your time and your answers/advices.