为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > 外文翻译--PIC单片机在手机远程控制器中的低功耗设计

外文翻译--PIC单片机在手机远程控制器中的低功耗设计

2017-11-22 15页 doc 92KB 13阅读

用户头像

is_153723

暂无简介

举报
外文翻译--PIC单片机在手机远程控制器中的低功耗设计外文翻译--PIC单片机在手机远程控制器中的低功耗设计 设计巴巴工作室www.88doc88.com PIC Microcontroller in Mobile Phone Remote Controller Low Power Design Abstract: The combination of telephone remote controller for low-power design to explore the PIC single-chip low-power design methodology, a...
外文翻译--PIC单片机在手机远程控制器中的低功耗设计
外文翻译--PIC单片机在手机远程控制器中的低功耗设计 设计巴巴工作室www.88doc88.com PIC Microcontroller in Mobile Phone Remote Controller Low Power Design Abstract: The combination of telephone remote controller for low-power design to explore the PIC single-chip low-power design methodology, and give the design of the circuit schematic. Keywords: PIC Single-chip low-power design telephone remote controller standby INTRODUCTION 20th century since the 90's, with the characteristic line width of integrated circuits continue to shrink and the chip density and a corresponding increase in operating frequency, lower power consumption has become a sub-micron and deep sub-micron VLSI design of a major consideration in factors. The increase in power will bring about a series of questions, such as the circuit parameters drift, reliability decreased chip package increase in production costs. Therefore, the system power consumption in the entire system design, especially in the use of battery-powered system, it is very important. Microchip Inc. PIC microcontroller series for the design of high-performance, low-power single-chip microcomputer system provided a good solution. The following from the low-power design methods and specific examples to introduce single-chip low-power applications PIC. One low-power design methodology To make the system work in the low-power state, must be properly set up single-chip configuration and work. The following combination of the most commonly used PIC12, PIC16, etc. Introduce Single-chip low-power system design. 1.1 The basic design method Have much technology can reduce system power consumption, the most commonly used are Sleep mode. Procedures for the enforcement of a SLEEP instruction, then entered a dormant (Sleep) mode. To Sleep mode, the crystal oscillation to stop, at which point single-chip microcomputer in the 3V power supply conditions, only 1μA of current. System work, can be used single-chip watchdog or external events periodically wake-up single-chip, the electronic switch to provide power for the system to reduce system standby power consumption, extend battery life. 设计巴巴工作室www.88doc88.com Single-chip operating frequency and power consumption is also a great relationship, the higher the frequency, the greater the power consumption. Using 32kHz crystal oscillator, 3V voltage job, PIC12, PIC16 MCU and other typical operating current of only 15μA; using 4MHz crystal, 5V operating voltage, the typical single-chip current job to meet a few mA. Low power consumption in many occasions, the use of low-speed low-power crystal oscillator implementation very effective. If using single-chip RC oscillation, but also through the I / O port operation to change the oscillation resistor, thus changing the single-chip operating frequency, to achieve the purpose of energy saving. As shown in Figure 1, an I / O pins can be in the wait state will be removed parallel resistor R1 to reduce the single-chip operating frequency. When Singlechip necessary work can be I / O pin is set to output and output high, thereby enhancing the oscillation frequency. 1.2 Oscillation Circuit Design In single-chip system design, the oscillator circuit is designed to be a very important aspect. PIC MCU typical oscillation circuit shown in Figure 2. Under normal circumstances, the design staff in accordance with the manufacturers give a choice of the parameter table. If the system can work properly, it will no longer be improved. In fact, this is not appropriate. Since Microchip microcontroller according to the model and version of the different job in the DC voltage range of 2.5 ~ 5.5V, the automotive-grade temperature can be in the range of -40 ~ -125 ?, and the parameters of the table give only a limited number kinds of situations, the actual environmental parameters on the performance of oscillator circuit have a huge impact. Such as high temperature, low voltage can reduce the oscillation loop gain, while the oscillation frequency from the lower or more difficult to start; low temperature, high-voltage loop gain can become larger, so that crystal-off drive, resulting in the potential risk of damage or oscillation circuit The increased frequency of high harmonics, and increase system power consumption. Therefore, how to correct the oscillator circuit design system is necessary. For PIC MCU, the general design steps are as follows: ? Select crystal. According to the system's oscillation frequency required for crystal choices. In addition, the work of crystal temperature and frequency stability is also very important indicators. 设计巴巴工作室www.88doc88.com ? Select the type of oscillator. PIC MCU has RC, LP, XT, HS, such as oscillation modes. In addition to RC mode, the oscillation modes to choose is in fact the choice of loop gain. Low gain corresponds to a low oscillation frequency, high-gain corresponds to the high oscillation frequency. Generally required in accordance with the actual operating frequency can be selected reference manual. ? Select C1, C2. Ideally, the system at high temperature and the minimum operating voltage of the normal work can make capacitance in the data manual recommend the framework of the smallest. At the same time, choose C2 than C1 larger phase shift to increase so that it is conducive to the oscillator circuit of electric start. ? Select Rs. In the above parameters have been selected to decide the size of Rs. Easy way is to let the system work in the minimum temperature and maximum voltage circumstances, should be received at this time are the maximum output rate of the clock circuit. Oscilloscope observation OSC2 pin with the output waveform (Note that the oscilloscope probe will introduce a capacitance circuit, typically a few pF), If it is found that the peak sine wave (receiver Vdd) and Valley (Vss receiving Office) was削平or pressure flat on driver overload, OSC2 and C2 need to add a resistor between Rs, generally around 1kΩ or less than 1kΩ. Rs not be too big, too general makes the input and output arising from the isolation, resulting in larger noise. When they find a larger Rs required to remove over-driven, the load capacitance C2 can be increased to compensate. C2 generally choose between the 15 ~ 33pF. Oscillator circuit design system of system stability, power consumption, such as a great influence. Under normal circumstances, the system wake-up call from the Sleep state, the oscillator circuit the most difficult to start (especially the system at high temperature, low pressure, low-frequency case). At this point, the resistor Rs is conducive to start-up oscillator circuit, because of cheap carbon film resistors prone to white noise, thus helping start-up circuit. In addition, the choice of C2 to C1 in order to increase slightly larger phase shift, but also conducive to start-up circuit. 2 examples of specific applications 2.1 System diagram of the composition and 设计巴巴工作室www.88doc88.com System is mainly composed PIC microcontroller, dual audio decoding circuit dialing, voice integrated circuits, interface circuits, Vcc power control circuit, RF circuit and EEPROM, which can be completed on the home appliance control and voice information to the police for help automatic transmission, as shown in Figure 3. 2.2 controller working methods * When the string with the controller heard the phone (hereinafter referred to as the local machine) is picking machine, the telephone line input voltage change, caused by 2 feet CD40106 the change in output level, input to the CPU ports of Rb0 generate an interrupt signal, wake-up CPU, controller to enter the working state. Dialing through the local disk on the controller to control various functions. Control such as TV, audio, lighting and other electrical power switching. * When the controllers receive the ringing signal, CD40106 4-pin output level changes in the CPU input port RB6 generate an interrupt signal to wake up CPU access to job status, and ringing signal count; achieve set ringing after a few so that the state of the controller to enter the telephone receiver and began to receive long-distance transmission DTMF signal by the signal demodulation MT8880 through the IRQ interrupt signal sent to the single-chip data into the register by the CPU to operate the various functions of the controller control. * When the controller as an alarm, and guard in the state, the alarm detection probe at all times to prevent the situation in the region; When the probe to the controller issued a police intelligence information, the RB5 input CPU interrupt signal, the controller to enter the working state, from the EEPROM chip Read a pre-set alarm phone numbers, by the MT8880 is converted to DTMF signals, automatic dial-up to voice the form of information transmitted to the user or a direct report to the police. 2.3 Application Circuit (1) Telephone Interface Circuit Telephone with the controller using the controller in the former, telephone in the latter series the way the controller can achieve a variety of telephone control functions. Interface circuit from over-voltage protection circuit, polarity conversion circuit and interrupt request circuit shown in Figure 4. 设计巴巴工作室www.88doc88.com ? over-voltage protection circuit. In the telephone lines back on the road add a varistor R, it is the role of the voltage at both ends when it is greater than when the job was short-circuit voltage, and thereby protect the circuit from high voltage hazards. When added to it at the two ends of the voltage is less than its operating voltage, varistor was open, and on the job after the circuit has no effect. In this design, the work of varistor voltage is 220V. ? polarity conversion circuit. Because of the telephone lines and transmission are the exchange of signals, the polarity of the signal for a fixed, in the circuit add electric bridges, to carry out full-wave rectifier. ? interrupt request circuit. For extended battery life, CPU in standby power in a dormant state, in the realization of long-distance telephone and local control of the controller functions from interrupt request to CPU wake-up circuit. (2) voice circuit Voice circuit shown in Figure 5. It ISD4000 voice chip as the core, the main voice alarm are stored, the output amplified by the power sent to the telephone lines. (3) MT8880 and PIC MCU interface circuit Mitel's MT8880 is a DTMF transceiver, with a powerful, low power consumption, job stability, reliable high merits in the DTMF signal modulation occasions has been widely used. MT8880 and PIC MCU interface circuit as shown in Figure 6. ? MT8880 and MCU interface circuit. D0 ~ D3 for four data lines, MT8880, after pre-treatment of the DTMF signal demodulation, the demodulation of the signal into a register chip, and issued through the IRQ interrupt signal to the single-chip microcomputer. Singlechip corresponding interrupt request after the R, W, RS0, RD under the control of, through D0 ~ D3 read out the data demodulator. ? DTMF signal amplification circuit. When the microprocessor will have to send DTMF data into the corresponding register MT8880 when, MT8880 issued from the TONE pin DTMF signal, signal amplifier amplified and sent to the transformer for voltage changes. 3 Programming 设计巴巴工作室www.88doc88.com Procedures in the run-time: ? controller for electrical appliances, if long-distance telephone operation of the controller is based on the number of calls to determine ring vibration; if local telephones to operate on the controller is based on the local telephone picking machine isolation. ? for alarm, alarm sensor to detect alarm conditions at any time and send a signal to the controller, while the controller is based on user settings the situation is in a guard to determine whether or not the police pull out the phone. Figure 7 is a procedural flow chart. The following initialization procedures are introduced, MT8880 set subroutine and DTMF signal sending and receiving subprogram。 PIC单片机在手机远程控制器中的低功耗设计 设计巴巴工作室www.88doc88.com 摘要:结合电话远程控制器的低功耗设计,探讨PIC单片机低功耗的设计方法,并给出设计电路原理图。 关键词:PIC单片机 低功耗设计 电话远程控制器 待机 引言 20世纪90年代以来,随着集成电路特征线宽的持续缩小以及芯片密度和工作频率的相应增加,降低功耗已经成为亚微米和深亚微米超大规模集成电路设计中的一个主要考虑因素。功耗的增加会带来一系列问题,例如电路参数漂移、可靠性下降、芯片封装成本增加等。因此,系统的功耗在整个系统设计中,尤其是在采用电池供电的系统中显得十分重要。 Microchip公司PIC系列的单片机为设计高性能、低功耗的单片机系统提供了很好的解决方案。下面从低功耗设计方法及具体例子来介绍PIC单片机低功耗应用。 1 低功耗设计方法 为使系统工作在低功耗状态,必须正确设置单片机的配置及工作方式。下面结合最常用的PIC12、PIC16等单片机介绍低功耗系统的设计方法。 1.1 基本设计方法 有许多技术可以降低系统的功耗,最常用的是Sleep模式。程序执行一条SLEEP指令,便进入了休眠(Sleep)模式。要Sleep模式下,晶振停止振荡,而此时单片机在3V电源条件下,只有1μA的电流。系统工作时,单片机可以采用看门狗或外部事件周期性地唤醒单片机,利用电子开关为系统提供电源,以减少系统待机功耗,延长电池使用时间。 单片机的工作频率和功耗的关系也很大,频率越高,功耗越大。在采用32kHz晶振、3V工作电压时,PIC12、PIC16等系列单片机的典型工作电流只有15μA;而采用4MHz晶振、5V工作电压时,单片机的典型工作电流达到几mA。在许多低功耗的场合,采用低速晶振实现低功耗非常有效。如果单片机采用RC振荡,还可以通过I/O口的操作改变振荡电阻,从而改变单片机工作频率,达到节能的目的。如图1所示,1个I/O引脚可以在等待状态下将并联电阻R1去掉,降低单片机工作频率。当单片机需要工作时,可将I/O引脚设置为输出并输出高电平,从而提高振荡频率。 1.2 振荡电路设计 在单片机系统设计中,振荡电路的设计是十分重要的一个环节。PIC系列单片机的典型振荡电路如图2所示。 一般情况下,设计人员按照厂家给出的参数表进行选择。如果系统能够正常工作,也就不再进行改进了。其实,这是不合适的。因为Microchip的单片机根据型号和版本的不同,工作电压在直流2.5,5.5V的范围内,汽车级温度可以在-40,-125?范围内,而参数表中只给出了有限的几种情况,实际环境参数会对振荡电路的性能产生很大的影响。如高温、低电压设计巴巴工作室www.88doc88.com 可减小振荡环路增益,而从降低振荡频率或者难以启动;低温、高电压可以使环路增益变大,从而使晶振过驱动,产生损坏的潜在危险或者振荡电路工作的高次谐波频率上升,加大系统功耗。因此,如何正确设计系统的振荡电路十分必要。对于PIC系列单片机,一般的设计步骤如下: ?选择晶振。根据系统需要的振荡频率进行晶振的选择。此外,晶振的工作温度和频率稳定度也是十分重要的指标。 ?选择振荡器类型。PIC系列单片机有RC、LP、XT、HS等振荡模式。除RC模式外,振荡模式的选择实际上就是环路增益的选择。低增益对应低振荡频率,高增益对应高振荡频率。一般根据实际需要的工作频率可参考数据手册来选择。 ?选择C1、C2。理想的情况是,保证系统在高温和最低工作电压下能够正常工作,使得电容在数据手册推荐的范围内最小。同时选择C2比C1大一些以加大相移,使其有利于振荡电路的上电启动。 ?选择Rs。在以上参数都已经选定后需要决定Rs的大小。简单的是让系统工作在最低温度和最大电压情况下,此时得到的应该是时钟电路最大输出幅度。用示波器观察引脚OSC2的输出波形(注意,示波器的探头将给电路引入一个电容,一般为几pF),如果发现正弦波的峰(接收Vdd处)和谷(接收Vss处)被削平或压扁,说明驱动过载,需要在OSC2和C2间加入1个电阻Rs,一般1kΩ左右或小于1kΩ。Rs不宜过大,过大将使得输入和输出产生隔离,从而产生较大的噪声。当发现需要一个较大的Rs才能消除过驱动时,可以增加负载电容C2来补偿。C2一般选择在15,33pF之间。 系统振荡电路的设计对系统的稳定性、功耗等影响很大。一般情况下,系统从Sleep状态下唤醒时,振荡电路最难启动(尤其系统工作在高温、低压、低频的情况下)。此时,电阻Rs有利于振荡电路的启动,因为廉价的碳膜电阻容易产生白噪声,从而帮助电路起振。此外,选择C2稍大于C1以增大相移,也有利于电路起振。 2 具体应用例子 2.1 系统组成及框图 系统主要由PIC单片机、双音频解码拔号电路、语音集成电路、接口电路、Vcc电源控制电路、射频发射电路和EEPROM组成,可完成对家用电器的控制和对报警求援语音信息的自动传送,如图3所示。 2.2 控制器工作方式 *当与控制器相串闻的电话机(以下称为本地机)处于摘机时,电话线输入电压发生变化,引起CD40106的2脚输出电平变化,输入到CPU的RB0端口产生中断信号,唤醒CPU,控制器进入工作状态。通过本地机的拔号盘对控制器的各种功能进行控制。如控制电视、音响、照明灯等电器电源的开关。 设计巴巴工作室www.88doc88.com *当控制器接收到振铃信号时,CD40106的4脚输出电平变化,输入CPU的RB6端口产生中断信号,唤醒CPU进入工作状态,并对振铃信号进行计数;达到设定铃声数后,使控制器进入电话接收状态,开始接收远程传输DTMF信号,经MT8880解调得到的信号通过IRQ向单片机发出中断信号,将数据存入寄存器,经CPU运行,对控制器的各种功能进行控制。 *当控制器作为报警器,并处于警备状态时,报警探头时刻检测防范区域的情况;当探头向控制器发出警情信息,输入CPU的RB5中断产生信号,控制器进入工作状态,从EEPROM芯片读出预先设置的报警电话号码,经MT8880转换为DTMF信号,自动拨号,以语音形式将信息传送给用户或直接报警。 2.3 应用电路 (1)电话接口电路 电话机与控制器采用控制器在前,电话机在后的串联方式,可实现电话机对控制器各种功能的控制。接口电路由过压保护电路、极性转换电路和中断请求电路组成,如图4所示。 ?过压保护电路。在电话线回路上加入了一个压敏电阻R,它的作用是当它两端的电压大于其工作电压时呈短路状态,从而保护后级电路免受高压危害。当加到它的两端的电压小于其工作电压,压敏电阻呈开路状态,对后级电路的工作没有任何影响。在本设计中,压敏电阻的工作电压为220V。 ?极性转换电路。由于在电话线上传输的是交流信号,为了使信号的极性固定,在电路中加入电桥,进行全波整流。 ?中断请求电路。为延长电池工作时间,CPU在待机时处于休眠的省电状态,在实现远程电话机和本地机对控制器功能控制时,由中断请求电路将CPU唤醒。 (2)语音电路 语音电路如图5所示。它以ISD4000语音芯片为核心,主要是存储报警语音,输出经功率放大后传送到电话线上。 (3)MT8880与PIC单片机的接口电路 MT8880是Mitel公司的DTMF收发器,具有功能强、功耗低、工作稳定、可靠等性高优点,因此在DTMF信号调制的场合得到了广泛的应用。MT8880与PIC单片机的接口电路如图6所示。 ?MT8880与单片机的接口电路。D0,D3为4根数据线,MT8880对经过前置处理的DTMF信号进行解调,将解调得的信号存入片内寄存器中,并通过IRQ向单片机发出中断信号。单片机相应中断请求后,在R、W、RS0、RD的控制下,通过D0,D3读出解调出的数据。 设计巴巴工作室www.88doc88.com ?DTMF信号放大电路。当微处理器将要发送的DTMF数据写入MT8880相应的寄存器时,MT8880从TONE引脚发出DTMF信号,信号经过放大电路放大后,送往变压器进行电压变化。 3 程序设计 程序在运行时:?为电器控制器,若是远程电话机对控制器进行操作,是根据电话的振铃声数来判断;若本地电话机对控制器进行操作,是根据本地电话机的摘机情况来判断。?为报警器,报警探头随时检测到警情并发出信号给控制器,而控制器则是根据用户的设置情况,是处于警备与否来判断是否拔出报警电话。图7是程序流程图。下面主要介绍初始化程序、MT8880设置子程序和DTMF信号发送以及接收子程序 设计巴巴工作室www.88doc88.com 设计巴巴工作室www.88doc88.com
/
本文档为【外文翻译--PIC单片机在手机远程控制器中的低功耗设计】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索