多功能定时器
- 格式:doc
- 大小:566.50 KB
- 文档页数:22
•Time range 0.1 s to 100 h•7knob selectable functions:Op-delay on operateIn-intervalIo-interval on trigger openId-double intervalDr-delay on releaseR-symmetrical recycler ON firstRb-symmetrical recycler OFF first•Knob selection of time range•Knob-adjustable time setting•Automatic or manual start•Repeatability: ≤0.2%•Output: 8 A SPDT or 8 A DPDT relay•For mounting on DIN-rail in accordance with DIN/EN50 022 or Plug-in•22.5 mm Euronorm or 36 mm Plug-in module housing •Combined AC and DC power supply•LED indication for relay status and power supply ONMulti-voltage tim er with 7 knob selectable functions and 7 knob selectable tim e ranges within 0.1s and 100h. For mounting on DIN-rail (DMB01) or Plug-in (PMB01).TimersMultifunctionTypes DMB01, PMB01Product DescriptionType SelectionMounting Output Housing Supply: 24 VDC and 24 to 240 VAC Supply: 24 to 240 VAC/DC DIN-rail SPDT D-Housing DMB 01 C M24DPDT DMB 01 D M24Plug-in SPDT P-Housing PMB 01 C M24DPDT PMB 01 D M24Time Specifications Output SpecificationsDMB 01PMB 01DMB01, PMB01Function OpDelay on operateThe tim e period begins as soon as the trigger contact is closed.At the end of the set delay tim e the relay operates and doesn't release until the trig-ger contact is closed again or the power supply is dis-connected. If the trigger contact is closed before the end of the delay tim e, the device resets and a new time period starts.Function In IntervalThe relay operates and the tim e period begins as soon as the trigger contact is closed. The relay releases at the end of this period or when the power supply is disconnected. The relay operates again when the trigger contact is closed again. If the trigger contact is closed before the end of the delay tim e, the relaykeeps ON and a new tim e period starts.Function IoInterval on trigger open The relay operates and the tim e period begins as soon as the trigger contact is opened. At the end of the set delay or when the power supply is disconnected the relay releases. The relay operates again when the trigger contact is opened again. If the trigger contact is opened before the end of the delay tim e the relay keeps ON and a new tim e period begins.Function Id Double intervalThe relay operates and the tim e period begins as soon as the trigger contact is closed. The relay releases at the end of this period or when the power supply is disconnected. When the trigger contact is openedthe relay operates again for the set delay period. If the trigger contact is opened before the end of the first tim e period the second one begins; if the trigger contact is closed before the end of the second tim e period the relay keeps ON and the first time period begins again.Function DrDelay on releaseThe relay operates as soon as the trigger contact is closed. The tim e period begins when the trigger con-tact is opened. The relay releases at the end of the set delay tim e or when the power supply is disconnect-ed. The relay operates again when the input contact is closed again. If it is closed before the end of the delay tim e the relay keeps ON, a new tim e period begins as soon as the contact is opened again.Function RSymmetrical recycler, ON-time period firstThe relay operates and the tim e period begins as soon as the input contact is closed. After the set delay period the relay releases for the sam e tim e period. This sequence continues with equal ON- and OFF-tim e periods until the power sup-ply is interrupted.Function RbSymmetrical recycler,OFF-time period firstThe tim e period begins as soon as the input contact is closed. The relay is OFF during the set delay period,after this time it operates for the sam e tim e period. This sequence continues with equal OFF- and ON-tim e periods until power supply is interrupted.Supply SpecificationsGeneral SpecificationsFunction and Time SettingMode of OperationUpper knob:Setting of function:Op -delay on operate In -intervalIo -interval on triggeropenId -double interval Dr -delay on releaseR -symmetrical recycler(ON first)Rb -symmetrical recycler(OFF first)Centre knob:Tim e setting on relative scale: 1 to 10 with respect to the chosen range.Lower knob:Setting of time range.DMB01, PMB01Additional LoadIt's possible to wire an addi-tional load (i.e. a relay) between pins Y1 and A2, or 5and 10, driven by the trig-ger contact without dam ag-ing the device (see wiringdiagram).Yellow LED working modeTiming: Slow blinkingRelay ON: See operationdiagramsIncorrect knobs position:Fast blinkingMode of Operation (cont.) Operation DiagramsOperation Diagrams (cont.)DMB01, PMB01DimensionsWiring Diagrams。
CX-T02型可编程多功能电子定时器一、产品简介:CX-T02型可编程多功能电子定时器,是一个以微电脑处理器为核心配合电子电路等组成的电源开关控制装置。
它可预设定每天或一周内20次不同时间的开/关控制,还具有倒计时、任意循环定时、键盘锁定功能和12/24小时制转换功能,本机内置一枚可充电镍氢电池作为备用电源,在脱离市电电源的情况下,仍可保持计时显示和储存的各项数据达9个月以上。
它采用便携式移动插头形式和微功耗待机电路,可以控制电热水器、电饭煲、饮水机、电动自行车限时充电控制、灯具等各种电器。
您使用本产品后,各种电器将根据您的要求实现自动开启和关闭,既省电又方便,是真正的节电产品。
二、技术参数:执行标准:GB/T14536.1-1998 GB/T14536。
8-1996额定电压:220V~50Hz额定电流:10A(阻性)工作温度:-20~70℃计时误差:≤±1秒/天三、系统功能介绍:1.液晶全屏字符,如右图所示:2.本机在时钟状态下,按“模式”键可将工作状态设定为所需的方式。
设定顺序为:关→自动→开→循环→Zz(倒计时)关—电源输出处于经常关闭状态。
自动—电源输出处于行编定的定时开/关程序状态。
开—电源输出处于经常开启状态。
循环—电源输出按照您设定的开启时间长度和间隔时间长度(关闭时长)来循环工作。
Zz—电源输出处于倒计时(延时关机)状态,最长时间为23小时59分,最短为1分钟。
C—按此键后系统将清除所有储存的数据,系统恢复到初始状态。
四、操作方法在本机进入时钟状态后,可按以下方法进行操作:(一)、校正星期和时间:按“模式”键将定时器工作状态设定为“关”,在此状态下左手按住“时钟”键不放,右手按“日期”键,将星期调整为当前日期,调整好日期(星期)后再按“时”和“分”键将时钟调整为妆前的标准时间。
(二)、设定倒计时(延时关机)时间:按“模式”键将工作状态切换至Zz状态,电源输出即处于开启状态(初始默认时间为8小时),屏幕显示如右图所示:在些状态下按“时”或“分”键修改您所需要本机开启通电的时间,每按一次“时”或“分”键,时间将减少1小时或1分钟,最大时间为23小时或1分钟,最大设定时间为23小时59分,设定完成后按“时钟”键,系统即进行倒计时,此时“Zz”不断闪烁,待时钟退至0:00后,电源即自动关闭。
jmeter中定时器的用法JMeter是一款功能强大的压力测试工具,定时器是其非常重要的一个组件之一。
定时器用于模拟真实用户在不同时间间隔内发起请求,以模拟实际用户的行为。
在JMeter中,定时器有多种不同的类型和用法,以下将详细介绍几种常用的定时器及其用法。
一、常用定时器介绍:1. Constant Timer(恒定定时器):这是最简单的定时器类型之一,它会在每个线程请求之前等待一个固定的时间间隔。
我们可以将恒定定时器应用于整个线程组或特定的HTTP Request。
使用方法:在线程组或HTTP Request下方添加恒定定时器,设置需要等待的时间间隔。
2. Uniform Random Timer(均匀随机定时器):这种定时器类型会在一个指定的时间范围内生成一个随机等待时间。
这样可以模拟用户在不同的时间间隔内发起请求。
使用方法:在线程组或HTTP Request下方添加均匀随机定时器,设置最小和最大等待时间。
3. Gaussian Random Timer(高斯随机定时器):这种定时器类型会在一个指定的平均时间和标准差范围内生成一个高斯分布的随机等待时间。
这样可以模拟用户在不同的时间间隔内发起请求,更接近真实的用户行为。
使用方法:在线程组或HTTP Request下方添加高斯随机定时器,设置平均值、标准差和延迟。
4. Poisson Random Timer(泊松随机定时器):这种定时器类型会根据泊松分布生成一个随机等待时间。
泊松分布通常用于模拟到达某个特定事件的随机时间间隔,因此可以用于模拟用户在不同时间间隔内的请求。
使用方法:在线程组或HTTP Request下方添加泊松随机定时器,设置间隔时间。
5. Constant Throughput Timer(恒定吞吐量定时器):这种定时器类型会根据目标吞吐量计算出一个合理的等待时间,以实现恒定的吞吐量。
这样可以模拟用户在不同时间间隔内以相同的速率发起请求。
STM32定时器定时器功能简介区别于SysTick一般只用于系统时钟的计时,STM32的定时器外设功能非常强大。
STM32一共有8个都为16位的定时器。
其中TIM6、TIM7是基本定时器;TIM 2、TIM3、TIM4、TIM5是通用定时器;TIM1和TIM8是高级定时器。
这些定时器使STM32具有定时、信号的频率测量、信号的PWM测量、PWM输出、三相6步电机控制及编码器接口等功能,都是专门为工控领域量身定做的。
定时器工作分析基本定时器基本定时器TIM6和TIM7只具备最基本的定时功能,就是累加的时钟脉冲数超过预定值时,能触发中断或触发DMA请求。
这两个基本定时器使用的时钟源都是TIMxCLK,时钟源经过PSC预分频器输入至脉冲计数器TIMx_CNT,基本定时器只能工作在向上计数模式,在重载寄存器TIMx_ARR中保存的是定时器的溢出值。
工作时,脉冲计数器TIMx_CNT由时钟触发进行计数,当TIMx_CNT的计数值X等于重载寄存器TIMx_ARR中保存的数值N时,产生溢出事件,可触发中断或DMA请求。
然后TIMx_CNT的值重新被置为0,重新向上计数。
通用定时器相比之下,通用定时器TIM2~TIM5就比基本定时器复杂得多了。
除了基本的定时,它主要用在测量输入脉冲的频率、脉冲宽与输出PWM脉冲的场合,还具有编码器的接口。
通用定时器的基本计时功能与基本定时器的工作方式是一样的,同样把时钟源经过预分频器输出到脉冲计数器TIMx_CNT累加,溢出时就产生中断或DMA请求。
而通用定时器比基本定时器多出的强大功能,就是因为通用定时器多出了一种寄存器----捕获/比较寄存器TIMx_CRR(capture/compareregister)它在输入时被用于捕获(存储)输入脉冲在电平发生翻转时脉冲计数器TI Mx_CNT的当前计数值,从而实现脉冲的频率测量;在输出时被用来存储一个脉冲数值,把这个数值用于与脉冲计数器TIMx_CNT的当前计数值进行比较,根据比较结果进行不同的电平输出定时器的时钟源从时钟源方面来说,通用定时器比基本定时器多了一个选择,它可以使用外部脉冲作为定时器的时钟源。
常用定时器介绍范文1.倒计时器:倒计时器是最常见的一种定时器,广泛应用于各种日常活动中。
它常用于烹饪、健身、比赛、考试以及其他需要精确计时的活动中。
通过设定所需的倒计时时间,倒计时器会发出警报或关闭,以提醒用户活动已结束或需要进行下一步操作。
2.指定时间启动器:指定时间启动器是一种可以在特定时间自动启动项任务的定时器。
它可以用于控制电器设备的开关,例如自动开启空调、电视或照明系统;还可以用于计算机系统的启动或关机。
这种定时器常用于办公室、家庭和工业领域,可以实现节能、自动化和提高工作效率的目的。
3.循环定时器:循环定时器是一种可以在规定的时间间隔内重复执行项任务的设备。
它常用于自动化生产线、实验室仪器和家庭设备中。
通过设置循环的时间间隔,循环定时器可以实现多次重复的动作,如定时灌溉、连续测量、定时集中供电等。
在家庭中,循环定时器可以用来自动控制电器设备的开和关,如自动打开灯光、自动关窗帘等。
4.温湿度定时器:温湿度定时器是一种可以定期检测和记录环境温度和湿度的设备。
它常用于实验室、仓库和养殖场等需要监控环境条件的场所中。
温湿度定时器可以根据设定的时间间隔自动测量并记录环境的温度和湿度,用户可以通过读取记录数据来评估环境条件的变化和采取相应的措施。
5.数字计时器:数字计时器是一种可以精确计时的设备,常用于运动员比赛、计时器实验和舞台演出等需要精确计时的场合。
数字计时器具有高精度和易读取的特点,可以记录准确的时间,同时还可以设置警报和倒计时功能,以实现更加灵活的使用。
6.多功能定时器:多功能定时器是一种集成多种计时功能的设备,常用于厨房、实验室、工厂等各个领域。
它可以同时具备倒计时、正计时、闹钟和时钟等功能,提供更加灵活和多样的计时方式。
多功能定时器通常具有大屏幕显示和简单易用的操作界面,可以满足不同用户的需求。
总之,常用定时器在生活和工作中起着重要的作用,能够提高时间管理和工作效率。
不同类型的定时器可以根据具体的需求选择,以便更好地满足用户的需求。
FeaturesRated control supply voltage 24-48 V DC, 24-240 V AC Multifunction timer with 10 timing functions:ON-delay, OFF-delay with auxiliary voltage, Impulse-ON, Impulse-OFF with auxiliary voltage, Symmetrical ON- and OFF-delay, Flasher starting with ON or OFF , Pulse former, Accumulative ON-delay, ON/OFF-functionOne device includes 10 time ranges (0.05 s - 300 h)1 c/o contactControl input with voltage-related triggering to start timing, to stop/pause timing or to select timing function2 LEDs for status indication Width of 22.5 mmSealable transparent cover (optional accessory) for protection against unauthorized changes of time valuesIntegrated marker label½½½½½½½½½ApprovalsA UL 508, CAN/CSA C22.2 No.14C GL D GOSTK CB scheme ECCCpendingMarksa CE bC-TickpendingOrder dataOrder data - AccessoriesAdapter for screw mounting on panelSealable transparent coverMarker labelᕃᕆᕇᕄᕅᕈ2C D C 251 048 F 0t 07ቢ Rotary switch for thepreselection of the time range ባ Potentiometer with directreading scale for the fi ne adjustment of the time delay ቤ Rotary switch for thepreselection of the timing function ብ U/T: green LED -Vcontrol supply voltage applied W timing ቦ R: yellow LED -Voutput relay energizedApplicationThe CT -S range timers are designed for use in industrial applications. They operate over a universal range of supply voltages and a large time delay range, within compact dimensions. The easy-to-set front-face potentiometers, with direct reading scales, provide accurate time delay adjustment.Multifunction timers are ideally suited for service and maintenance applications, because one device can replace a number of time relays with different functions, voltage and time ranges. This reduces inventory and saves money.Operating modeThe CT -MVS.22 with 2 c/o contacts offers 11 timing functions. The function is rotary switch selectable on the front of the unit. Each function is indicated by an international function symbol.One of 10 time ranges, from 0.05 s - 300 h, can be selected with an other rotary switch. The fi ne adjust-ment of the time delay is made via an internal potentiometer, with a direct reading scale, on the front of the unit.Timing is displayed by a fl ashing green LED labelled U/T.Function diagramsRemarksLegend:G Control supply voltage not applied / Output contact open B Control supply voltage applied / Output contact closed A1-Y1/B1 Control input with voltage-related triggeringTerminal designations on the device and in the diagrams:The c/o contact is designated 15-16/18. Control supply voltage is applied to terminals A1-A2. Function of the yellow LED:The yellow LED R glows as soon as the output relay energizes and turns off when the output relay de-energizes.A ON-delayThis function requires continuous control supply voltage for timing. Timing begins when control supply voltage is applied. The green LED fl ashes during timing. When the selected time delay is complete, the output relay energizes and the fl ashing green LED turns steady. If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.15-18A1-A215-162C D C 252 011 F 0207green LEDt = adjusted time delayFunction diagramsA + Accumulative ON-delayThis function requires continuous control supply voltage for timing. Timing begins when control supply voltage is applied. The green LED fl ashes during timing. When the selected time delay is complete, the output relay energizes and the fl ashing green LED turns steady. Timing can be paused by closing control input A1-Y1/B1. The elapsed time t 1 is stored and continues from this time value when A1-Y1/B1 is re-opened. This can be repeated as often as required. If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.B OFF-delay with auxiliary voltageThis function requires continuous control supply voltage for timing.If control input A1-Y1/B1 is closed, the output relay energizes immediately. If control input A1-Y1/B1 is opened, the time delay starts. The green LED fl ashes during timing. When the selected time delay is complete, the output relay de-energizes and the fl ashing green LED turns steady.If control input A1-Y1/B1 recloses before the time delay is complete, the time delay is reset and the out-put relay does not change state. Timing starts again when control input A1-Y1/B1 re-opens. If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.AB Symmetrical ON- and OFF-delayThis function requires continuous control supply voltage for timing.Closing control input A1-Y1/B1 starts the ON-delay t 1. When timing is complete, the output relay ener-gizes. Opening control input A1-Y1/ B1 starts the OFF-delay t 2. Both timing functions are displayed by the fl ashing green LED. When the OFF-delay t 2 is complete, the output relay de-energizes.If control input A1-Y1/B1 opens before the ON-delay t 1 is complete, the time delay is reset and the out-put relay remains de-energized. If control input A1-Y1/B1 closes before the OFF-delay t 2 is complete, the time delay is reset and the output relay remains energized.If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.15-18t A1-A2 15-16A1-Y1/B12C D C 252 016 F 0207green LEDt = adjusted time delay1 + t2 = tt 3 = pause timing15-1615-18A1-A2 A1-Y1/B12C D C 252 014 F 0207green LEDt = adjusted time delay15-1615-18t A1-A2 A1-Y1/B12C D C 252 018 F 0207green LED1 = adjusted ON-delay t2 = adjusted OFF-delay t 1 = t 2Function diagramsCA Impulse-ONThis function requires continuous control supply voltage for timing.The output relay energizes immediately when control supply voltage is applied and de-energizes after the set pulse time is complete. The green LED fl ashes during timing. When the selected pulse time is com-plete, the fl ashing green LED turns steady.If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.CB Impulse-OFF with auxiliary voltageThis function requires continuous control supply voltage for timing.If control supply voltage is applied, opening control input A1-Y1/B1 energizes the output relay immedi-ately and starts timing. The green LED fl ashes during timing. When the selected pulse time is complete, the output relay de-energizes and the fl ashing green LED turns steady.Closing control input A1-Y1/B1, before the pulse time is complete, de-energizes the output relay and resets the pulse time.If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.DE Flasher, starting with ON or OFFApplying control supply voltage starts timing with symmetrical ON / OFF times. The cycle starts with an ON time fi rst.Closing control input A1-Y1/B1, with control supply voltage applied, starts the cycle with an OFF time fi rst. The ON / OFF times are displayed by the fl ashing green LED, which fl ashes twice as fast during the OFF time.If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.H Pulse formerThis function requires continuous control supply voltage for timing.Closing control input A1-Y1/B1 energizes the output relay immediately and starts timing. Operating the control contact switch A1-Y1/B1 during the time delay has no effect. The green LED fl ashes during tim-ing. When the selected ON time is complete, the output relay deenergizes and the fl ashing green LED turns steady. After the ON time is complete, it can be restarted by closing control input A1-Y1/B1. If control supply voltage is interrupted, the output relay de-energizes and the time delay is reset.15-18A1-A2 15-162C D C 252 020 F 0207green LEDt = adjusted pulse time15-1615-18A1-Y1/B1A1-A2 2C D C 252 022 F 0207green LEDt = adjusted pulse time15-18A1-A2 A1-Y1/B115-162C D C 252 024 F 0207green LEDt = adjusted flashing time15-18A1-A2 15-16A1-Y1/B12C D C 252 026 F 0207green LEDt = adjusted pulse timeFunction diagramsG ON/OFF-functionThis function is used for test purposes during commissioning and troubleshooting.If the selected max. value of the time range is smaller than 300 h (front-face potentiometer “Time sector” not 300 h), applying control supply voltage energizes the output relay immediately and the green LED glows. Interrupting control supply voltage, de-energizes the output relay.If the selected max. value of the time range is 300 h (front-face potentiometer “Time sector” = 300 h) and control supply voltage is applied, the green LED glows, but the output relay does not energize. Time settings and operating of the control inputs have no effect on the operation.Connection diagram15-16/18 1. c/o contactA1-A2Rated control supply voltage U S 24-48 V DC or 24-240 V AC A1-Y1/B1Control inputWiring instructionsControl input(voltage-related triggering)The control input Y1/B1 is triggered with electric potential against A2. It is possible to use the control supply voltage from terminal A1 or any other voltage within the rated control supply voltage range.15-18A1-A215-162C D C 252 028 F 0207green LEDTime sector ≠ 300 hTime sector = 300 hY1/A1A1B115A2161815Y1/B11816A22C D C 252 004 F 0b 06L(+)N(-)2C D C 252 102 F 0b 06L(+)L(+)N(-)L(-)2C D C 252 103 F 0b 06Technical dataData at T= 25 °C and rated values, if noting else indicatedaTechnical diagramsLoad limit curveA C v o l t a g e [V ]D C v o l t a g e [V ]2C D C 252 150 F 0206AC load (resistive)DC load (resistive)Derating factor Fcos ϕD e r a t i n g f a c t o r F2C D C 252 124 F 0206Contact lifetimeS w i t c h i n g c y c l e s2C D C 252 148 F 0206Dimensionsin mmCT -MVS.122C D C 252 188 F 0b 05Dimensions accessoriesin mmADP .01 - Adapter for screw mounting on panelCOV .01 - Sealable transparent coverMAR.01 - Marker labelSynonymsUsed expression Alternative expression(s)Used expression Alternative expression(s)1 c/o contact1 SPDTvoltage-relatedwet / non-fl oating2C D C 252 187 F 00052C D C 252 185F 00052C D C 252 186 F 0005As part of the on-going product improvement, ABB reserves the right to modify the characteristics of the products described in this document. The information given is non-contractual. For further details please contact (/contacts) the ABB company marketing these products in your country.D o c u m e n t n u m b e r : 2C D C 111 089 D 0201 (08/2007)ABB STOTZ-KONTAKT GmbHEppelheimer Strasse 82, 69123 Heidelberg, Germany Postfach 10 16 80, 69006 Heidelberg, GermanyInternet /lowvoltage Ǟ Control Products。
电路中的定时器有哪些常见用途定时器是一种常见的电子元件,它可以根据设定的时间参数来执行各种操作。
在电路设计中,定时器具有广泛的应用,以下将介绍一些定时器常见的用途。
1. 时序控制定时器可以用于控制电路的时序,例如控制开关、闸门的打开与关闭时间。
在自动化系统中,通过定时器可以按照预设的时序来执行各种动作,使得电路工作更加稳定可靠。
2. 交通信号灯交通信号灯是城市交通管理中不可或缺的设备,而定时器正是用于控制信号灯的工作时间。
通过定时器设定红绿灯的时间长度,实现交通流量的合理分配和交通的有序进行。
3. 家用电器控制定时器在家居生活中也起到了重要的作用,例如,定时开关可以设定某个时间点打开或关闭家用电器,如电视、空调、洗衣机等。
这样,人们可以通过定时器提前设置好时间,不仅方便了家居生活,还能够节约能源。
4. 电子钟表电子钟表中也应用了定时器,通过定时器的运行来实现时间的显示和管理。
定时器精确的计时功能,保证了电子钟表的准确性和稳定性。
现代人的生活离不开电子钟表,无论是家庭还是办公场所,电子钟表都是必不可少的。
5. 延时保护在电路中,有些情况下需要进行延时保护,即在一定时间内延迟启动或关闭某个电器或装置,以避免错误操作或电器在启动或关闭时产生影响。
定时器通过设定延时时间来实现延时保护,提高了电路的安全性和可靠性。
6. 自动化设备定时器在自动化设备中扮演着重要的角色。
例如,工业自动化生产线,定时器可以控制机械手臂的运动、产品加工的时间等。
通过定时器的运行,提高了生产效率和自动化程度。
7. 倒计时器定时器还可以被用作倒计时器的功能。
在游戏、竞赛、考试等场合,定时器可以设定一个时间限制,提示进行活动或任务的进度,并在倒计时结束时发出提醒信号。
大家常见的厨房计时器就是一种常见的倒计时器。
8. 数据采集定时器还可以在数据采集过程中发挥作用。
比如,监测气象、环境等各种指标时,可以通过定时器设置采样时间间隔,准确获取各个时间段内的数据变化情况,为后续分析和处理提供数据支持。
课程设计名称:电子技术课程设计题目:多功能定时器学期:2014-2015学期专业:智控班级:13-2*名:***学号:**********指导教师:***辽宁工程技术大学课程设计成绩评定表课程设计任务书一、设计题目:多功能定时器二、设计任务及要求:设计一款通用性较强的多功能定时器,它既可以对应用电器进行一次定时控制,又可以对电气进行循环控制。
电路要求由电源电路、可控脉冲发生器、延时控制电路和控制执行电路组成。
三、设计计划1)设计时间一周;2)最终提交原理图或结果仿真。
四、设计要求1)定时和控制选用555定时器和十进制计数器;2)设计方案要有比较环节;3) 并且一次定时时间可设定5min—18h,循环定时时间55min—20h;设定控制功率为500W,自身耗电要小于1W。
4)用绘图软件绘制原理图。
指导教师:谢国民日期:2015年7月1日1.摘要 (2)2.设计总体方案 (5)2.1设计基本思路 (5)2.2设计总流程图 (7)3.555定时器,CD4518和CD4011介绍 (7)3.1 555定时器 (7)3.2 CD4518 (9)3.3 CD4011引脚图 (11)4. 数字逻辑控制,脉冲信号产生,计数器计数和数码管显示模块电路图 (12)4.1 数字逻辑控制模块 (12)4.1.1 数字逻辑控制模块电路图 (12)4.1.2 数字逻辑控制模块原理 (13)4.2 脉冲信号产生模块 (13)4.2.1 脉冲信号产生模块电路图 (13)4.2.2 冲信号产生模块原理 (14)4.3 计数器计数模块 (15)4.3.1 计数器计数电路图 (15)4.3.2 计数器计数模块原理 (16)4.4 显示器模块 (16)5. 电路的总体设计与调试 (17)5.1 总体电路原理图 (17)5.2 总电路工作原理 (17)6. 课程设计收获与体会 (18)7. 参考文献 (18)本次课程设计利用555定时器以及数字逻辑芯片和数码管实现数字电子计时器功能,设计一款通用性较强的多功能定时器,它既可以对应用电器进行一次定时控制,又可以对电气进行循环控制。
多功能时间控制器1.1 多功能智能钟的功能与设计要求⽬前⼤多数时间控制器往往只能单机⼯作,不能满⾜集体控制的要求;⽽在很多应⽤场合,要求时间控制器除了要具有⽐较灵活的时间控制作⽤外,还能通过上位机连成⼀个⽹络体系,以便对分布在各处的时间控制器进⾏集中控制(群控)。
本章设计的时间控制器的功能与特点如下:●既能单机⼯作,⼜能通过上位机进⾏多机集中控制;●每个单机可以按设定的时间表进⾏相应的控制动作;●每个单机上的定时时间表,可通过⼀台PC 机分别设定,设定的信息存放在串⾏的EE - PROM 中,可以保存10 年以上;● 6 位LED 显⽰屏,⽤作时钟显⽰;●采⽤RS ⼀485 通信接⼝,可以满⾜远距离控制的需要;●双休⽇可以⾃动停⽌报警。
该时间控制器⼗分适应于需要控制的对象(如电铃)较为分散⽽且个数较多的场合,有效克服了⼿⼯控制或单独控制导致的对象间的时间误差,避免了⼯作上的混乱。
只需1台普通PC机,通过通信电缆与各控制器联成RS-485拓扑⽹络。
由此PC机作为上位机,借助通信软件将设定时间⼀⼀传送到各个控制器,就可以实现群控。
当然,上位PC机必须外接RS-232/RS-485转接器。
建议采⽤市售成品,将它直接插在串⼝上即可。
1.2 系统总体设计⽅案1.2.1 总体⽅案的确定按照功能要求,确定系统⽅案如图7 ⼀ 1 所⽰。
从图中可以看出,系统由微处理器模块、串⾏通信模块、时钟模块、数据存储模块及显⽰等⼈机界⾯模块组成。
在⽅案设计中,遵循简洁⾄上的原则;因此,所有的外围模块采⽤串⾏⽅式与微处理器模块接⼝。
这⾥,微处理器采⽤ATMEIJ 公司的89C2051 ,所有串⾏接⼝时序均通过软件模拟实现。
1.2.1.1 硬件设计我的电⼦钟设计包括以下⼏部分:时钟模块,键盘输⼊模块,⼋位LED显⽰模块,电⽹频率测量模块、电⽹电压、电流、功率因数测量模块,环境温度测量模块,遥控关闹钟模块等。
为了⽅便使⽤,把数据采集单独使⽤⼀个单⽚机系统,⽽把时钟闹钟系统由DS12C887与单⽚机设计完成。
CX-T02型、CX-T03型可编程多功能电子定时器使用说明书一、产品简介:CX-T02型、CX-T03型可编程多功能电子定时器,是一个以微电脑处理器为核心配合电子电路等组成的电源开关控制装置。
它可预设定每天或一周内20次不同时间的开/关控制,还具有倒计时、任意循环定时、键盘锁定功能和12/24小时制转换功能。
本机内置一枚可充电镍氢电池作为备用电源,在脱离市电电源的情况下,仍可保持计时显示和储存的各项数据达9个月以上。
它采用便携式移动插头形式和微功耗待机电路,可以控制电热水器、电饭煲、饮水机、电动自行车限时充电控制、灯具等各种电器。
您使用本产品后,各种电器将根据您的要求实现自动开启和关闭,既省电又方便,是真正的节电产品。
二、技术参数:执行标准:GB/T14536.1-1998 GB/T14536.8-1996额定电压:220V ~50Hz额定电流:CX-T02型10A(阻性)CX-T03型16A(阻性)工作温度:-20~70℃计时误差:≤±1秒/天三、系统功能介绍:1.液晶全屏字符,如右图所示:2. 本机在时钟状态下,按“模式”键可将工作状态设定为所需的方式。
设定顺序为:关自动开循环 Z Z(倒计时)关电源输出处于经常关闭状态。
自动电源输出处于执行编写的定时开/关程序状态。
开电源输出处于经常开启状态。
循环电源输出按照您设定的开启时间长度和间隔时间长度(关闭时长)来循环工作。
Z Z电源输出处于倒计时(延时关机)状态,最长时间为 23小时59分,最短为1分钟。
C 按此键后系统将清除所有储存的数据,系统恢复到初始状态。
四、操作方法在本机进入时钟状态后,可按以下方法进行操作:(一)、校正星期和时间:按“模式”键将定时器工作状态设定为“关”,在此状态下左手按住“时钟”键不放,右手按“日期”键,将星期调整为当前日期,调整好日期(星期)后再按“时”和“分”键将时钟调整为当前的标准时间。
(二)、设定倒计时(延时关机)时间:按“模式”键将工作状态切换至Z Z状态,电源输出即处于开启状态(初始默认时间为8小时),屏幕显示如右图所示:在此状态下,按“时”或“分”键修改您所需要本机开启通电的时间,每按一次“时”或“分”键,时间将减少1小时或1分钟,最大设定时间为23小时59分。
多功能定时器————————————————————————————————作者: ————————————————————————————————日期:应用科学学院《电子系统设计》课程设计报告姓名:杨春波ﻩ学号: 5 号专业班级:ﻩ12级嵌入式系统实验班ﻩﻩ指导教师:朱水金设计题目:基于单片机多功能定时器完成时间:2015年06月27日设计(45%) 制作(35%)实训报告(20%) 总评简易难度(15%)控制方式(10%)原理图(10%)装配图(10%)器件焊接(5%)软件控制(10%)功能实现(10%)质量评估(10%)格式(5%)内容(15%)指导教师签名:目录第一章引言 (2)1.1选题背景ﻩ21.2 内容摘要 .................................................................................................................. 21.3设计任务 ................................................................................................................ 21.4 性能指标 ................................................................................................................. 2第二章系统电路设计.. (3)2.1 系统总体设计框架 .................................................................................................. 32.2 系统硬件单元电路设计 (3)2.2.1主控单元 (4)2.2.2 时钟电路设计ﻩ42.2.3复位电路ﻩ52.2.4 键盘模块 ........................................................................................... 52.2.5 显示模块ﻩ62.2.6 蜂鸣器报警电路 (7)2.3系统原理图及pcb印刷板图 (7)2.3.1系统硬件原理图ﻩ72.3.2pcb印刷板图ﻩ92.3.3模拟图……………………………………………………………………………...92.4 实物图ﻩ11第三章系统软件设计ﻩ133.1系统软件流框图 ........................................................................................... 133.2按键扫描流程图和程序ﻩ413.3 按键处理子程序流程图和程序ﻩ5113.4系统总体软件设计代码ﻩ6第四章系统整体调试ﻩ1715.1硬件调试ﻩ75.2 软件调试ﻩ71第五章结论................................................................................................................................. 185.1 总结ﻩ185.2 系统展望 ................................................................................................................ 185.3心得体会 .............................................................................................................. 18附录一:ﻩ19第一章引言1.1 选题背景定时器已成为人们日常生活中必不可少的物品,广泛用于个人家庭以及车站,码头,剧院,办公室等公共场所,给人们的生活,学习,工作,娱乐带来极大的方便。
随着技术的发展,人们已不满足于钟表原先的报时功能,希望出现许多新的功能,但这些新的功能都是以定时器为基础的,因此研究定时器及其扩展功能有着非常现实的意义,具有很大的实用价值。
本次课程设计中,采用单片机作为主要芯片设计倒计时控制系统,本设计的使用性强,设计灵活方便并且适合在任何条件下进行定时。
1.2 内容摘要利用单片定时器及计时器产生定时效果通过编程形成倒计时效果,再利用数码管动态扫描显示单片机内部处理的数据,同时通过端口读入当前外部控制状态来改变程序的不同的状态,实现不同的功能。
系统上电自检后,实现分钟,秒钟信息的显示,通过按键可实现校对时间,倒计时的设定和显示。
当设置的定时时间到时,单片机通过蜂鸣器来实现报警,再利用开关实现止闹的功能。
1.3 设计任务设计题目:多功能定时器设计一个适用于需要显示当前时间或倒计时的场所(如演讲比赛等)的多功能电子定时器电路,实现设计要求提出的各项控制功能。
1.4 性能指标(1)应用单片机和时钟芯片设计电路,功能切换通过按键控制,显示采用LE D数码管;(2)实现4位时间显示(“时”2位,“分”2位);(3)实现5分钟的倒计时功能,由按键控制计时开始或停止、重新开始,可以通过按键重新设置计时时间(如改为3分30秒等);(4)实现秒计时功能,最大显示达到60分钟;第二章系统电路设计2.1 系统总体设计框架本设计主要功能是实现时间的设定,倒计时,报警功能,采用分秒显示,在4位八段LED 上显示分和秒。
若想设置时间,需复位;用定时器1进行扫描按键,判断是否有键按下,是哪个键按下; 定时时间到则蜂鸣器会报警;复位后停止发出警报声音,时间显示为系统初始时间(由软件设定),按下确认健后,系统开始重新倒计时。
结构框图如图2-1所示:图 2-1 系统结构框图2.2 系统硬件单元电路设计2.2.1主控单元主控单元主要有89c52单片机构成,主要利用片内定时器0进行定时,定时器1进行按键扫描,控制各个模块完成倒计时定时功能。
具体引脚安排如图键盘硬件复位电路,蜂鸣显示 主控2-2.1所示:图 2-2.12.2.2 时钟电路设计时钟电路对单片机是不可缺的,单片机的每个功能都要以时钟电路为基础工作。
单片机内部自带一个时钟电路,外部接入定时控制元件即可构成一个稳定的自激振荡器。
其中机器周期共有12个振荡脉冲周期,因此,机器周期是时钟周期的12倍。
本课题中定时器电路中使用的晶体是12MHz,则时钟周期为(1/12)us,机器周期为1us。
如图2-2所示:图2-2.2 时钟电路图2.2.3复位电路复位操作是使单片机进入设定的初始状态。
复位电路的基本功能是:系统上电时提供复位信号,直至系统电源稳定后,撤销复位信号。
复位操作有上电自动复位、按键电平复位和外部脉冲复位三钟方式,本次课设用的是按键电平复位,利用电容的充放电公式来选择所需的电容、电阻,能保证复位信号高电平持续时间大于2个机器周期。
电路图如图2-2.3所示:图2-2.32.2.4键盘模块(1)键盘的作用计算机控制系统中,数据和控制信号的输入主要使用键盘,键盘接口,尤其是按键输入信号的软件处理方法是影响系统使用和操作的重要因素,键盘接口和软件的任务主要包括一下几个方面:*检测并判断是否有按键按下*按键开关的延时消抖功能*计算并确定按键的键值*程序根据键值进行一系列的处理和执行(2)键盘的选择键盘可以分为独立连接式和矩阵式。
,每类按译码方式分为编码式的和非编码式两种,单片机中一般都使用的是软件来识别和产生键代码的非编码式键盘行列式键盘编码方式有静态和动态两种,静态接口主要由一个行编码器和列编码器构成,动态接口可采用计数器,译码器和数据选择器来构成这两种键盘,由硬件完成键的译码任务。
一般小的控制系统较多采用非编码独立式较合适,使用矩阵键盘,能减少键盘与单片机接口时说占用的I/O线的数目,综上所述,本实验用的是非编码式键盘。
(3)矩阵式键盘基本原理对于这种矩阵式的键盘连接,扫描时依次将行线置为低电平,即在置某根行线为低电平时,其它都线为高电平。
在确定某根行线位置为低电平后,再逐行检测各列线的电平状态。
若某列为低,则该列线与置为低电平的行线交叉处的按键就是闭合的按键。
注意在按键时一定要调延时子程序来消除抖动。
(4)按键电路 :如图2-2.4图2-2.42.2.5显示模块本模块的主要功能就是显示倒计时的起始时间,开始倒计时后的时间变化以及显示设定好的时间。
基于AT89C52单片机的数码管显示分为了两个大块:分钟显示和秒钟显示。
其工作原理由段码线送出待显示字符,然后通过顺序执行依次选中的每一位数码管,同时使显示的字符在每一位停留一会,由于人眼的惰性,可以同时看到4个LED的显示。
4个LED由p0口控制,由于是供阴极,所以高电平有效。
动态显示设计电路如图2-2.5图2-2.52.2.6 蜂鸣器报警电路系统为了提示倒计时完成设计了报警提示电路,电路主要有一个蜂鸣器和一个三极管组成。
在倒计时完成时通过控制端口P3.2给三极管送入一个低电平使其导通,实现蜂鸣器报警,当数码管数字显示为0时,蜂鸣器报警。
蜂鸣器电路设计电路图如图2-2.6所示图2-2.62.3系统原理图及印刷板图2.3.1 系统硬件原理图总电路图由时钟电路、复位电路、蜂鸣器电路、键盘电路、数码管显示电路组成来实现定时功能。
其中四个数码管为共阴极的数码管。
74HC573为锁存器,这里是增加驱动的功能,使数码管可以正常显示。
系统硬件电路图如图2-3.1所示:图2-3.1 2.3.2 pcb布线图图2-3.2 2.3.3模拟图如图2-3.3图2-3.3 2.4 实物图正面图2-4.1反面图2-4.2第三章系统软件设计3.1系统软件流框图本系统中,定时器0负责计时,并且以秒为单位,定时器1负责进行定时扫描,所以当进入系统主函数后,系统不停地进行显示和按键处理,定时和按键扫描在中断中进行,这样就提高了系统的实用性。
软件流框图如图3-1所示:开始动态显示按键扫描TINE0定时计时TIME1定时扫描按键处理图3-13.2 按键扫描流程图和程序如图3-2所示:开始有键闭合延时10ms是否抖动判断按下键的键值,并保存返回NYN 按键是否释放?YN代码voi d K _scan(void){ﻫ uchar i;ﻫif(P1==0x ff)ﻫ{ﻫre turn;ﻫ}for (i=0;i <5;i ++)ﻫ{ﻫif((P 1|(0x10>>i))==0xf f) {ﻫkey=i +1; return ;ﻫ}ﻫ} }图3-23.3 按键处理子程序流程图和程序如图3-3所示开始判断键值根据不同的键值处理不同的代码结束图3-3代码:void DealKey(void){ﻫif(key==0)return;switch(key){ﻫcase 1:ﻫkey=0;ﻫif(rocket<2){ﻫif(sec<=0){ sec=0;return;}ﻫsec--;}else{if(min<=0){min=0;ﻫreturn;}min--;ﻫ}return;ﻫcase2:key=0;ﻫif(rocket==0)rocket=0;ﻫrocket--;return;ﻫcase3:ﻫkey=0;ﻫTR0=1;TR1=1;ﻫﻫreturn;ﻫcase 4:key=0;TR0=0;ﻫ//min=3;ﻫ// sec=30;ﻫ// if(rocket==4)// rocket=4;ﻫ// rocket++;ﻫreturn;case 5:key=0;ﻫif(rocket<2){sec++;if(sec>59)ﻫsec=59;}else{ﻫmin++;ﻫif(min>59)min=59;}ﻫreturn;ﻫ}ﻫ}3.4系统总体软件设计代码见附录一第四章系统整体调试5.1硬件调试单片机应用系统的硬件调试和软件调试是分不开的.许多硬件故障只有通过软、硬件统调才能发现,但一般是先排除系统中比较明显的硬件故障后才和软件一起统调。