欢迎来到天天文库
浏览记录
ID:30360235
大小:239.04 KB
页数:47页
时间:2018-12-29
《cdetectcdetectb例程b在cdetectasm文件中》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、;;Filename:ALL96.ASM;;Author:CarlNuzman,HemanthSampath,HaydenMetz,ChrisBuehler,;JonasKeating;Date:;Lastrevision:;;*********************************************************************;;Description:Mainprogram:dataandcontrolfortheentirereceiver;;Algorithm:Thereceiverisconsideredastatemachine
2、.Eachstateis;definedbythesubroutinesstoredinajumptable.Theprogram;cyclesthroughthesubroutinesatthesamplingrate,7200Hz.;Thereceiverchangesfromonestatetothenextbyrewritingthe;jumptable.Thestatechangesoccurwhenatimingcountergets;tozeroorinresponsetosignalsfromthetransmitter.;;Thisfilealsoconta
3、instwointerruptroutines.;INT1isusedincommunicatingbetweenthePCandtheEVM.;XINT,thetransmitinterrupt,isusedtosampletheincoming;analogsignalatthesamplerateandcontrolsamplingclock.;;*********************************************************************;*******************************************
4、***********************;DESCRIPTIONOFRESERVEDAUXILARYREGISTERS;;Thefollowingauxilaryregistersmaynotbemodifiedbyany;routineotherthanxint:;;AR3-runningcount2,1,0,whichkeepstrackofwhereweareinabaud.;AR5-usedbyinterrupt(xint)towritetoinpbuffer.;;Allotherauxregistersmaybemodifiedbyanyroutine.Eac
5、h;routineisresponsableforsavingandrestoringauxilaryregister;contentsbetweencalls.;;*******************************************************************;DATAFORMATNOTATION;;Thepositionofthebinarypointinourdataisindicatedwith;thefollowingnotation:;x:y:zindicatesthattherearexsignbits,yintegerbi
6、ts,and;zfractionalbits.;;Examples:;;Form1:1:15meansthatthevariablehas1signbit,1integerbit;and15fractionalbits.;;Form1:5:10meansthatthevariablehas1signbit,5integerbits;and10fractionalbits.;*********************************************************************.includemacros.inc;subroutines.glo
7、balsym_clock.globalslicer.globaldecode.globalequalize.globaleq_adapt;dualaccessintprogvariables.globalhr1.globalhr2.globalhr3.globalhrend.globalhi1.globalsintab;mainvariables.globalinpbuffer.globalendbuffer;symclockvariables.globalNL.globalNH.globalTEMP0
此文档下载收益归作者所有