Andes Workshop
http://forum.andestech.com/

standby與interrupt
http://forum.andestech.com/viewtopic.php?f=6&t=640
Page 1 of 1

Author:  cindy [ Fri Nov 23, 2012 11:37 am ]
Post subject:  standby與interrupt

standby狀態下,可以由interrupt喚醒cpu,
但是此時GIE和interrupt mask不一定有開,
無論GIE和interrupt mask是否有開,
interrupt都可以喚醒cpu。

在Andesight v200 STD裡的demo-standby,
它為了只展示interrupt喚醒cpu,所以它把gie關掉。
所以在debug時,會發現沒有進ISR,
這是正常的。

下面是我debug demo-standby,
把gie和interrupt mask打開。
它會喚醒cpu,也會進入ISR。

Attachment:
interrupt2.png
interrupt2.png [ 50.22 KiB | Viewed 9774 times ]

Attachment:
interrupt.png
interrupt.png [ 48.28 KiB | Viewed 9774 times ]

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/