3.2 Transferring Data from the Transmitter to the Receiver
To send the data from the P9242-R3 to the P9221-R3, the external microcontroller (MCU) on the transmitter loads data into the user outgoing
data registers of the P9242-R3 and triggers the communication by writing to the Command register of the P242-R3 via the I2C bus. The P9221-
R3 receives the data and interrupts the external MCU on the receiver board. The external MCU on the receiver board reads the user incoming
data registers via the I2C bus after it receives the interrupt. More details on the data transfer algorithm are in the P9221-R3 and P9242-R3
datasheets.
There are no external MCU’s on the receiver and transmitter evaluation boards in the WP15WBD-RD Evaluation Kit. Instead, the IDT I2C Lite
software and USB-to-I2C dongle are used to simulate an external MCU. The USB-to-I2C dongle does not have the capability to generate
interrupts for the IDT I2C Lite software, so it is necessary to poll the Data Received Status register to check for incoming data or probe the
interrupt pin on the P9221-R3 (pin 2 on the J1 header on the P9221-R3-EVK board) using an oscilloscope.
Follow these procedures to transfer the data from the transmitter board to the receiver board:
1. Power up the transmitter and receiver evaluation boards by following the steps in section 1.3.
2. Verify that the green LEDs (identified in Figure 2) on both transmitter and receiver boards are illuminated indicating that devices are in
the power transfer phase. Bi-directional communication is enabled only when the devices are in the power transfer phase.
3. Connect the USB-to-I2C dongle to the computer’s USB port and connect the I2C header of the dongle to J2 on the P9242-R3-EVK board
as shown in Figure 4. The black wire on the dongle should be on the GND pin of the J2 header.
4. Open the IDT I2C Lite GUI by going to the Windows start menu: IDT GUI Application IDT I2C Lite. See Figure 9.
5. Verify the proper USB dongle connection by checking the USB icon status in the top right corner of the GUI. When the USB dongle is
properly connected, the USB icon should be bright blue and the bottom left corner should indicate “IDT dongle connected.”
6. Select “P9242 TX” from the “Device” drop-down menu in the GUI.
7. Verify that the proper P9242-R3-EVK connection is recognized by the GUI by checking the selected device icon in the top right corner of
the GUI. When the P9242-R3-EVK evaluation board is properly connected, the icon should be bright blue and the message in the middle
of the bottom status bar in the GUI should indicate “P9242 connected.”
8. Click “Open Script” from the “File” menu in the top left corner of the GUI, and navigate to the “Send 2 bytes from Tx to Rx” script. This
script has all the I2C commands required to send the data from the P9242-R3 to the P9221-R3. The script can be customized by using
the “+” and “–” buttons in the GUI.
9. Click the “Run all” button to run all the I2C commands in the script to send the data from the P9242-R3 to the P9221-R3.
10. If using only one computer, gently disconnect the dongle I2C header from the transmitter board, and connect the I2C header to J1 on the
P9221-R3-EVK receiver board as shown in Figure 3. The black wire on the dongle should be on the GND pin of the J1 header.
If using two computers, follow the subsequent steps on the second computer to read the data.
11. Select “P9221 RX” from the “Device” drop-down menu in the GUI.
12. Verify the proper P9221-R3-EVK connection to the GUI by checking the selected device icon in the top right corner of the GUI. When the
P9221-R3-EVK evaluation board is properly connected, the icon should be bright blue and the bottom status bar in the GUI should
indicate “P9221 connected.”
13. Click “Open Script” from the “File” menu in the top left corner of the GUI, and navigate to the “Read 2 bytes of data on Rx” script. This
script has all the I2C commands required to read data coming into the P9221-R3. The script can be customized by using the “+” and “–”
buttons in the GUI.
14. Click the “Run all” button to run all the I2C commands in the script to read the data coming into the P9221-R3.
15. Verify that the incoming data on the P9221-R3 matches the P9242-R3 outgoing data.