如题,使用STM8L151G4U6的COMP1作为比较器检测外部输入电压是否高于内部参考1.24V的时候,在单片机没有休眠的情况下,可以正常触发中断,也可以读取比较器输出结果,但是一旦单片机进入halt();就无法中断唤醒了,又或者一直触发中断,不知道是哪里没设置好,有大神能帮忙分析下吗?下面贴出相关初始化代码:
返回列表[url=][/url][url=][/url] 高级模式[url=]B[/url][url=]Color[/url][url=]Image[/url][url=]Link[/url][url=]Quote[/url][url=]Code[/url][url=]Smilies[/url][url=]@朋友[/url]| 本版积分规则发表回复 回帖后跳转到最后一页 [url=][/url] Email: stmcu@eefocus.com Tel: 0512-80981663-8064 备案号: 沪ICP备12005910号-3 |
测试标签123
IAR FOR ARM和IAR FOR STM8无法共存,
STM8L052,液晶内部电源怎么用?
STM8S103飞线外接芯片,I2C不能得到slaveAddress应答,通讯失败。
STM8S105C6T6 UART2串口,能接收数据,不能发送数据
STM8S105K4 串口2 无奇偶校验,也能接收 偶校验的 数据
在STM8S的IAP使用中断和APP使用中断问题
STM8L151 SMBUS设计
STM8S103F复位异常
STM8L的LCD调试时不亮