SPRUIX1B October 2022 – April 2024 TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137
The register lock protection mechanism is added to protect the critical ePWM registers from being corrupted by accidental writes in case of runaway code. The register EPWMLOCK contains the definition of Lock bits (Table 13-14 shows the lock bits and the corresponding registers). This register also has a KEY field; writes to this register succeed only if the KEY field is written with a value of 0xa5a5. Refer to the register descriptions for more details.
Bit Field | Definition | Registers Locked |
---|---|---|
HRLOCK | HRPWM Register Set Lock | HRCNFG, HRPWR, HRMSTEP, HRPCTL |
GLLOCK | Global Load Register Set Lock | GLDCTL, GLDCFG |
TZCFGLOCK | TripZone Register Set Lock | TZSEL, TZDCSEL, TZCTL, TZCTL2, TZCTLDCA, TZCTLDCB, TZEINT |
TZCLRLOCK | TripZone Clear Register Set Lock | TZCLR, TZCBCCLR, TZOSTCLR, TZFRC |
DCLOCK | Digital Compare Register Set Lock | DCTRIPSEL, DCACTL, DCBCTL, DCFCTL, DCCAPCTL, DCAHTRIPSEL, DCALTRIPSEL, DCBHTRIPSEL, DCBLTRIPSEL |