完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
有人可以指示我如何在stm8s207上使用中断来指导我,一个用于硬连线中断的新手吗?我想连续运行stm8s并通过命令和主控制器检索信息。
查尔斯阿内特 以上来自于谷歌翻译 以下为原文 Can someone direct me, a newbe to hardwire interrupts, to a pdf file telling me how to use an interrupt on the stm8s207? I want to run the stm8s continuously and retrieve information by command from and master controller. charles arnett |
|
相关推荐
1个回答
|
|
这取决于您使用哪个外围设备在从站和主站之间进行通信。
1)启用相应的中断(参见芯片的用户手册或参考手册) 2)在文件stm8s_it.c中写入你的中断子程序 (别忘了清除拨款旗帜) 你应该在模板或示例项目中找到这个,它满足于名为的空函数: ''INTERRUPT_HANDLER(XXXXX_IRQHandler,Y)''其中XXXX是调用中断的端口/外设的名称。您必须在与您使用的外围设备相对应的处理程序中编写子例程。 尝试使用固件库,它会有所帮助;) 以上来自于谷歌翻译 以下为原文 It depends on which peripheral you use to communicate between your slave and master. 1) enable the corresponding interrupt (cf usermanual or reference manual of your chip) 2) write in file stm8s_it.c your interrupt subroutine (don't forget to clear appropriated flag) you shall find this one in templates or example projects, it s fullfill with empty functions named : ''INTERRUPT_HANDLER(XXXXX_IRQHandler, Y) '' where XXXX is the name of port/peripheral calling the interrupt. You have to write your subroutine in the handler corresponding to the peripheral you re using. Try to use the firmware library, it shall help ;) |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3013 浏览 1 评论
3331 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1910 浏览 1 评论
3767 浏览 6 评论
6191 浏览 21 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
78浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
91浏览 5评论
115浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
81浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
85浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-4-23 12:04 , Processed in 0.543865 second(s), Total 42, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191