Texas Instruments TMS320DM648 Computer Drive User Manual


 
www.ti.com
6.4EnablingVICPort
6.5VICPortRegisters
EnablingVICPort
PerformthefollowingstepstoenabletheVICport.
1.CleartheGObitintheVICcontrolregister(VICCTL)to0.
2.SetthePRECISIONbitsinVICCTLtothedesiredprecision.
3.SettheVICclockdividerregister(VICDIV)bitstoappropriatevaluebasedontheprecisionand
interpolationfrequency.
4.SettheGObitinVICCTLto1.
5.TheVICinputregister(VICIN)iswrittenintoeverytimeanewinputcodeisavailableforinterpolation.
RepeatstepStep1asoftenasneeded.
TheVICportregistersarelistedinTable6-3.Seethedevice-specificdatasheetforthememoryaddress
oftheseregisters.
Table6-3.VICPortRegisters
Offset
Address
(1)
AcronymRegisterNameSection
00hVICCTLVICControlRegisterSection6.5.1
04hVICINVICInputRegisterSection6.5.2
08hVICDIVVICClockDividerRegisterSection6.5.3
(1)
Theabsoluteaddressoftheregistersisdevicespecificandisequaltothebaseaddress+offset
address.Seethedevice-specificdatasheettoverifytheregisteraddresses.
VCXOInterpolatedControlPort 170SPRUEM1May2007
SubmitDocumentationFeedback