完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我在SPC560P发现板上工作。我正在尝试使用SPC5 Studio中提供的组件初始化ADC外设。我想要做的是在不同的项目中复制ADC测试应用程序。我在项目配置中初始化ADC组件并在main.c中使用它 配置ADC我使用的是ADC测试应用程序(通道:10)中提供的相同值。 问题是在电路板上加载程序后,ADC样本值没有更新,但仍保持恒定值。移除jp12跳线将样本值设置为1,但更改电阻对样本值没有影响。 你能帮我解决一下我在这里缺少的东西吗? 问候, 马塞尔 #spc5studio #udetsk #adc#spc560p 以上来自于谷歌翻译 以下为原文 Hello, I am workin on SPC560P Discovery Board. I am trying to initialize the ADC peripheral using the components provided in the SPC5 Studio. What I am trying to do is to replicate the ADC Test Application in a different project. I initialize the ADC component in the project configuration and using this in the main.c
Configuring the ADC I am using the same values provided in the ADC Test Application (channel: 10). The problem is after loading the program on the board, that the ADC sample values are not updating, but remaining on a constant value. Removing the jp12 jumper is setting the sample value to 1, but changing the resistor has no effect on the sample value. Can you help me out what am I missing here? Regards, Marcell #spc5studio #udetsk #adc #spc560p |
|
相关推荐
2个回答
|
|
你好马塞尔,
警告:对于标准频道,我们应该PSAMP为50 您是否正确配置了pinmap向导? 你到达转换终止中断了吗? 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Marcell , Warning : for Standard channel , we should PSAMP to 50 Have you configured correctly your pinmap Wizard ? Did you arrive to End Of Conversion Interrupt ? Best Regards Erwan |
|
|
|
谢谢Erwan!
不知何故,我再次忘记了Pinmap向导,现在它按预期工作。 我在这里可能会询问FlexRay驱动程序吗?我在这里找到了许多关于Flexray驱动程序的帖子,我知道SPC5工作室不包含对Flexray的支持,也不计划在不久的将来。但是您写道,驱动程序在SPC5 MCAL包中可用,可以在此下载 https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/spc5-embedded-software/stsw-spc56as003.license%3d1499936172099.html 。此页面包含请求软件。我填写表格并请求软件,现在它说它在验证下。 :我终于能够下载Autosar 4 MCAL包了。我提交了许可证申请 邮寄地址:apgtools-license@st.com 演示版。我正在等待序列号,所以我可以安装包。谢谢你的帮助! 问候, 马塞尔 以上来自于谷歌翻译 以下为原文 Thanks Erwan! Somehow I forgot the Pinmap Wizard again, now it is works as expected. While I am here may i ask about the FlexRay driver? I found many thread here asking about the Flexray driver and I understand that SPC5 studio is not containing support for Flexray, nor it is planned in the near future. However you wrote that the driver is available in the SPC5 MCAL package which can be download under this https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/spc5-embedded-software/stsw-spc56as003.license%3d1499936172099.html . This page contains a Request Software. I filled the form out and requested the software and now it says its under Validating. : I was finally able to download the Autosar 4 MCAL package. I submitted my license request to mailto:apgtools-license@st.com for a Demo version. I am waiting for the Serial Number so i can install the package.Thanks for helping me! Regards, Marcell |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2735 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6039 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
353浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
274浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 21:33 , Processed in 0.595958 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号