完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我想使用STM8L001J3的SWIM端口来控制LED。
显然,同样的端口也需要用于调试和编程。 我问是否可以将LED直接连接到端口,或者是否更好地使用MOS-N(2N7002)来避免阻抗问题? 我用MOS-N附上解决方案的原理图。感谢您提供宝贵的反馈和建议 西斯托 #stm8l001j3游泳 以上来自于谷歌翻译 以下为原文 Hi, I would like to use the SWIM port of STM8L001J3 to control an LED. Obviously the same port will also need to be used for debugging and programming. I ask if it is possible to connect the LED directly to the port or if is it better to use a MOS-N (2N7002) to avoid impedance problems? I attach the schematic of the solution with MOS-N.Thank you for your valuable feedback and suggestions Sisto #stm8l001j3-swim |
|
相关推荐
4个回答
|
|
我强烈建议您使用SWIM引脚作为输入,使用另一个引脚作为LED输出。
SWIM引脚可以直接用作GPIO输入(甚至可以在复位时激活上拉电阻)。如果要将其用作输出,则必须在DDR寄存器中更改其方向。这将使其无法用于编程/调试。 ST建议你这样做5秒钟 |
|
|
|
谢谢你的有用建议。
我将LED命令交换到PC2 I / O,移除MOS-N,R13并连接PA0 / SWIM上的P4按钮。 但是,由于我必须在Ext Interrupt模式下使用此输入,我注意到此引脚在此函数上有一个“C”标签(参见表3图像)。 ''C'的含义是什么? 在D.S.的表2中,我没有找到任何解释,然后我不能保证我可以在ext中断模式下使用I / O. 你有什么想法? 以上来自于谷歌翻译 以下为原文 Thanks for Your useful suggestion. I will swap the LED command to PC2 I/O, removing MOS-N, R13 and connect P4 button on PA0/SWIM. But, since I must use this input in Ext Interrupt mode, I've noticed that this pin have a ''C'' label on this function (see Table 3 image). What's the meaning of ''C''? In Table2 of the D.S., I not found any explanation for this and then I'm not shure that I can use the I/O in ext interrupt mode. What do you think about? |
|
|
|
可能是一个错字。键盘上的'X'旁边有'C'...
2018-05-19 11:48 GMT + 03:00SistoZànier< st-microelectronics@jiveon.com>: 意法半导体社区 < HTTPS:?//community.st.com/等= watches.email.thread> Re:使用STM8L001J3进行简单的远程控制 来自SistoZànier的回复 < HTTPS:?//community.st.com/people/ZANIER.SISTO等= watches.email.thread>在* STM8 MCU * - 查看完整的讨论 < https://www.community.st.com/message/198110-re-simple-remote-control-using-stm8l001j3?commentID = 198110& et =watches.email.thread♯comment-198110> 以上来自于谷歌翻译 以下为原文 Probably a typo. 'C' is next to 'X' on the keyboard... 2018-05-19 11:48 GMT+03:00 Sisto Zànier STMicroelectronics Community Re: Simple remote control using STM8L001J3 reply from Sisto Zànier MCUs* - View the full discussion |
|
|
|
可能......我希望。
无论如何,我将测试使用STM8L Discovery板移除SB16以排除& sharpReset并模拟STM8L001J3M3硬件条件。 以上来自于谷歌翻译 以下为原文 May Be... I hope. In any case, I will test using STM8L Discovery board removing SB16 to exclude &sharpReset and to simulate STM8L001J3M3 hardware condition. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1932 浏览 1 评论
2649 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1547 浏览 1 评论
3095 浏览 6 评论
5532 浏览 21 评论
516浏览 4评论
929浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
338浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
895浏览 3评论
851浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-6-24 20:53 , Processed in 1.055549 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191