EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #118 background imageLoading...
Page #118 background image
Comparator
6 - 18 C2000 Microcontroller Workshop - Analog-to-Digital Converter
Comparator Block Diagram
DACVAL * (V
DDA
V
SSA
)
1023
V =
DAC Reference Comparator Truth Table
Voltages Output
Voltage A < Voltage B 0
Voltage A > Voltage B 1
0
1
0
1
+
COMPx
-
ePWM
Event
Trigger
&
GPIO
MUX
Sync/
Qual
10-bit
DAC
COMPSTS
V
DDA
V
SSA
Input Pin B
Input Pin A
1
0
COMPSOURCE
DACVAL
CMPINV
COMPDACE
SYNCSEL
QUALSEL
SYSCLKOUT
COMPxTRIP
V
1 0
DACSOURCE
Ramp
Generator
PWMSYNC1
PWMSYNC2
PWMSYNC3
PWMSYNC4
00
01
10
11
RAMPSOURCE
Comparator Registers
Comparator Registers
reserved
15 - 10
DACVAL
9 - 0
Scales output of DAC from 0 1023
Value = 0 3FFh
AdcRegs.DACVAL DAC Value Register
reserved
15 - 1
COMPSTS
0
AdcRegs.COMPSTS Compare Output Status Register
Logical latched value of the comparator
reserved
15 - 9
7 - 3
SYNCSEL QUALSEL CMPINV COMPSOURCE COMPDACE
8 2 1 0
AdcRegs.COMPCTL Compare Control Register
Synchronization Select
Output before being feed
to ETPWM/GPIO blocks
0 = Asynchronous
1 = Synchronous
Comparator/
DAC Enable
0 = disable
1 = enable
Comparator
Source
0 = DAC
1 = pin
Invert
0 = no invert
1 = inverted
Qualification
Period
0h = no qual
1h = 2 clocks
Fh = 16 clocks
reserved
13 - 5
DACSOURCE
4 - 1
DAC source (DACVAL or RAMP Generator) and RAMP source sync select
AdcRegs.DACCTL DAC Control Register
RAMPSOURCE
FREE:SOFT
15 - 14
0

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals