This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
I want to interface F28069 control card with AFE031 on TMDSPLCKIT-V3 Texas Instruments kit.
I want to do similar work as what is done in project boostxl_afe031_f283004x_dacmode.c . I have few queries mentioned below:
1.While going through this I didn't get how we get these values.
Uint32 GAIN_SPACE_x1024 = 676; // SPACE Gain x 1024
Uint32 GAIN_MARK_x1024 = 558; // MARK Gain x 1024
Uint32 DAC_CODE_OFFSET = 64;
Also does these value remain same while using f28069 control card with AFE031?
2. In example boostxl_afe031_f28004x_dacmode.c there is a function HAL_afe031_dacEnable() .
It is defined as follows:
#define HAL_afe031_dacEnable() \
{HAL_afe031_reg_s.enable.bits.DAC = 1; \
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
DELAY_US(2); \
HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DAC_LEN); \
GPIO_WritePin(8, 1);}
then function HAL_afe031_cfgWdLen(HAL_AFE031_SPI_DAC_LEN) is being called wthin this and HAL_AFE031_SPI_DAC_LEN value is set equal to 10. This function is defined as follows :
void HAL_afe031_cfgWdLen(UINT16 len)
{
HAL_spi_cfgWdLen(len);
}
Now I want to use MCBsp in case of f28069 control card. Could you please help what changes should I make in this function?
3. Also there are two mode defined in task
#define GPIO_TEST_MODE 0
#define GPIO_TX_MODE 10
what are these two modes where can I finnd the definition of these modes and how these can be configure for f28069 case?
Hi Ankur,
Did you get the chance to look at the firmware for the PLCKITV3 kit, per Matt's reply in the below thread? I do think evaluating with that will be the easiest way to interfacing the F2806x with the AFE03x.
1. I'd suggest looking at the UG for the newer BOOSTXL-AFE031-DF1 evaluation module. It explains some of the additional features of the firmware:
http://www.ti.com/tool/BOOSTXL-AFE031-DF1#technicaldocuments
2. You'll have to make the McBSP SPI interface work the same as the SPI interface for the F2837x and F28004x devices. I'd suggest looking at the C2000ware McBSP examples:
C:\ti\c2000\C2000Ware_2_01_00_00\device_support\f2806x\examples\c28\mcbsp_spi_loopback
3. The BOOSTXL-AFE031-DF1 UG answers this I believe.
Best,
Kevin
Dear Kevin,
Thanks for the response.
I was not able to connect Matthew for long and that issue has been marked as resolved. Is it possible to connect on the same now? Or what should I do now to connect with Matthew regarding my previous thread.
Best Regards
Ankur
Hi Ankur,
Matt is out and unavailable right now. Let me see if there is someone else who can provide access to the PLCKITV3 firmware.
If not you'll have to wait until next week when Matt's back.
Best,
Kevin
Hi Ankur,
I sent you a request to connect off-forum about this. Please accept my request when you get the chance.
Best,
Kevin