完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,最初我修改了演示代码FordDSPICEV256GM106演示板:http//www. McCHIP.COM/DeavigoToSs/OpjtDebug?ASPX?PoToNO=D331818,所以这个演示板只接收消息。现在我将修改后的代码应用到DSPIC33 EV32 GM102板上。我设计的新板有一个8MHz的不同的晶体振荡器。我相信我已经正确地设置了所有的频率、引脚输出和CAN参数,并且我还检查了CAN消息以确保消息正确。不知怎的,DSPIC33 EV32 GM102不接受演示板的信息,有人能给我一些建议吗?谢谢
以上来自于百度翻译 以下为原文 Hi, Initially I modified the demo code for dsPIC33EV256GM106 demo board: https//www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM330018 so that this demo board only does receiving CAN message. Now I am applying the modified code to the dsPIC33EV32GM102 board. The new board I working on has a different crystal oscillator with 8MHz. I believe I have set all Frequency, pin out, and CAN parameters correctly, and I also checked the CAN message to ensure the message correctly. Somehow the dsPIC33EV32GM102 doesn't take the message which is okay for the demo board. Could anyone give me some advise? Thanks |
|
相关推荐
11个回答
|
|
建议你应该分享更多的信息。希望波特率的CAN设置正确吗?嗯,有另一个/不同的晶体振荡器不告诉你,你如何配置PLL,N1,M,N2…
以上来自于百度翻译 以下为原文 The advice is that you should share some more information. Are the CAN settings for the desired baud rate correct? Well, having another/different crystal oscillator does not tell, how you have configured PLL, N1, M, N2... |
|
|
|
IRC,演示板运动的8兆赫石英。更有趣的是你的CurrnDSP3.3EV32 GM102板的示意图,但最有可能你没有得到PPS配置正确。或者CAN RX引脚的基本配置。
以上来自于百度翻译 以下为原文 IIRC, the demo board sports an 8 MHz quartz as well. More interesting would be the schematics of your current dsPIC33EV32GM102 board. But most likely you didn't get the PPS configuration right. Or the basic configuration of the CAN RX pin. |
|
|
|
我对我的OSCCONFIG设置设置有同样的疑问,我确实修正了一些错误的设置,但仍然没有帮助。我用电压探头检查晶体振荡器频率,并实现了频率为7.3MHz。因此,我改变了我的设置为:空振荡器(空){//CF没有时钟故障;NOSC C PrPPLL;CKKOLD解锁;OSWON交换机完成;γ-BuffTynRead EnCONCOLL((UIT88T)(0x300和AMP;0x00 FF));/FRCdIV FRC/2;PLLPRE 2;DoZe1:8;PLLPOST 1:2;打禁用;ROI禁用;CKDIV= 0x3100;/TUN中心频率;OSCTUN=0x0;/ROON禁用;RODIB基础时钟值;RoSLIP禁用;ReCopon=0x0;/PLLDIV 38;PLLFBD=0x26;/RND禁用;SATB禁用;ACSAT禁用;CONCONBITS.RND=0;CONCONTITES.SATB=0;CONCONTITES.SATA=0;CORCONBITS A。顺便说一下,你认为这会是我的DMA设置问题吗?
以上来自于百度翻译 以下为原文 I have same doubt about my setting for the oscCONFIG setting, and I did fix a few wrong settings but still it didn't help. I used voltage probe to check the crystal oscillator frequency, and realized the frequency is 7.3MHz. So I changed my setting as: void OSCILLATOR_Initialize(void) { // CF no clock failure; NOSC PRIPLL; CLKLOCK unlocked; OSWEN Switch is Complete; __builtin_write_OSCCONL((uint8_t) (0x300 & 0x00FF)); // FRCDIV FRC/2; PLLPRE 2; DOZE 1:8; PLLPOST 1:2; DOZEN disabled; ROI disabled; CLKDIV = 0x3100; // TUN Center frequency; OSCTUN = 0x0; // ROON disabled; ROSEL disabled; RODIV Base clock value; ROSSLP disabled; REFOCON = 0x0; // PLLDIV 38; PLLFBD = 0x26; // RND disabled; SATB disabled; SATA disabled; ACCSAT disabled; CORCONbits.RND = 0; CORCONbits.SATB = 0; CORCONbits.SATA = 0; CORCONbits.ACCSAT = 0; } By the way, do you think it will be my DMA setting issues? |
|
|
|
电压探头?测量8MHz的准确度是多少?在晶体上测量频率是有问题的,哪种电容器用于晶体?如果晶体被标记为0.00兆赫,它不能有7.3MHz…
以上来自于百度翻译 以下为原文 voltage probe? how accurate is this for measuring 8MhZ? There could be problems measuring frequencies on a crystal. Which capacitors are used for the crystal? If the crystal is marked with 8.00Mhz it can not be it has 7.3Mhz... |
|
|
|
用示波器测量!检查“任何”是否退出指定TX.的PIN:改变配置。一旦“某物”退出TX,您可以测量CAN比特率(有点困难,但可行)。如果必要的话:调整比特率/定时。检查RX是否也能工作。如果不是:改变配置等PP.如果您能够提供示意图将是很好的。如果TX和RX可以颠倒,你可以调试永恒的…
以上来自于百度翻译 以下为原文
|
|
|
|
我用示波器测量。我对我的收发器TX RX PIN感到困惑,因为我没有看到任何信号出来这两个引脚。我发送的消息是一个标准的CAN消息。
以上来自于百度翻译 以下为原文 I am using oscilloscope for measurement. I am confused about my CAN transceiver TX RX pin because I didn't see any signal coming out these two pins. The message I sent is a standard CAN message. |
|
|
|
“CAN收发器TX RX PIN”=CANH/CANL,还是您单线CAN?一些收发器(你使用哪种收发器?)如果TX信号不合理,防止传输。
以上来自于百度翻译 以下为原文 "CAN transceiver TX RX pin" = CANH/CANL - or do you sport single-wire CAN? Some transceivers (which one do you use?) prevent transmission if the TX signal from the µC is not reasonable. |
|
|
|
我使用的收发信机是MCP2561。我确实看到信号在Chanh和Chanl引脚和备用引脚低,但没有信号在RX和TX引脚。有什么建议?谢谢。
以上来自于百度翻译 以下为原文 The transceiver I using is MCP2561. I did see signal at CAN_H and CAN_L pins and the standby pin is low, but there is no signal at RX and TX pins. Any suggestion? Thanks. |
|
|
|
这有点令人困惑!你能发送一个电路图的草图吗?干杯,艾萨克
以上来自于百度翻译 以下为原文 That’s a bit confusing! Can you send a sketch of a circuit diagram? Cheers, Isaac |
|
|
|
MICCP2561是很有能力的:TX和RX由于接地故障而可能是低的吗?可能需要深入数据表中才能完全理解收发器的操作。
以上来自于百度翻译 以下为原文 The MCP2561 is quite capable: could it be TX and RX are low due to a ground fault detected? Might be you have to dive deeper into the datasheet to completely understand the transceiver's operation. |
|
|
|
你检查了新设备的PPS任务吗?C1RX RPIR2626C1TX RPNR<5:0>- 001110
以上来自于百度翻译 以下为原文 Have you checked the PPS assignments for the new device? C1RX RPINR26 C1TX RPnR<5:0> - 001110 |
|
|
|
只有小组成员才能发言,加入小组>>
5234 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
588浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
670浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 18:14 , Processed in 1.704268 second(s), Total 96, Slave 80 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号