PICmicro单片机的USART异步通信
ManyPICmicro
®
microcontrollerdeviceshaveabuilt-
inUSARTanditisoneofthemostcommonlyused
serialinterfaceperipherals.Itisalsoknownasthe
SerialCommunicationsInterface,orSCI.Themost
commonuseoftheUSARTistocommunicatetoaPC
serialportusingtheRS-232protocol.Ithasavarietyof
otheruseshowever,aswewilldiscussinthisApplica-
tionNote.AN774AsynchronousCommunicationswiththePICmicroUSARTOVERVIEWAuthor:MikeGarbuttMicrochipTechnologyInc.TheUSARTcantransmitandreceivedataserially.Itcantransferaframeofdatawitheightorninedatabitspertransmissionanddetecterrorswhendataisover-INTRODUCTIONwrittenorincorrectlyframed.Itcangenerateinterruptswhenareceptionoccurs(or
用户评论