Part Number: TMS320F28069
Other Parts Discussed in Thread: AFE031, BOOSTXL-AFE031-DF1, C2000WARE
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?