Initial Compare Output Values (Compare Mode) - Texas Instruments CC253x User Manual

System-on-chip for 2.4ghz
Table of Contents

Advertisement

www.ti.com
Assuming that channel 1 and channel 2 are used to drive the outputs using timer up-and-down mode and
the channels use output compare modes 4 and 5, respectively, then the timer period (in Timer 1 clock
periods) is:
t
= T1CC0 × 2
P
and the dead time, that is, the time when both outputs are low, (in Timer 1 clock periods) is given by:
t
= T1CC1 – T1CC2
D
A compare output pin is initialized to the value listed in
a value is written to T1CNTL (all Timer 1 channels)
0x7 is written to T1CCTLn.CMP (channel n)
Compare Mode (
Set output on compare-up, clear on compare down in up-and-down mode (011)
In other modes than up-and-down mode, set output on compare, clear on 0
Clear output on compare-up, set on compare down in up-and-down mode (100)
In other modes than up-and-down mode, clear output on compare, set on 0
Clear when equal T1CC0, set when equal
Set when equal T1CC0, clear when equal
SWRU191F – April 2009 – Revised April 2014
Submit Documentation Feedback
Table 9-1. Initial Compare Output Values (Compare Mode)
T1CCTLn.CMP
Set output on compare (000)
Clear output on compare (001)
Toggle output on compare (010)
(011)
(100)
T1CCn
T1CCn
Copyright © 2009–2014, Texas Instruments Incorporated
Table 9-1
when:
)
(101)
(110)
Output Compare Mode
Initial Compare Output
0
1
0
0
0
1
1
0
1
Timer 1 (16-Bit Timer)
107

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents