所需E币: 4
时间: 2019-12-24 21:20
大小: 311.93KB
ManyapplicationsrequiredrivingLEDsalongwithaninterfacetoakeypad.ImplementingsuchdesignsusuallyinvolvesusingupsignificantamountsoftheprocessorsI/Olines.Thisapplicationnotedescribesamethodwhichusesonly16I/OpinsofaPIC16C5Xmicrocontrollertosamplea4x4keypadmatrix,anddirectlydrivefour7-segmentLEDs(Figure1).AN529MultiplexingLEDDriveanda4x4KeypadSamplingdriveoftheLEDsispossible,becauseofthehighsinkAuthor:StanD’SouzaandsourcecapabilitiesofPIC16C5Xmicrocontroller,MicrochipTechnologyInc.thuseliminatingtheuseofanexternaldrivetransistor,andresultsinareductioninbothcostandcomplexityofINTRODUCTIONtheoverallcircuit.TypicallyapplicationshavingLEDsa……