Microchip
直播中

刘飞云

7年用户 180经验值
私信 关注
[问答]

无法选择RC5作为输出

HYALL,环境:Win 10 /MPLAB X V3.40/MCC V3.16/XC8设备:PIC18F26K22i已使用MCC配置MSSP1作为I2C主控器。引脚RC3和放大器RC4分别被指定为SCL&SDA。然而,在引脚管理器网格中,我无法选择RC5作为输出。一条消息弹出我们“无法取消在引脚管理器中的引脚RC5上选择SDO1。对于设置“sdopin”,有多种可选选项,因此自动分位数。无法进行操作。请在MSSP1模块的Easy Setupor Register视图中配置备选的“sdopin”值。“无法在EasySetup&Register视图中找到MSSP1模块中建议的备选分配。我缺少什么?”谢谢

以上来自于百度翻译


      以下为原文

    Hi all,

Environment: Win 10 / MPLAB X v3.40 / MCC v3.16 / XC8
Device: PIC18F66K22

I have used MCC to configure MSSP1 as I2C master. Pins RC3 & RC4 have been assigned as SCL & SDA respectively.

However, in the pin manager grid, I am unable to select RC5 as an output.

A message pops us
"Unable to deselect SDO1 on pin RC5 in the pin manager.
There are multiple, alternative options for the setting "sdopin",
so an automatic decision cannot be made.

Please configure an alternative "sdopin" value in the Easy Setup
or Register view of the MSSP1 module."

Unable to locate the alternative assignment as suggested in the MSSP1 module in both Easy setup & Register view.

What am I missing?

Thanks

回帖(2)

潘千

2019-7-5 13:13:58
RC5绑定到MSSP1模块,用作SPI模式中的SDO引脚。在I2C模式下,数据表不清楚它是否保留给MSSP。然而,在启用MSSP之前选择RC5作为GPIO不会在PIN管理器中产生错误。

以上来自于百度翻译


      以下为原文

    RC5 is tied to the MSSP1 module for use as the SDO pin in SPI mode. It's not clear from the datasheet whether it remains reserved for the MSSP when in I2C mode. However...selecting RC5 as GPIO before enabling the MSSP  produces no errors in the pin manager.
举报

曹光辉

2019-7-5 13:26:08
确认为一个错误。这个问题已被分配IDMCCV3XX-4330。谢谢你,PG318,为解决办法!当MSSP处于I2C模式时,硬件不保留为SDO保留的引脚。由于这个装置已经发布了6年多的时间,所以到现在为止它已经被发现并记录在PIC18F66K22的errata中。

以上来自于百度翻译


      以下为原文

    Confirmed as a bug. This issue has been assigned ID MCCV3XX-4330.
 
Thank you, pg318, for the workaround!
 

 
The hardware does not keep the pin reserved for SDO when the MSSP is in I2C mode. Since this device has been released for 6+ years, it would have been discovered by now and documented in the PIC18F66K22 errata as a silicon bug.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分