欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA64A-AU 参数 Datasheet PDF下载

ATMEGA64A-AU图片预览
型号: ATMEGA64A-AU
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有64K字节的系统内可编程闪存 [8-bit Microcontroller with 64K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 7964 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA64A-AU的Datasheet PDF文件第42页浏览型号ATMEGA64A-AU的Datasheet PDF文件第43页浏览型号ATMEGA64A-AU的Datasheet PDF文件第44页浏览型号ATMEGA64A-AU的Datasheet PDF文件第45页浏览型号ATMEGA64A-AU的Datasheet PDF文件第47页浏览型号ATMEGA64A-AU的Datasheet PDF文件第48页浏览型号ATMEGA64A-AU的Datasheet PDF文件第49页浏览型号ATMEGA64A-AU的Datasheet PDF文件第50页  
ATmega64A  
9. Power Management and Sleep Modes  
Sleep modes enable the application to shut down unused modules in the MCU, thereby saving  
power. The AVR provides various sleep modes allowing the user to tailor the power consump-  
tion to the application’s requirements.  
To enter any of the six sleep modes, the SE-bit in MCUCR must be written to logic one and a  
SLEEP instruction must be executed. The SM2, SM1, and SM0 bits in the MCUCR Register  
select which sleep mode (Idle, ADC Noise Reduction, Power-down, Power-save, Standby, or  
Extended Standby) will be activated by the SLEEP instruction. See Table 9-2 for a summary. If  
an enabled interrupt occurs while the MCU is in a sleep mode, the MCU wakes up. The MCU is  
then halted for four cycles in addition to the start-up time, it executes the interrupt routine, and  
resumes execution from the instruction following SLEEP. The contents of the Register File and  
SRAM are unaltered when the device wakes up from sleep. If a reset occurs during sleep mode,  
the MCU wakes up and executes from the Reset Vector.  
Figure 8-1 on page 37 presents the different clock systems in the ATmega64A, and their distri-  
bution. This figure is helpful in selecting an appropriate sleep mode.  
9.1  
Idle Mode  
When the SM2:0 bits are written to 000, the SLEEP instruction makes the MCU enter Idle mode,  
stopping the CPU but allowing SPI, USART, Analog Comparator, ADC, Two-wire Serial Inter-  
face, Timer/Counters, Watchdog, and the interrupt system to continue operating. This sleep  
mode basically halts clkCPU and clkFLASH, while allowing the other clocks to run.  
Idle mode enables the MCU to wake up from external triggered interrupts as well as internal  
ones like the Timer Overflow and USART Transmit Complete interrupts. If wake-up from the  
Analog Comparator interrupt is not required, the Analog Comparator can be powered down by  
setting the ACD bit in the Analog Comparator Control and Status Register – ACSR. This will  
reduce power consumption in Idle mode. If the ADC is enabled, a conversion starts automati-  
cally when this mode is entered.  
9.2  
ADC Noise Reduction Mode  
When the SM2:0 bits are written to 001, the SLEEP instruction makes the MCU enter ADC  
Noise Reduction mode, stopping the CPU but allowing the ADC, the external interrupts, the  
Two-wire Serial Interface address watch, Timer/Counter0 and the Watchdog to continue operat-  
ing (if enabled). This sleep mode basically halts clkI/O, clkCPU, and clk-FLASH, while allowing the  
other clocks to run.  
This improves the noise environment for the ADC, enabling higher resolution measurements. If  
the ADC is enabled, a conversion starts automatically when this mode is entered. Apart form the  
ADC Conversion Complete interrupt, only an External Reset, a Watchdog Reset, a Brown-out  
Reset, a Two-wire Serial Interface address match interrupt, a Timer/Counter0 interrupt, an  
SPM/EEPROM ready interrupt, an external level interrupt on INT7:4, or an External Interrupt on  
INT3:0 can wake up the MCU from ADC Noise Reduction mode.  
46  
8160C–AVR–07/09  
 复制成功!