文件名称:SLEEP
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-07-19
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- feinia*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
/*
本程序简单的示范了如何令AVR ATMEGA16进入睡眠状态及唤醒
电源管理及睡眠模式的介绍
进入最低耗电的掉电模式
关闭各种模块
外部中断唤醒
M16掉电模式的耗电情况(看门狗关闭),时钟为内部RC 1MHz
0.9uA@Vcc=5.0V [手册的图表约为1.1uA]
0.3uA@Vcc=3.3V [手册的图表约为0.4uA]
//测量的数字万用表是FLUKE 15B,分辨率0.1uA
这个程序需要MCU进入休眠状态,为实现最低功耗,JTAG接口会被关闭,只能通过LED的变化来观察程序的运行。
这个实验里面,用STK500(AVRISP) ISP下载线来烧录更方便。
熔丝位设置
1 关断BOD功能 BODEN=1
2 如果用ISP方式烧录,就可以完全关闭JTAG口了 OCEEN=1,JTAGEN=1
*/-/* This program demonstrates how to make a simple AVR ATMEGA16 go to sleep and wake and sleep mode power management introduction into the most low-power-down mode off various modules external interrupt wake-down mode power consumption of M16 (Janitor Dogs closed), the clock is the internal RC 1MHz 0.9uA @ Vcc = 5.0V [Manual chart about 1.1uA] 0.3uA @ Vcc = 3.3V [Manual chart about 0.4uA]// measurement is FLUKE 15B Digital Multimeter resolution 0.1uA this program requires MCU enter the sleep state, in order to achieve the lowest power, JTAG interface, will be closed only by changing the LED to observe the operation of the program. This experiment inside, with the STK500 (AVRISP) ISP download cable to burn more convenient. Fuse setting a shutdown function BODEN = 1 2 BOD If ISP programming mode, you can completely turn off the JTAG port of OCEEN = 1, JTAGEN = 1* /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
【OK】SLEEP\Makefile
...........\SLEEP_main.c
【OK】SLEEP