打印

张教主请进,想请教一下串口中断唤醒

[复制链接]
2559|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
至爱森林|  楼主 | 2008-9-9 14:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
想请教一下QE8单片机通过串口中断唤醒STOP模式,除了使能IDLE中断外还需要哪些设置,唤醒的字符串是什么?方便的话给个例程,多谢

相关帖子

沙发
win2000_li| | 2008-9-9 19:13 | 只看该作者

顶一个!!!

期待回复,我也想知道一下。

使用特权

评论回复
板凳
张明峰| | 2008-9-10 13:33 | 只看该作者

串口中断唤不醒STOP模式!

STOP模式下无总线时钟,SCI无法工作,根本不可能唤醒CPU。只有WAIT模式才可以实现SCI中断唤醒。
如果一定要实现SCI通讯唤醒STOP状态下的MCU,可以用额外的唤醒引脚如KBI或IRQ,将SCI的RX和其相连,利用UART通讯的起始位低电平变化唤醒MCU。取决于不同的STOP模式,唤醒后可能第一个字节将无法正常接收(MCU将进行复位)

使用特权

评论回复
地板
至爱森林|  楼主 | 2008-9-10 14:30 | 只看该作者

多谢张工

那可能是我理解错误,或者是DATASHEET之误,拷贝到这看看
3.6.2 Stop3 Mode
Stop3 mode is entered by executing a STOP instruction under the conditions shown in Table 3-1. The
states of all of the internal registers and logic, RAM contents, and I/O pin states are maintained.
Stop3 can be exited by asserting RESET, or by an interrupt from one of the following sources: the RTC,
LVD, LVW, ADC, ACMPx, IRQ, SCI or the KBI.
If stop3 is exited by means of the RESET pin, then the MCU is reset and operation will resume after taking
the reset vector. Exit by means of one of the internal interrupt sources results in the MCU taking the
appropriate interrupt vector.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

12

主题

369

帖子

0

粉丝