Hi,
I need to work with an existing product that uses MSP430F437. The initializations include this routine:
init_svs:
mov.b #0x10,&SVSCTL
again:
bit.b #0x0,&SVSCTL
jne again
bit.b #0x0,&SVSCTL
jne again
bit.b #0x0,&FLL_CTL0
jne again
mov.b #0x18,&SVSCTL
ret
I cannot figure out what it is doing. The original author cannot be reached. Based on other parts of the code, he/she seems to be very proficient.
Is or was there a feature/bug in the SVS of MSP430F437 that I am ignorant about?
Could “bit.b #0x0, &SVSCTL” ever clear Z flag?
--OCY