
47
TS68332
2118A–HIREL–03/02
TPUEmulationMode
Operation
TheRAMarraymaybeusedasthemicrocodecontrolstorefortheTPUmodule.This
modeofoperationisselectedfromwithintheTPU.SeeDevelopmentsupportinthe
TPUmanualforacompletedescription.
TheTPUisconnectedtotheRAMviaadedicatedbus.Whileinemulationmode,the
accesstimingoftheRAMmodulematchesthetimingoftheTPUmicroinstructionROM
toensureaccurateemulation.NormalaccessesviatheIMBareinhibitedandthecontrol
registerhavetoeffect,allowingexternalRAMtoemulatethe2KRAMarrayatthesame
addresses.
ThefurtherinformationrefertotheSystemIntegrationModuleManual.
TPUOverview
TheTPUperformssimpleaswellascomplextimingtasks,independentlyfromtheCPU,
makingitthelatestadvanceintimersystems.Viewedasaspecialpurposemicrocom-
puter,thisprocessorperformstwooperations,matchandcapture,ononeoperand:
TIME.Everyoccurrenceofeitheractioniscalledanevent.Theservicingofthese
eventsbytheTPUreplacestheservicingofinterruptsbythehostCentralProcessing
Unit(CPU).Thetimingfunctionscurrentlysynthesizedarethefollowing:
DiscreteInput/output
InputCapture/inputTransitionCounter
OutputCompare
PulseWidthModulation
SynchronizedPulseWidthModulation
PeriodMeasurementWithAdditionalTransitionDefect
PeriodMeasurementWithMissingTransitionDetect
Position-synchronizedPulseGenerator
StepperMotor
Period/pulse-widthAccumulator
Thepreviouspre-programmedfunctionsarerelatedtotheTPURommasksetA,cur-
rentlyinusefortheTS68332MCU,asthe“standard”TPUmaskset.
TheadvancedTPUaffordsforthefirsttimehigh-resolutiontimingandmultipletime
functioncapability(flexibility)inthetimersystempins.
High-resolutionTiming
High-resolutiontimingislimitedbyCPUoverheadrequiredforservicingtimingtasks
suchasperiodmeasurement,pulsemeasurement,pulse-widthmodulatedwaveform
generation,etc.OntheTPU,high-resolutiontimingisachievedbytwomaincapabilities:
reducedlatency,
reducedservicetime,whichfreetheCPUtofocusonotherresponsibilities.
TheTPUprovidesahigherresolutionthantheCPUcouldachieve,andcreatesnoCPU
overheadforservicingtimingtasks.
Latency
Latencyistheintervaloftimefromaneventothestartofeventservicing.Theabilityof
theTPUtoserviceitsowninterruptsoreventsreduceslatencyandtheCPUisnot
requiredtoserviceeachinputtransitioncapturethatoccursonapin,ortodetermine
eachmatchtimerequiredforwaveformsynthesis.OnceconfiguredbythehostCPU,
theself-containedTPUperformscomplextimefunctionsrequiringhighresolutionwith
littleornoCPUintervention.