I2C使用“BIT Butin”(即手动引脚操作)实现起来非常简单,所以像RTC这样的低速设备可以通过任何两个GPIO引脚来控制。如果使用PPS,是的,如果您还没有设置它只能一次性使用(如果您的PIC具有该特性),那么您可以快速切换引脚。零到PPS寄存器禁用PPS。编辑:零到输出寄存器,0xB111111到输入寄存器,以恢复到默认赋值。
以上来自于百度翻译
以下为原文
I2C is pretty simple to implement using "bit banging" (i.e. manual pin manipulation), so a low speed device like an RTC can be controlled via any two GPIO pins.
If you use PPS, yes, you can switch pins rapidly if you haven't set it to be only doable once (If your PIC has that feature).
No, you write zero to the PPS register to disable PPS.
Edit: Zero to output registers, 0xb111111 to input registers to revert to default assignment.
I2C使用“BIT Butin”(即手动引脚操作)实现起来非常简单,所以像RTC这样的低速设备可以通过任何两个GPIO引脚来控制。如果使用PPS,是的,如果您还没有设置它只能一次性使用(如果您的PIC具有该特性),那么您可以快速切换引脚。零到PPS寄存器禁用PPS。编辑:零到输出寄存器,0xB111111到输入寄存器,以恢复到默认赋值。
以上来自于百度翻译
以下为原文
I2C is pretty simple to implement using "bit banging" (i.e. manual pin manipulation), so a low speed device like an RTC can be controlled via any two GPIO pins.
If you use PPS, yes, you can switch pins rapidly if you haven't set it to be only doable once (If your PIC has that feature).
No, you write zero to the PPS register to disable PPS.
Edit: Zero to output registers, 0xb111111 to input registers to revert to default assignment.
举报