完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
|
相关推荐
1个回答
|
|
MSP430除了active模式外,还有低功耗模式(Low-power mode)即LPM0、LPM1、LPM2、LPM3、LPM4,由状态寄存器中的CPUOFF、OSCOFF、SCG0、SCG1比特位设置。
官方手册中的六种低功耗模式对应的时钟状态如下: The following six operating modes can be configured by software: Active mode (AM) All clocks are active Low-power mode 0(LPM0) CPU is disabled ACLK and SMCLK remain active, MCLK is disabled Low-power mode 1(LPM1) CPU is disabled ACLK and SMCLK remain active MCLK is disabled DCO’s dc generator is disabled if DCO not used in active mode Low-power mode 2 (LPM2) CPU is disabled MCLK and SMCLK are disabled DCO’s dc generator remains enabled ACLK remains active Low-power mode 3(LPM3) CPU is disabled MCLK and SMCLK are disabled DCO’s dc generator is disabled ACLK remains active Low-power mode 4(LPM4) CPU is disabled ACLK is disabled MCLK and SMCLK are disabled DCO’s dc generator is disabled Crystal oscillator is stopped 当VCC为3.0V时 LPM4消耗最低 因为此时关闭所有内部时钟信号,此时只能用外部中断唤醒 官方头文件所给出的实现语句: #define LPM0 __bis_SR_register(LPM0_bits) /* Enter Low Power Mode 0 */ #define LPM0_EXIT __bic_SR_register_on_exit(LPM0_bits) /* Exit Low Power Mode 0 */ #define LPM1 __bis_SR_register(LPM1_bits) /* Enter Low Power Mode 1 */ #define LPM1_EXIT __bic_SR_register_on_exit(LPM1_bits) /* Exit Low Power Mode 1 */ #define LPM2 __bis_SR_register(LPM2_bits) /* Enter Low Power Mode 2 */ #define LPM2_EXIT __bic_SR_register_on_exit(LPM2_bits) /* Exit Low Power Mode 2 */ #define LPM3 __bis_SR_register(LPM3_bits) /* Enter Low Power Mode 3 */ #define LPM3_EXIT __bic_SR_register_on_exit(LPM3_bits) /* Exit Low Power Mode 3 */ #define LPM4 __bis_SR_register(LPM4_bits) /* Enter Low Power Mode 4 */ #define LPM4_EXIT __bic_SR_register_on_exit(LPM4_bits) /* Exit Low Power Mode 4 */ 将以上语句移植至Energia |
|
|
|
只有小组成员才能发言,加入小组>>
3130 浏览 9 评论
2827 浏览 16 评论
3337 浏览 1 评论
8708 浏览 16 评论
3930 浏览 18 评论
9547浏览 3评论
884浏览 3评论
456浏览 2评论
const uint16_t Tab[10]={0}; const uint16_t *p; p = Tab;//报错是怎么回事?
455浏览 2评论
用NUC131单片机UART3作为打印口,但printf没有输出东西是什么原因?
2175浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-19 10:55 , Processed in 1.161477 second(s), Total 78, Slave 59 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号