Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE, LAUNCHXL-F28379D
I am running the code "controlSUITE\development_kits\TMDSIDDK_v2.0 \IDDK_PM_Servo_F2837x" on the
| LAUNCHXL-F28379D |
The subrouting void cmpssConfig(volatile struct CMPSS_REGS *v, Uint16 Hi, Uint16 Lo) is used to initialize the comparator modules 1 and 3. By inspection, all registers appear to initialize correctly except for the folwing:
v->DACHVALS.bit.DACVAL = Hi; // Set DAC-H to allowed MAX +ve current
v->DACLVALS.bit.DACVAL = Lo; // Set DAC-L to allowed MAX -ve current
No matter how I try to initialize these (I tried to hand code...), the same values appear in the registers namely
DACHVALA 0x0D55 CMPSS High DAC Value Active Register [Memory Mapped]
DACLVALS 0x02AA CMPSS Low DAC Value Shadow Register [Memory Mapped]
These values are appear irrespective of the values used for Hi and Lo.
thanks