完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试使用软件模拟器来模拟207S6,但内部寄存器似乎没有正常工作。重置值都是ff。如果我需要在STVD中设置一些东西,那么ADC似乎没有任何人知道定时器的功能吗?
我也试图使用刺激文件,但我一直收到错误,说明引脚没有正确分配。我可以使用我正在使用我的代码的作业吗? 以上来自于谷歌翻译 以下为原文 I'm trying to us the software simulator to simulate the 207S6 but the internal registers don't seem to be working correctly. The reset value are all ff's. The ADC doesn't seem to function as well as the timers anyone have any idea if I need to set something in the STVD? I was also trying to use a stimulus file but I keep getting an error that the pin is not assigned correctly. Can I use the assignment I'm using my code? |
|
相关推荐
3个回答
|
|
您的问题的答案在于STVD发行说明,您可以在其中找到所有STVD模拟器限制。
STVD仿真器适用于ST7器件和外设。 对于STM8设备来说几乎没用,因为您在问这个论坛时会遇到同样的问题。 关于刺激文件格式,从这个例子可以看出它很简单: PIN PA1 -i 0 0 PIN PA2 -a 1.492 0 PIN PA4 -a 1.425 0 PIN PA5 -a 1.522 0 PIN PA1 -i 1 80000 PIN PA1 -i 0 80032 PIN PA1 -i 1 88000 第一行告诉PA1在t = 0时等于数字值0。 第二行告诉PA2在t = 0时等于1.492 V. 最后三个显示了模拟开始后PA1如何变化5 ms。 它是t = 5.000 ms时的一个,它在t = 5.002 ms时变为零,并在t = 5.500 ms时返回到1。 当发生转换时,每行末尾的数字等于时钟周期(在我的示例中为16 MHz)。 EtaPhi 以上来自于谷歌翻译 以下为原文 The reply to your question lies in the STVD release notes where you can find all STVD simulator limitations. STVD simulator works fine for ST7 devices and peripherals. It's almost useless for STM8 devices because of the same issues you are asking this forum. As regards stimulus file format, it's simple as you can see from this example: PIN PA1 -i 0 0 PIN PA2 -a 1.492 0 PIN PA4 -a 1.425 0 PIN PA5 -a 1.522 0 PIN PA1 -i 1 80000 PIN PA1 -i 0 80032 PIN PA1 -i 1 88000 The first line tells that PA1 is equal to digital value 0 at t = 0. The second line tells that PA2 is equal to 1.492 V at t=0. The last three show how PA1 changes 5 ms after the simulation start. It's one at t = 5.000 ms, it becomes zero at t = 5.002 ms and it returns to one at t = 5.500 ms. The number at the end of each row is equal to the clock cycles (16 MHz in my example) when a transition happens. EtaPhi |
|
|
|
谢谢,找到了发布文档,是的,不支持STM8。
花了几个小时试图让这个工作。 ST在2周后仍然没有回来。 即使我的软件找到引脚,我仍然会得到不存在的引脚错误。 我没有在头文件中看到任何单个引脚defs,可能需要定义每个引脚地址。 以上来自于谷歌翻译 以下为原文 Thanks, found the release doc and yes no support for the STM8. Spent as few hours trying to get this working. ST still haven't got back after 2 Weeks. I still get non-existant pin errors even though my software finds the pins. I dont see any single pin defs in the header file, probably need to define each pin address. |
|
|
|
对不起,我误解了你的问题。
我的示例显示了一个刺激文件内容,它具有'.in'扩展名,可以在STVD模拟器启动后加载。 没有头文件,因为STVD模拟器知道哪个设备正在运行。 STVD模拟器还可以从“.s19”文件加载EEPROM(或RAM)映像。 但是,在调试项目时要小心,因为只要启动STVD模拟器以获得相同的调试行为,就必须进行输入激励和内存初始化。 以上来自于谷歌翻译 以下为原文 Excuse me, I misunderstood your question. My example shows a stimuli file content, which has a '.in' extension and can be loaded after STVD simulator has been started. There is no header file because STVD simulator knows which device is running. The STVD simulator can also load an EEPROM (or RAM) image from a ''.s19'' file. You have however to be carefull when you debug a project, because input stimulation and memory initialization have to be done whenever you start the STVD simulator to have the same debug behaviour. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2642 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3611 浏览 6 评论
5989 浏览 21 评论
939浏览 4评论
1316浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
584浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1303浏览 3评论
1361浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 23:16 , Processed in 1.188132 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号