Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: AFE031
Tool/software:
DAC 관련한 활성화 함수코드인데
HAL_afe031_enable_t
이 구조체는
F280049C 고유 레지스터가 아니라
AFE031의 레지스터 관련 내용인데
그냥 구조체 화 해서 데이터를 내보내는 것인지?
저렇게 설정하면 정말로 AFE031의 Enable1 레지스터 비트를 셋트 시키는 것이 맞는거냐?
어떻게 그렇게 말이되는지?
이런 프로그램은 본적이 없다.
어떻게 afe031 내장 레지스터 Enable1 비트를 셋트시킨다는 것인지 제대로 설명 바람.
boostxl_afe031_f28004x_dacmode 펌웨어 에서 dac 출력을 하는데 필요한 신호는 어디서 생성되는 것인지????
MISO핀을 통해 SPI 통신으로 PLC 송신신호를 보내주는 것이냐??? DAC 핀 출력에 대한 신호는 어디에도 없는 것 같은데 GPIO High/Low 출력만 담당하는 것인지???
This is the DAC related activation function code
HAL_afe031_enable_t
This structure is
not the F280049C unique register
but the register related content of AFE031
Is it just a structure that is exported as data?
If I set it like that, does it really set the Enable1 register bit of AFE031?
How does that make sense?
I've never seen a program like this.
Please explain properly how the Enable1 bit of the afe031 built-in register is set.
#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);}

Where is the signal required for DAC output in the boostxl_afe031_f28004x_dacmode firmware generated????
Does it send a PLC transmission signal through SPI communication via the MISO pin??? There doesn't seem to be a signal for the DAC pin output anywhere, so does it only handle GPIO High/Low output???