Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
244
/
631
Figure 11-16 PWM input mode timing
Because of only filter timer input 1 (TI1FP1) and filter timer input 2 (TI2FP2) are connected to the slave mode
controller, the PWM input mode can only be used with the TIMx_CH1/TIMx_CH2 signals.
Forced output mode
Software can force output compare signals to active or inactive level directly, in output mode
(TIMx_CCMODx.CCxSEL=00).
User can set TIMx_CCMODx. OCxMD=101 to force the output compare signal to active level. And the OCxREF
will be forced high, OCx get opposite value to CCxP polarity bit. On the other hand, user can set TIMx_CCMODx.
OCxMD=100 to force the output compare signal to inactive level.
The values of the TIMx_CCDATx shadow register and the counter still comparing with each other in this mode. And
the flag still can be set. Therefore, the interrupt and DMA requests still can be sent.
The comparison between the output compare register TIMx_CCDATx and the counter TIMx_CNT has no effect on
OCxREF. And the flag still can be set. Therefore, the interrupt and DMA requests still can be sent.
Output compare mode
User can use this mode to control the output waveform, or to indicate that a period of time has elapsed.
When the capture/compare register and the counter have the same value, the output compare function’s operations
are as follow:
TI1
TIMx_CNT
0004
0000
0003
0002
0001
0000
0004
TIMx_CCDAT1
TIMx_CCDAT2
0004
0002
IC1 capture
IC2 capture
Reset counter
IC2 capture
Pulse width
measurement
IC1 capture
Period
measurement