Other Parts Discussed in Thread: CONTROLSUITE
Hello,
I am new to coding on TI devices. I am currently looking at the adc_soc-epwm_cpu01 example for the delfino c2000 F28377S Launchpad. I think I understand the interrupt pattern; how the ePWM periodically triggers SOC0, and an interrupt stores the value in a buffer. However, I am confused by two lines and what they actually mean:
//enable PIE interrupt
PieCtrlRegs.PIEIER1.bit.INTx1 = 1;
//sync ePWM
EALLOW;
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
These lines also give me consistency errors when I try and use a DAC. I am modeling the DAC usage off of controlSUITE examples as well.
Can someone please explain what these commands are doing. Bonus for any tips forconfiguring an ADC with the DAC. I am using CCSv6 as well.
Best,
Conner Shoop