• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 不想要定时器上的外部复位

    嗨,我用的是28引脚SOIC PIC18F27 K40,但我不确定我的问题只是与这个芯片有关。如果我想在MCC或“自由运行周期”模式中使用“定时器翻转脉冲”控制模式的定时器(我认为它们都是相同的),并且我不希望外部重置因为时间RS是软件控制的,使用中断,我可以将TXRST寄存器设置为数据表中的“保留”设置之一,以使问题消失吗?在我的芯片上定时器是2, 4和6。如果TXRST寄存器设置为0x00,那么外部复位源由PPS设置。这不是我想要的。最近的一个解决方案来了我的方式,然后设置引脚的东西不存在于我的芯片上,但存在于最大的版本的家庭,端口D这是一个解决办法,将无法工作在更大版本的家庭44针TQFP!我问这个问题是因为我相信我需要升级到芯片的TQFP版本。我不想在我的计时器2, 4或6(我的ADC)上使用外部重置!!!)我该怎么做?谢谢,史提夫 以上来自于百度翻译 以下为原文 Hi,I'm using a 28-pin SOIC PIC18F27K40 but I'm not sure my question is just related to this chip. If I want to use a timer in 'roll over pulse' control mode on the MCC or 'free running period' mode in the datasheet (I think they are both the same) and I do not want an external reset because the timers are software controlled and use interrupts, can I set the TxRST register to one of those 'reserved' settings in the datasheet to make the issue go away?The timers are 2, 4 and 6 on my chip. If the TxRST register is set to 0x00 then the external reset source is set by PPS.This is not what I want.A recent solution came my way by then setting the pin to something that doesn't exist on my chip but exists on the largest version of the family, a Port D.This is a workaround that won't work on the larger version of the family the 44-pin TQFP !! I am asking the question because I believe I'll need to move up to the TQFP version of the chip.I do not want to use an external reset on my timers 2, 4 or 6 (and my ADC for that matter!!).How do I do this? Thanks,Steve

    2019-02-14 11:47

  • 18f67k40 eusart1 Rx工作不能得到RC1IF标志来设置

    我使用所有5个EUSAT在18F67 K40,但我有麻烦使RX1工作。所有的EUSTART运行异步模式,速度设置为9600波特,1和4都使用PORTC。我已经在RX1和RX4之间交换了引脚来测试硬件。当EuSART4接收数据时,它工作得很好,所以它不是PIN配置或故障问题。TX1和TX4无论连接到哪一个引脚都工作良好。唯一不起作用的是RX1-我不能得到RC1IF标志来设置,因此它不能在数据中计时。在USAART1和EUSATAR4之间的配置是相同的,所以我不能想到RX1不起作用的任何理由。 以上来自于百度翻译 以下为原文 I use all 5 eusarts on 18f67k40 but am having trouble getting Rx1 to work. All eusarts run async mode with speed set to 9600 bauds on 1 and 4 which both use PortC.I have swapped pins between Rx1 and Rx4 to test the hardware. When eusart4 receives data it works fine so it isn't a pin configuration or fault problem. Tx1 and Tx4 work fine whichever pin they are connected to. The only thing that doesn't work is Rx1 - I cannot get the RC1IF flag to set so it cannot be clocking in data. The configuration is identical between eusart1 and eusart4 so I cannot think of any reason for Rx1 not to function.Does anyone with more experience of PIC eusarts have any suggestions please.

    2018-09-20 16:40