1. 首页
  2. 课程学习
  3. 嵌入式
  4. 软件实现异步串行的I O

软件实现异步串行的I O

上传者: 2022-10-11 08:10:07上传 PDF文件 327.72 KB 热度 21次

PIC16CXXXmicrocontrollersfromMicrochipTechnology,

Inc.,high-performance,EPROM-based8-bitmicrocon-

trollers.Someofthemembersofthisseries(likethe

PIC16C71andPIC16C84)donothaveanon-chiphard-

wareasynchronousserialport.Thisapplicationnote

describestheinterruptdrivensoftwareimplementationof

AsynchronousSerialI/O(HalfDuplexRS-232Communi-

cations)usingPIC16CXXXmicrocontrollers.These

microcontrollerscanoperateatveryhighspeedswitha

minimumof250nscycletime(withinputclockfrequency

of16MHz).TotesttheRS-232routines,asimpleDigital

Voltmeter(DVM)/AnalogDataAcquisitionSystemhas

beenimplementedusingaPIC16C71,inwhich,upon

receptionofacommandfromhost(IBMPC-AT

),an8-bit

valueoftheselectedA/Dchannelistransmittedbackto

thehost.MSoftwareImplementationofAsynchronousSerialI/OAN555TransmissionofabyteisperformedbycallingtheAuthor:AmarPalacherlaPutCharfunctionandthedatabyteintheTxRegisMicrochipTechnologytransmittedout.Beforecallingthisfunction(PutChar),CodeUpdate:ScottFinkthedatamustbeloadedintoTxRegandensuretheMicrochipTechnologyInc.serialportisfree.Theserialportisfreewhenboththe_txmtP

用户评论