cancel
Showing results for 
Search instead for 
Did you mean: 

one shot mode

Jtee.1
Associate II

Configuration:

1. timer2 configured as one shot mode

2. PA0 acts as IC1,and TI1FP1;PA1 acts an OC2.

3.connect external trigger(3.3V LVTTL) to the TI1FP1

4. cubemx followed

Question:

1.Before enable CCER->CC1E, the amplitude high is 3.3V. While execute the CCER->CC1E, the amplitude high drops to the 2V. Please confirm whether it is reasonable or not.

2.Under the circumstance above, the code enters trigger interrupt at both rising and falling edge,while I configure the CCER->CC1NP and CC1P = 00,and it should enter interrupt only at rising edge.

2 REPLIES 2
Jtee.1
Associate II

cubemx

Jtee.1
Associate II

0693W00000AOKKnQAP.png0693W00000AOKG3QAP.png0693W00000AOKKdQAP.png