1. 首页
  2. 课程学习
  3. 嵌入式
  4. PIC 使用一个定时器控制led和按键

PIC 使用一个定时器控制led和按键

上传者: 2022-10-12 12:13:38上传 PDF文件 137.59 KB 热度 10次

Thepurposeofthisapplicationnoteistodesignaclock

whilemultiplexingthefeaturesasmuchaspossible,

allowingthecircuittousethe18-pinPIC16C54.Other

devicesintheMicrochiplineexpandonthispart,mak-

ingitagoodstartingpointforlearningthebasics.This

designisusefulbecauseitutilizeseverypinforoutput

andswitchessomeofthemtoinputsbrieflytoreadthe

keys.Foramoreextensiveclockdesign,consultappli-

cationnoteAN529.AN590AClockDesignUsingthePIC16C54forLEDDisplaysandSwitchInputsOPERATIONAuthor:DanMatthewsMicrochipTechnologyInc.SwitchesWhennobuttonsarepressed,thecircuitwilldisplaytheINTRODUCTIONcurrenttime,startingat12:00onreset.PressingSW1Thepurposeofthisapplicationnoteistodesignaclockwillcausesecondstobedisplayed.Thetimeissetbywhilemultiplexingthefeaturesasmuchaspossible,pressingSW2toadvanceminutes,andSW3toallowing

下载地址
用户评论