STM8L-discovery操作-IAR配置与GPIO端口操作
IAR环境用库函数实现STM8S003的ADC功能,PD2口作为单次转换模式,PD3口作为连续转换模式,转换后的电压用串口输出。
基于IAR开发环境,直接对寄存器进行操作,构建的STM8s工程模板,只需要做简单的修改就可以进行项目开发了。
https://www.amobbs.com/forum.php?mod=viewthread&tid=4266304阿莫电子15楼哥们提供的方法,IARFORSTM8S错误Anerroroccurr
IAR环境中,用寄存器实现PD2、PD3口电压采集,ADC用中断方式实现,并将结果通过串口发送出去。
STM8L051外部中断库函数例程IAR需要者可自行下载,下载完成后可在资源下方进行评论,方便后来者参考下载
在IAR环境中,用库函数实现STM8S003单片机的模拟串口功能,用普通IO口作为串口,可以通过中断方式接收数据,也可以通过查询方式接收数据。9600波特率测试。
可用的STM8Cosmic4.2.8破解forSTVD
IAR1.40.1破解 直接解压后放到IAR安装目录下的bin文件下,将原来的文件替换,然后重新启动IAR工具即可
经验证,能用