大家好,
我想用
♯
内置RC振荡器。当我开始使用♯
,我准备了一个无需使用内部RC振荡器即可正常工作的
通信库。我用示波器检查了所有通信。现在我需要使用STPM10和内部RC振荡器。我编写了遵循RC启动程序的代码。我有一个STPM01板和两个STPM10板。我使用STPM10的两个板测试了新代码,但是RC启动过程存在问题。
RC启动程序(根据STPM10数据表):
设置模式信号BANKPerform a软件复位读寄存器:应检查BANK模式信号清除模式信号BANK不执行读操作,写配置位RC之后BANK位和RC位保持置1且STPM10未启动测量。有时无数原因,几十秒后自发地开始。
当我使用内置RC振荡器使用STPM01板测试我的代码时,它工作正常并且STPM01正确测量。
问题:
我对STPM10做错了什么或问题出在哪里?
先谢谢你!
一月
#stpm10#stpm01
以上来自于谷歌翻译
以下为原文
Hello all,
I want to use
♯
with internal RC oscillator. When I started using ♯
, I prepared a communica
tion library that works well without using the internal RC oscillator. I checked all communication using oscilloscope. Now I need to use STPM10 with internal RC oscillator. I programmed code that follow RC startup procedure. I have one board with STPM01 and two with STPM10. I tested new code using both boards with STPM10, but there is a problem with RC startup procedure.
RC startup procedure (according to the STPM10 datasheet):
- Set the mode signal BANK
- Perform a software reset
- Read the registers: BANK mode signal should be checked
- Clear the mode signal BANK
- Do not perform a reading, and write configuration bit RC
After that the BANK bit and the RC bit remained set and the STPM10 did not start with measurement. Sometimes spontaneously started after several tens of seconds for no apparent reason.
When I tested my code using board with STPM01 using Internal RC oscillator, then it works fine and STPM01 measure correctly.
Questions:
What am I doing wrong with STPM10 or where the problem might be?
Thank you in advance!
Jan
#stpm10 #stpm01