你在这里
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
设计步骤
- Configure two GPIO pins as Input/Output, one for the data line and one for the clock.
- Create an internal clock signal using a CNT/DLY block configured asreset counter。
- Configure a shift register to store incoming data, shown inTechnique: Building a Shift Register。可以用i读取移位寄存器2C。
- 添加pgen以发送传出数据。可以使用i改变pgen内容2C。
- Configure DFF to enable transmission. Connect output to transmit clock signal andOEI / O引脚。
- 添加CNT / DLY块reset counter禁用传输,用clk从DFF输入。连接边缘det块以在设置时钟脉冲的数量后重置DFF。
- 添加CNT / DLY块延迟,输入为外部时钟和输出以启用传输DFF。
- 将外部时钟连接到移位寄存器并将内部时钟连接到PGEN和I / O引脚。
Resources
格林帕克Designer files
- 双向通信(首先接收)GP(6.32 KB)