Part Number: MSP430FR5994
Other Parts Discussed in Thread: ENERGYTRACE
Tool/software:
It appears that LOCKLPM5 bit does NOT apply to PJSEL0.4 (and PJSEL.5, maybe).
I can't find any statement about that in the documentation (UG revP April 2020).
What I find, which is not ambiguous at all is:
12.3.1 Configuration After Reset
After a BOR reset, all port pins are high-impedance with Schmitt triggers and their module functions
disabled to prevent any cross currents.
However, my investigation shows otherwise.
Upon reset, BEFORE clearing LOCKLPM5 bit, my code starts the LFXT: it sets PJSEL bits, clears fault flag and asserts the flag is well cleared. Tracing all of this in the debugger confirms it all works.
It should not because LOCKLPM5 is STILL set. Pins functions should not be applied until it is cleared. Right?
Not clearing LOCKLPM5 bit is my mistake and I am very much puzzled that LFXT runs fine. Remaining of my application relies on a proper 32.768kHz clock and it behaves ok. LFXT really is running ok!
To double check the behavior, I commented out PJSEL configuration. LFXT does not start. LFXT fault flag is set again automatically upon clearing, just as it should.
So it appears changes to PJSEL.4 and PJSEL.5 DO apply even while LOCKLPM5 bit is set.
What do you think?
Regards,