Texas Instruments TMS320DM36x TV Converter Box User Manual


 
3.4CMPUDAT
3.5SETDIV
3.6CHSEL
Registers
www.ti.com
ThecomparisonA/DUpperdata(CMPUDAT)registerisshowninFigure5anddescribedinTable5.
Figure5.ComparisonA/DUpperData(CMPUDAT)Register
311090
ReservedCMPUDAT
R-0R/W-0
LEGEND:R/W=Read/Write;R=Readonly;-n=valueafterreset
Table5.ComparisonA/DUpperData(CMPUDAT)FieldDescriptions
BitFieldValueDescription
31-10Reserved0Anywritestothesebit(s)mustalwayshaveavalueof0.
9-0CMPUDATComparativerdata(upper)valueofCMPUDATshouldbethesameasorlargerthanthatof
CMPLDAT.
TheSETUPdividevalueforstartA/Dconversion(SETDIV)registerisshowninFigure6anddescribedin
Table6.
A/DconversiontimeisobtainedbyAnalogswitchsetuptime+ADCsetuptime+A/Dconversiontime.
Analogswitchsetuptime=PeripheralCLKperiod*(SET_DIV[5:0]+3)*2
ADCsetuptime=PeripheralCLKperiod*(SET_DIV[15:0]+1)*2
A/Dconversiontime=PeripheralCLKperiod*(SET_DIV[5:0]+1)*24.
Note:A/Dconversiontimecan'tbelessthan6us.
Figure6.SetupDivideValueforStartA/D(SETDIV)Register
3116
Reserved
R-0
150
SETDIV
R/W-0xFFFF
LEGEND:R/W=Read/Write;R=Readonly;-n=valueafterreset
Table6.SetupDivideValueforStartA/D(SETDIV)FieldDescriptions
BitFieldValueDescription
31-16Reserved0Anywritestothesebit(s)mustalwayshaveavalueof0.
15-0SETDIVSETDIVbitssettheAnalogswitchsetuptime,ADCsetup(Idle)timeandA/Dconversiontime.
Analogswitchsetuptime=PeripheralCLKperiod*(SET_DIV[5:0]+3)*2
ADCsetuptime=PeripheralCLKperiod*(SET_DIV[15:0]+1)*2
A/Dconversiontime=PeripheralCLKperiod*(SET_DIV[5:0]+1)*24.
TheanalogInputchannelselect(CHSEL)registerisshowninFigure7anddescribedinTable8.CHSEL
settingfortheselectionofdifferentchannelisshowninTable7.Inordertoselecttwoormorechannels,
ORingofthesesettingisneeded.
14AnalogtoDigitalConverter(ADC)InterfaceSPRUFI7March2009
SubmitDocumentationFeedback