完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图进入Microchip的错误报告系统,但它似乎是无序的。当配置正常的EUSAT时,没有任何东西从PIN RC4(默认为TX1)出来。当它应该发送数据时它正好处于高位。我必须用PPS:RC4PPS= 0x0F重定向TX到PIN;我假设THA。如果PPS寄存器是单独的,则所有的PIN都将具有默认功能,否则遗留代码将被破坏。作为旁注,数据表引脚分配表显示了名为TX2/RX2的PIN。在该PIC中没有第二个EUSAT的寄存器。
以上来自于百度翻译 以下为原文 I tried to acces Microchip's bug reporting system, but it seems to be out of order. When configuring the EUSART in the normal way nothing comes out of pin RC4 (default for TX1). It just sits high when it should be sending data. I had to redirect TX to the pin using PPS: RC4PPS = 0x0F; I would assume that all pins would have their default function if the PPS registers are left alone, otherwise legacy code will be broken. As a side note - the datasheet pin allocation table shows pins named TX2/RX2. There are no registers for a second EUSART in this PIC. |
|
相关推荐
10个回答
|
|
当一个“家族”中有许多相似的部分时,在微芯片数据表中非常典型的“携带”错误。作为猜测,您已经正确地禁用了RC4上的模拟功能。
以上来自于百度翻译 以下为原文 Very typical "carry over" error in Microchip datasheets when there are many similar parts in a part "family". As a guess you have correctly disabled the analog function on RC4? |
|
|
|
没有硅臭虫。所有输出的PPS默认为0x00,这是LAT位。您总是必须为外围输出初始化PPS,即使输入使用默认值,也应该对输入进行初始化。这个设计决定你可能不同意,但它肯定不是一个bug。
以上来自于百度翻译 以下为原文 There's no silicon bug. PPS default for all outputs is 0x00 which is the LAT bit. You always have to initialize PPS for peripheral outputs, and should for inputs even if using defaults. This design decision you may not agree with, but it is certainly not a bug. |
|
|
|
虽然24F PIC部分数据表确实指定了这一点(我已经使用了很多年),但我不确定这是否在18F数据表(至少部分)中清楚地说明。表(在这一部分,表5-15中)实际上没有列出0x00值的输出路由(它在0x01停止)。RXYPPS寄存器的POR值显示为全部零(0),但我不知道0x00值与LATX寄存器相关联的任何地方,尽管从PPS操作描述中的一些看来这是直观的。也许在以后的数据表修订中要澄清一点?这肯定会让用户不熟悉PPS操作……谢谢你指出这一点(我错过它完成),我相信OP和其他人会发现它很有帮助。
以上来自于百度翻译 以下为原文 While the 24F pic part datasheets do specifiy this (I have used them for many years) I am not sure if this is stated clearly in the 18F datashets (at least some of them). The tables (in this part case - table 15-5) actually does not list the output routing for the 0x00 value (it stops at 0x01). The POR value of the RxyPPS registers is shown as all zeros (0) but I don't see anywhere that the 0x00 value is associated with the LATx registers, although this would seem intuitive from some of the PPS operation descriptions. Maybe a point to be clarified in later revisions of the datasheets? This can certainly make it difficult for users not familiar with the PPS operation.... Thanks for pointing this out (I missed it completley), I am sure the OP and others will find it helpful. |
|
|
|
那么,数据表需要澄清,这个芯片偏离了“标准”,如何正确地使用它。此外,MCC在16F15323中设置EUSAT时不初始化RC4PPS。在描述启用发射机的步骤的部分中,它读到:“设置SPEN位。Trc1STA寄存器使EUSAT和自动配置TX /CK I/O引脚作为输出。“在描述RC1STA的页面上,注释1读到:”EUSAT模块根据需要自动改变三态引脚以驱动。将TX/CK和RX/DT相关联的TIS位配置为1。“配置TX/CK作为输入是很奇怪的。”通过数据表扩展的“剩饭”没有帮助。
以上来自于百度翻译 以下为原文 Well, then the datasheet needs to clarify that this chip deviates from the "standard" and how to properly use it. Furthermore, MCC does not initialize RC4PPS when setting up the EUSART in the 16F15323. In the section that describes the steps to enable the transmitter it reads: "Setting the SPEN bit of the RC1STA register enables the EUSART and automatically configures the TX/CK I/O pin as an output." On the page describing RC1STA Note 1 reads: "The EUSART module automatically changes the pin from tri-state to drive as needed. Configure the associated TRIS bits for TX/CK and RX/DT to 1." It seems odd to configure TX/CK as an input. "Leftovers" spread out through the datasheet are not helpful. |
|
|
|
强烈同意数据表在所有设置上都应该是显式的。我已经习惯于在PIC数据表上进行字里行间的阅读,现在我总是在Fab之前建立一个原型并至少测试低级代码。至少在PIC数据表中发现这么多的草率是很烦人的,但是这些部分工作起来,所以我不断地回来。
以上来自于百度翻译 以下为原文 Agree strongly that the datasheet should be explicit on all settings. I’ve gotten used to reading between the lines on PIC datasheets, and now I always build a prototype and test at least low-level code before fab. It’s annoying at least to find so much sloppiness in PIC datasheets but the parts work so I keep coming back. |
|
|
|
我在8051和现在使用PICS的时候咬牙切齿,因为我的客户想要使用最便宜的MCU,而Microchip有很多可以提供的,但是我很想从那些日子里得到示例性的数据表。然后,即使在不清楚的数据表浪费时间的情况下,我也会得到报酬,所以我不是真的抱怨……赢了。K:
以上来自于百度翻译 以下为原文 I cut my teeth on the 8051 and nowadays use PICs because my customer wants to use the cheapest MCUs, and Microchip has plenty to offer, but I long for the exemplary datasheets from those days. Then again, I get paid even when wasting hours with unclear datasheets, so I am not really complaining... wink: |
|
|
|
|
|
|
|
|
|
|
|
Bitflipper,在你的第二个职位被一个版主批准之前,没有更多的职位。你只有在两个职位获得批准后才能自由发表。
以上来自于百度翻译 以下为原文 Bitflipper, there's no point making more posts until your SECOND post has been approved by a moderator. You can only post freely after you have had two posts approved. |
|
|
|
抱歉,因为“提交”按钮在按下之后没有消失,我忘了我已经按下它并按下它两倍,为好测量。
以上来自于百度翻译 以下为原文 Sorry, as the "Submit Post" button did not disappear after pressing it I forgot I had pressed it and pressed it twice more, for good measure. |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 02:21 , Processed in 1.441705 second(s), Total 96, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号