所需E币: 3
时间: 2019-12-24 19:15
大小: 83.73KB
ThisapplicationnotedescribesauniquemethodforimplementinginterruptsinsoftwareonthePIC16C5Xseriesofmicrocontrollers.ThismethodtakesadvantageofthePIC16C5X’sarchitecturewhichallowschangingtheprogramcounterundersoftwarecontrol.Uptoeightinterruptlinesarepossible,butthepracticallimitforsimplecodegenerationissixinterrupts,or64possibleinputconditions.TheinterruptdetectiontimeisundersoftwarecontrolandstandardI/Opinsareusedastheinterruptlines.AN514SoftwareInterruptTechniquesINTRODUCTIONCREATINGCONSTANTTIMEThisapplicationnotedescribesauniquemethodforPOLLINGimplementinginterruptsinsoftwareonthePIC16C5XInmostapplicationsrequiringinterrupts,itisimportantseriesofmicrocontrollers.Thismethodtakestopolltheinterruptlinesatxedtimeintervals,usuallyadvantageofthePIC16C5X’sarchitecturewhichallowsonlyafewmicrosecondsinlength.Twotechniquesmaychangingtheprogramcounterundersoftwarecontrol.beusedonthePI……