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

[复制链接]
3744|3
 楼主| 至爱森林 发表于 2008-9-9 14:53 | 显示全部楼层 |阅读模式
想请教一下QE8单片机通过串口中断唤醒STOP模式,除了使能IDLE中断外还需要哪些设置,唤醒的字符串是什么?方便的话给个例程,多谢
win2000_li 发表于 2008-9-9 19:13 | 显示全部楼层

顶一个!!!

期待回复,我也想知道一下。<br /><br />
张明峰 发表于 2008-9-10 13:33 | 显示全部楼层

串口中断唤不醒STOP模式!

STOP模式下无总线时钟,SCI无法工作,根本不可能唤醒CPU。只有WAIT模式才可以实现SCI中断唤醒。<br />如果一定要实现SCI通讯唤醒STOP状态下的MCU,可以用额外的唤醒引脚如KBI或IRQ,将SCI的RX和其相连,利用UART通讯的起始位低电平变化唤醒MCU。取决于不同的STOP模式,唤醒后可能第一个字节将无法正常接收(MCU将进行复位)
 楼主| 至爱森林 发表于 2008-9-10 14:30 | 显示全部楼层

多谢张工

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

本版积分规则

12

主题

369

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部