This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
我需要使用一些 N2HET 引脚作为 GIO 输入、一些引脚用作输出
我的理解是、我可以使用 gioxxx 函数来操作 N2HET 引脚、即
从示例中、HET 单元只需要进行以下设置:
hetREG2->GCR = 0x01000001; // 打开
hetREG2->PULDIS = 0x00000000; //拉电阻启用
hetREG2->DIR = 0 |(1 << 2)|(1 << 3); //引脚2和3用于输出、其余引脚用作输入
HET 输出切换正常、但无论连接到0或3.3、输入只读为0。
是否需要设置其他配置?