Other Parts Discussed in Thread: AFE031
Dear colleagues,
I'm trying to make PLC communication between two PLC modems based on AFE031. I connected everything in accordance to TI app note document sboa130a.pdf. I succesfully configured IC via SPI interface and also successfully used DAC to send the data (When I write something in DAC the voltage which represent written data is present on TX_PGA).
After that, next step is to receive the data from AFE031 on microcontroller ADC. There I have some problems. I configuredAFE031 in RX calibration mode, which means that all the data I'm sending to AFE031 DAC are bridged to the AFE031 receiver module. The problem is that I don't understand how to synchronize transmitted and received data.
I will write some questions I have below:
1) When is the time to sample received data on the microcontroller ADC? AFE031 doesn't have an interrupt output which will signal that some new data is ready to be received via microcontroller ADC input. How to know when is the time to expect the data which is sent from another modem in network?
2) How to interpret the data? Do I have to read the voltage on PGA2_OUT and make conversation to digital form? The number I'm geting after the ADC is the number I sent, am I correct? For example, I want to send 0xFF (255 Decimal). If we except gain and if I'm using 10bits resolution of ADC and 3.3V AGND, the voltage which I will get on ADC input is 3.3V / 1024 * 255 = 0.821V, is this calculation is correct?
I will give you some more details about what I'm doing.
REGISTERS:
ENABLE1 0x0127 //enable TX, RX, DAC, PA
ENABLE2 0x0307 //enable ZC, REF1, REF2
GAIN SELECT 0x0232
CONTROL1 0x0402 //RX calibration mode Control 1 reg
After configuring the AFE031 as is shown above I read and checked the values of registers, and they are stored correctly.
Then I toggle DAC pin of AFE031 to HIGH state, and send the data over SPI in zero bit mode. I always sending 2x10 bits as you can see on given images.
Below you can find the signals captured on SCLK (pin 3) and RX_PGA2 (pin 20) when I'm sending 0x1111, 0x5522, 0x0000, 0xFFFF.
Sending 0x1111
Sending 0x5522
Sending 0x0000
Sending 0xFFFF
The signal on RX_PGA2 (blue one) is a bit strange for me. How is this signal in conjunction with the signal I sent?
I hope that I give enough information's. If you need some more details, do not hesitate to ask me.
Best regards.




