Other Parts Discussed in Thread: C2000WARE
As the title says, TBPRDHRM definition is missing from f28004x_epwm.h. At least from C2000Ware V1.00.06.00.
JHi
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.
As the title says, TBPRDHRM definition is missing from f28004x_epwm.h. At least from C2000Ware V1.00.06.00.
JHi
I'm guessing you're porting code from an older device that did have a TBPRDHRM register? There were memory map improvements on more recent devices (like the F28004x) that made the mirror register unnecessary. F28004x does not have a TBPRDHRM register--you can just use TBPRDHR instead.
Whitney
I have already added:
EPWM_REGS ->
Uint16 TBPRDHR; // Time Base Period High Resolution Register
Uint16 TBPRD; // Time Base Period Register
=> union TBPRD_REG TBPRDM; // Union of TBPRD:TBPRDHR
struct TBPRD_BITS { // bits description
Uint16 TBPRDHR:16; // 15:0 Extension register for HRPWM Period (8 bits)
Uint16 TBPRD:16; // 31:16 Timebase Period Register
};
union TBPRD_REG {
Uint32 all;
struct TBPRD_BITS bit;
};
JHi