主题中讨论的其他器件:HALCOGEN
大家好、
以下是客户提出的问题、可能需要您的帮助:
我直接将一个 CPU 的输出引脚连接到另一个 CPU 的输入引脚。

希望实现的目标:同时使用 LIN1RX 和 LIN1TX 作为输出引脚。
以下是初始化过程:
linREG1->GCR0 = 1; //Leave LIN in a non-reset state gioSetDirection(linPORT1,0x06U);//According to the above table, use this TX and RX pins as the output state of GIO gioSetPort(linPORT1,0x0); //make it output 0
希望实现以下目标:同时使用 LIN1RX 和 LIN1TX 作为输入引脚。(另一个 CPU)
以下是初始化过程:
linREG1->GCR0 = 1; //Leave LIN in a non-reset state gioSetDirection(linPORT1,0x00U);//According to the above table, use this TX and RX pins as the input state of GIO gioSetPort(linPORT1,0x0); //make it output 0 gioGetPort(linPORT1); //Collect the current state. (The actual value collected is 6, that is, both are high.)
然后、在运行期间、无论输出引脚被设定为什么、输入引脚读取两个高电平的值。
2、 如何初始化它、以便将引脚拉低/拉高?
谢谢、此致
耶鲁李



