嗨,你不能同时为2个这样的函数配置一个PIN。通过PIN功能的方式指示硬件优先级:ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6,其中左边的外设将重写右边的。在运行中,可以改变外围设备的使用。程序,禁用一个外围设备,并启用另一个。例如:禁用SPI:SPICONBITS.ON=0;然后启用UART:U6MODEBITS.ON=1;或者相反的方式。SPI设备将不响应UART6信号,如果所有的芯片选择线保持在禁用状态=高电平。如果有UART。接收器连接到PIN,然后它会变得非常混乱的SPI时钟信令,它会得到垃圾字符,帧错误和中断信号。您可能总是读取信号在PIN TURU PORTG寄存器。迈西尔
以上来自于百度翻译
以下为原文
Hi,
You cannot configure a pin for 2 such functions at the same time.
There is a hardware priority indicated by the way the pin functions are listed :
ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6 where peripherals to the left will override those to the right.
You may change the use of peripherals in the running program, by disabling one peripheral, and enabling another.
Example: disable SPI: SPICONbits.ON = 0;
and then enable UART: U6MODEbits.ON = 1;
Or the opposite way around.
SPI devices will not respond to UART6 signals if all Chip Select lines are kept in the Disable state = High level.
If there is a UART receiver connected to the pin, then it will become mighty confused by SPI clock signaling, it will get garbage characters, framing errors and break signals.
You may always read the signal on the pin thru PORTG register.
Mysil
嗨,你不能同时为2个这样的函数配置一个PIN。通过PIN功能的方式指示硬件优先级:ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6,其中左边的外设将重写右边的。在运行中,可以改变外围设备的使用。程序,禁用一个外围设备,并启用另一个。例如:禁用SPI:SPICONBITS.ON=0;然后启用UART:U6MODEBITS.ON=1;或者相反的方式。SPI设备将不响应UART6信号,如果所有的芯片选择线保持在禁用状态=高电平。如果有UART。接收器连接到PIN,然后它会变得非常混乱的SPI时钟信令,它会得到垃圾字符,帧错误和中断信号。您可能总是读取信号在PIN TURU PORTG寄存器。迈西尔
以上来自于百度翻译
以下为原文
Hi,
You cannot configure a pin for 2 such functions at the same time.
There is a hardware priority indicated by the way the pin functions are listed :
ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6 where peripherals to the left will override those to the right.
You may change the use of peripherals in the running program, by disabling one peripheral, and enabling another.
Example: disable SPI: SPICONbits.ON = 0;
and then enable UART: U6MODEbits.ON = 1;
Or the opposite way around.
SPI devices will not respond to UART6 signals if all Chip Select lines are kept in the Disable state = High level.
If there is a UART receiver connected to the pin, then it will become mighty confused by SPI clock signaling, it will get garbage characters, framing errors and break signals.
You may always read the signal on the pin thru PORTG register.
Mysil
举报