找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

帖子
查看: 5316|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

avr單片機休眠模式總結(jié)【xmega系列】

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:53747 發(fā)表于 2013-8-29 21:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
最近,做項目,在收尾階段在功耗上面栽了一大跟頭!
因此覺得有必要對xmega系列單片機的休眠模式總結(jié)一下。
xmega有5種休眠方式,按照休眠的深度排列如下:
idle<extended standby<power save<standby<power down.
本人項目所用芯片為xmega256a3bu,256KFlash/16KRam,加上豐富的外設(shè)!應(yīng)該說
在8位單片機中算得上是功能超強的一款!
不過唯一的缺陷,使用內(nèi)部TC時,其產(chǎn)生的中斷不能喚醒其余的睡眠模式,除了Idle.
但是Ilde模式省電非常有限!在idle模式下,實測+外圍電路整板電流為35mA左右!
采用RTC來中斷則功耗能達到預(yù)期,但采樣率又不能達到系統(tǒng)要求!
最后,只能更換主芯片,才能在功耗與性能方面都滿足產(chǎn)品要求!
特別提醒,RTC中斷需要注意下述內(nèi)容(針對ATMEL xmega系列)
//-----------------------------------------------------------------------------------------------------------
* \section rtc32_min_alarm_time Minimum allowed alarm time
*
* Due to the RTC32 clock synchronization, there is a minimum alarm time that
* will generate a interrupt. This minimum time is 2 RTC32 clock cycles.
*
* Also, if a new RTC32 clock cycle is imminent at the time of setting the
* alarm, there is a risk that it will be missed even with the value 2. If there
* is a risk that this may occur, it is recommended to use a minimum alarm time
* of 3.
//-----------------------------------------------------------------------------------------------------------
【深圳MCU群84227449】

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表