Andes Workshop

It is currently Fri Mar 29, 2024 4:13 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: standby與interrupt
PostPosted: Fri Nov 23, 2012 11:37 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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 9701 times ]

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


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group