Transcription of TMS320x2802x, 2803x Piccolo Serial …
1 TMS320x2802x, 2803xPiccoloSerialCommunica tionsInterface(SCI)ReferenceGuideLiterat ureNumber:SPRUGH1 CDecember2008 RevisedOctober20092 SPRUGH1C December2008 RevisedOctober2009 SubmitDocumentationFeedbackCopyright 2008 2009, (SCICCR).. (SCICTL1).. (SCIHBAUD,SCILBAUD).. (SCICTL2).. (SCIRXST).. (SCIRXEMU,SCIRXBUF).. (SCITXBUF).. (SCIFFTX,SCIFFRX,SCIFFCT).. (SCIPRI).. December2008 RevisedOctober2009 TableofContentsSubmitDocumentationFeedba ckCopyright 2008 2009, (SCI) (SCICCR) (SCICTL1) (SCIHBAUD) (SCILBAUD) (SCICTL2) (SCIRXST) (SCIRXEMU) (SCIRXBUF) (SCITXBUF) (SCIFFTX)Register (SCIFFRX)Register (SCIFFCT)Register (SCIPRI) December2008 RevisedOctober2009 SubmitDocumentationFeedbackCopyright 2008 2009, (SCICCR) (SCICTL1) (SCICTL2) (SCIRXST) (SCIRXBUF) (SCIFFRX) (SCIFFCT)
2 December2008 RevisedOctober2009 ListofTablesSubmitDocumentationFeedbackC opyright 2008 2009,TexasInstrumentsIncorporatedPreface SPRUGH1C December2008 RevisedOctober2009 ReadThisFirstAboutThisManualThismanualde scribesthefeaturesandoperationoftheseria lcommunicationinterface(SCI) thisreferenceguideis a Type0 ,28xxxPeripheralReferenceGuide(SPRU566) fora listofalldeviceswitha moduleofthesametype,todeterminethediffer encesbetweentypes,andfora listofdevice-specificdifferenceswithina ,thefollowingnumberis 40hexadecimal(decimal64):40h. Registersin thisdocumentareshownin figuresanddescribedin tables.
3 Eachregisterfigureshowsa labeledwithitsbitname,itsbeginningandend ingbitnumbersabove, legendexplainsthenotationusedfortheprope rties. Reservedbitsin a registerfiguredesignatea bitthatis :Entertheliteraturenumberin TMS320F28020,TMS320F28021,TMS320F28022,T MS320F28023,TMS320F28026,TMS320F28027 PiccoloMicrocontrollersDataManualcontain sthepinout,signaldescriptions, TMS320F28020,TMS320F28021,TMS320F28022,T MS320F28023,TMS320F28026, TMS320F28030,TMS320F28031,TMS320F28032,T MS320F28033,TMS320F28034,TMS320F28035 PiccoloMicrocontrollersDataManualcontain sthepinout,signaldescriptions, TMS320F28030,TMS320F28031,TMS320F28032,T MS320F28033,TMS320F28034, 'sGuides SPRU430 TMS320C28xCPUandInstructionSetReferenceG uidedescribesthecentralprocessingunit(CP U)
4 AndtheassemblylanguageinstructionsoftheT MS320C28xfixed-pointdigitalsignalprocess ors(DSPs).It SPRUFN3 TMS320x2802xPiccoloSystemControlandInter ruptsReferenceGuidedescribesthevariousin terruptsandsystemcontrolfeaturesofthe280 2xmicrocontrollers(MCUs).6 PrefaceSPRUGH1C December2008 RevisedOctober2009 SubmitDocumentationFeedbackCopyright 2008 2009, TMS320x2803xPiccoloSystemControlandInter ruptsReferenceGuidedescribesthevariousin terruptsandsystemcontrolfeaturesofthe280 3xmicrocontrollers(MCUs).SPRU566 TMS320x28xx,28xxxDSPP eripheralReferenceGuidedescribestheperip heralreferenceguidesofthe28xdigitalsigna lprocessors(DSPs).
5 SPRUGO0 TMS320x2803xPiccoloBootROMR eferenceGuidedescribesthepurposeandfeatu resofthebootloader(factory-programmedboo t-loadingsoftware) TMS320x2802xPiccoloBootROMR eferenceGuidedescribesthepurposeandfeatu resofthebootloader(factory-programmedboo t-loadingsoftware) TMS320x2803xPiccoloControlLawAccelerator (CLA)ReferenceGuidedescribestheoperation oftheControlLawAccelerator(CLA).SPRUGE2 TMS320x2803xPiccoloLocalInterconnectNetw ork(LIN)ModuleReferenceGuidedescribesthe operationoftheLocalInterconnectNetwork(L IN) TMS320x2803xPiccoloEnhancedQuadratureEnc oderPulse(eQEP)ReferenceGuidedescribesth eoperationoftheEnhancedQuadratureEncoder Pulse(eQEP)module,whichis usedforinterfacingwitha linearorrotaryincrementalencodertogetpos ition,direction,andspeedinformationfroma rotatingmachinein TMS320x2803xPiccoloEnhancedControllerAre aNetwork(eCAN)ReferenceGuidedescribesthe operationoftheEnhancedControllerAreaNetw ork(eCAN)
6 Whichusesestablishedprotocoltocommunicat eseriallywithothercontrollersin TMS320x2802x, 2803xPiccoloAnalog-to-Digit alConverter(ADC)andComparatorReferenceGu idedescribeshowtoconfigureandusetheon-ch ipADCmodule,whichis a TMS320x2802x, 2803xPiccoloEnhancedPulseWi dthModulator(ePWM)ModuleReferenceGuidede scribesthemainareasoftheenhancedpulsewid thmodulatorthatincludedigitalmotorcontro l,switchmodepowersupplycontrol,UPS(unint erruptiblepowersupplies), TMS320x2802x, 2803xPiccoloHigh-Resolution PulseWidthModulator(HRPWM)describestheop erationofthehigh-resolutionextensiontoth epulsewidthmodulator(HRPWM).
7 SPRUGH1 TMS320x2802x, 2803xPiccoloSerialCommunica tionsInterface(SCI) TMS320x2802x, 2803xPiccoloEnhancedCapture (eCAP) TMS320x2802x, 2803xPiccoloSerialPeriphera lInterface(SPI)ReferenceGuidedescribesth eSPI- a high-speedsynchronousserialinput/output( I/O)port- thatallowsa serialbitstreamofprogrammedlength(onetos ixteenbits) TMS320x2802x, 2803xPiccoloInter-Integrate dCircuit(I2C)ReferenceGuidedescribesthef eaturesandoperationoftheinter-integrated circuit(I2C) SPRU513 'sGuidedescribestheassemblylanguagetools (assemblerandothertoolsusedtodevelopasse mblylanguagecode),assemblerdirectives,ma cros,commonobjectfileformat, December2008 RevisedOctober2009 ReadThisFirstSubmitDocumentationFeedback Copyright 2008 2009, TMS320C28xOptimizingC/C++ 'sGuidedescribestheTMS320C28x C/C++ ++ TMS320C28xInstructionSetSimulatorTechnic alOverviewdescribesthesimulator,availabl ewithintheCodeComposerStudioforTMS320C20 00 IDE,thatsimulatestheinstructionsetoftheC 28x , December2008 RevisedOctober2009 SubmitDocumentationFeedbackCopyright 2008 2009.
8 TexasInstrumentsIncorporatedReferenceGui deSPRUGH1C December2008 RevisedOctober2009 OverviewTheserialcommunicationsinterface (SCI)is a two wireasynchronousserialport, (NRZ) 4-leveldeepFIFO forreducingservicingoverhead, , ,theSCIchecksreceiveddataforbreakdetecti on,parity,overrun, programmabletodifferentspeedsthrougha December2008 RevisedOctober2009 OverviewSubmitDocumentationFeedbackCopyr ight 2008 2009,TexasInstrumentsIncorporatedCPUSYSC LKOUTLow speedprescalerSystemcontrolblockPIEblock RXINTTXINTR egistersSCISCIAENCLKLSPCLKSCIRXDSCITXDGP IOMUXData : Twoexternalpins: SCITXD:SCItransmit-outputpin SCIRXD:SCIreceive-inputpinBothpinscanbeu sedasGPIOif notusedforSCI.
9 Baudrateprogrammableto64 Kdifferentrates Data-wordformat Onestartbit Data-wordlengthprogrammablefromonetoeigh tbits Optionaleven/odd/noparitybit Oneortwostopbits Fourerror-detectionflags:parity,overrun, framing,andbreakdetection Twowake-upmultiprocessormodes:idle-linea ndaddressbit Half-orfull-duplexoperation Double-bufferedreceiveandtransmitfunctio ns Transmitterandreceiveroperationscanbeacc omplishedthroughinterrupt-drivenorpolled algorithmswithstatusflags. Separateenablebitsfortransmitterandrecei verinterrupts(exceptBRKDT) NRZ(non-return-to-zero)format 13 SCImodulecontrolregisterslocatedin accessed,theregisterdatais inthelowerbyte(7 0),andtheupperbyte(15 8)is : Auto-baud-detecthardwarelogic 4-leveltransmit/receiveFIFO10 OverviewSPRUGH1C December2008 RevisedOctober2009 SubmitDocumentationFeedbackCopyright 2008 2009,TexasInstrumentsIncorporatedTX FIFO _0 LSPCLKWUTF rame Format and ModeEven/OddEnableParitySCI RX Interrupt select INT TX Interrupt select logicTX INT ERR INT 15 - 8 Baud RateMSbyteRegisterSCILBAUD.
10 7 - 0 Transmitter-DataBuffer FIFO _1-----TX FIFO _38TX FIFO registersTX FIFOTX FIFO DataBuffer FIFO_1RX FIFO _08RX FIFO InterruptLogicRXINTRX OERX - 2To CPUTo CPUAutoBaud Detect configuredandcontrolledbytheregisterslis tedin Table1 (SCI)ModuleBlockDiagram11 SPRUGH1C December2008 RevisedOctober2009 OverviewSubmitDocumentationFeedbackCopyr ight 2008 2009, (x16)DescriptionSCICCR0x0000-70501 SCI-ACommunicationsControlRegisterSCICTL 10x0000-70511 SCI-AControlRegister1 SCIHBAUD0x0000-70521 SCI-ABaudRegister,HighBitsSCILBAUD0x0000 -70531 SCI-ABaudRegister, (x16)Description(1)(2)
