We are using MSP430F5xx_6xx driverlib Version 2.91.13.01 for MSP430F5510. We need to generate a BOR from S/W but we noticed that the PMM_trigBOR API does not exist on this device even though the associated PMM register bits exist in H/W.
Questions:
- Is it ok to use PMMCTLO:PMMSWBOR to trigger a BOR from S/W?
- Assuming yes to 1, why is the driverlib PMM_trigBOR() API missing for this device?
- Assuming yes to 1, which of the following would be the proper implementation
HWREG16(PMM_BASE + OFS_PMMCTL0) |= PMMSWBOR;
HWREG8(PMM_BASE + OFS_PMMCTL0_H) = PMMPW_H; HWREG8(PMM_BASE + OFS_PMMCTL0) |= PMMSWBOR; HWREG8(PMM_BASE + OFS_PMMCTL0_H) = 0x00;
The driverlib source for MSP430FR5xx_6xx implements the function as shown in 3b but I'm thinking a 16bit write as shown in 3a should be sufficient.
Thanks