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.

SFR Values are different with the same coding and same MSP430

Other Parts Discussed in Thread: MSP430F1232

Hi

I have the working code sample for the MSP430F1232.I am using MSP430 USB debug interface for debugging.When I go download the code and 

at the start of the the debug, my SFR values are listed below.

IE1=0x02

IFG1=0x00

IE2=0x00

IFG2=0x02

ME2=0x03

But when i used to another MSP430f1232, my SFR values (Shown below) changed and showed that OFIFG=1 which I can not understand why it is set ???

IE1=0x00

IFG1=0x02

IE2=0x00

IFG2=0x02

ME2=0x00

Can anyone explain it to me ?

The code is same for both micro controller and both are MSP430F1232.

  • OFIFG is set because there is an oscillator fault for some reason. This could be caused by a variety of reasons. You don't mention if you are just swapping chips on one board of if you are using multiple boards but both are same device type.

    Things to consider: Bad setup of clock registers, bad Xtal, short on board related to Xtal pins, etc.
  • After a POR (a real reset), the registers should be identical. Especially the IE register should be clear unless your code did explicitly set it.
    Also, OFIFG should be set since after a reset, the crystal should have flagged a fault. Since it is clear in the first snapshot, apparently your code has already stabilized the crystal and cleared the fault flag.
    It looks like you made the first snapshot after your code has already done some modifications like clock init.

**Attention** This is a public forum