tag 标签: 串行io

相关资源
  • 所需E币: 4
    时间: 2019-12-24 19:09
    大小: 327.72KB
    上传者: 16245458_qq.com
    PIC16CXXXmicrocontrollersfromMicrochipTechnology,Inc.,high-performance,EPROM-based8-bitmicrocon-trollers.Someofthemembersofthisseries(likethePIC16C71andPIC16C84)donothaveanon-chiphard-wareasynchronousserialport.ThisapplicationnotedescribestheinterruptdrivensoftwareimplementationofAsynchronousSerialI/O(HalfDuplexRS-232Communi-cations)usingPIC16CXXXmicrocontrollers.Thesemicrocontrollerscanoperateatveryhighspeedswithaminimumof250nscycletime(withinputclockfrequencyof16MHz).TotesttheRS-232routines,asimpleDigitalVoltmeter(DVM)/AnalogDataAcquisitionSystemhasbeenimplementedusingaPIC16C71,inwhich,uponreceptionofacommandfromhost(IBMPC-AT),an8-bitvalueoftheselectedA/Dchannelistransmittedbacktothehost.MSoftwareImplementationofAsynchronousSerialI/OAN555TransmissionofabyteisperformedbycallingtheAuthor:AmarPalacherlaPutCharfunctionandthedatabyteintheTxRegisMicrochipTechnologytransmittedout.Beforecallingthisfunction(PutChar),CodeUpdate:ScottFinkthedatamustbeloadedintoTxRegandensuretheMicrochipTechnologyInc.serialportisfree.Theserialportisfreewhenboththe_txmtP……