Thisapplicationnotedescribesauniquemethodfor

implementinginterruptsinsoftwareonthePIC16C5X

seriesofmicrocontrollers.Thismethodtakes

advantageofthePIC16C5X’sarchitecturewhichallows

changingtheprogramcounterundersoftwarecontrol.

Uptoeightinterruptlinesarepossible,butthepractical

limitforsimplecodegenerationissixinterrupts,or64

possibleinputconditions.Theinterruptdetectiontimeis

undersoftwarecontrolandstandardI/Opinsareused

astheinterruptlines.AN514SoftwareInterruptTechniquesINTRODUCTIONCREATINGCONSTANTTIMEThisapplicationnotedescribesauniquemethodforPOLLINGimplementinginterruptsinsoftwareonthePIC16C5XInmostapplicationsrequiringinterrupts,itisimportantseriesofmicrocontrollers.Thismethodtakestopolltheinterruptlinesatxedtimeintervals,usuallyadvantageofthePIC16C5X’sarchitecturewhichallowsonlyafewmicrosecondsinlength.Twotechniquesmaychangingtheprogramcounterundersoftwarecontrol.beusedonthePI

软件中断技术

软件中断技术