atmega128掉电模式问题

2019-03-24 20:52发布

atmega128进入掉电模式: MCUCR=0x30;
 _SLEEP(); 所有IO已置于没有输入、输出电流的状态。   但测量电流仍有2.5mA(不是DS所说的最大40uA),示波器测试晶振也没有停止。 请大侠们指点! 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
4条回答
wkxstar
2019-03-25 16:58

问题找到了,没有注意到这些:

 

JTAG Interface and
On-chip Debug System
If the On-chip debug system is enabled by the OCDEN Fuse and the chip enter Power
down or Power save sleep mode, the main clock source remains enabled. In these
sleep modes, this will contribute significantly to the total current consumption. There are
three alternative ways to avoid this:
• Disable OCDEN Fuse.
• Disable JTAGEN Fuse.
• Write one to the JTD bit in MCUCSR.
The TDO pin is left floating when the JTAG interface is enabled while the JTAG TAP
controller is not shifting data. If the hardware connected to the TDO pin does not pull up
the logic level, power consumption will increase. Note that the TDI pin for the next
device in the scan chain contains a pull-up that avoids this problem. Writing the JTD bit
in the MCUCSR register to one or leaving the JTAG fuse unprogrammed disables the
JTAG interface.

一周热门 更多>