完善资料让更多小伙伴认识你,还能领取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 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 22:12 , Processed in 1.646298 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
664