Bi-directional Communication (Receive First)

Bi-directional Communication (Receive First)

Communication Protocols Application

Bi-directional communication systems are critical in applications where board area is scarce, or limited contacts are used to connect between devices (for example, a wearable and charger). A receive-first design indicates that this device will always be enabled second in the transaction.

配料

  • Any GreenPAK with OE pins
  • No other components are needed

格林帕克Diagram

设计步骤

  1. Configure two GPIO pins as Input/Output, one for the data line and one for the clock.
  2. Create an internal clock signal using a CNT/DLY block configured asreset counter
  3. Configure a shift register to store incoming data, shown inTechnique: Building a Shift Register。可以用i读取移位寄存器2C。
  4. 添加pgen以发送传出数据。可以使用i改变pgen内容2C。
  5. Configure DFF to enable transmission. Connect output to transmit clock signal andOEI / O引脚。
  6. 添加CNT / DLY块reset counter禁用传输,用clk从DFF输入。连接边缘det块以在设置时钟脉冲的数量后重置DFF。
  7. 添加CNT / DLY块延迟,输入为外部时钟和输出以启用传输DFF。
  8. 将外部时钟连接到移位寄存器并将内部时钟连接到PGEN和I / O引脚。

Resources

格林帕克Designer files