Shop OBEX P1 Docs P2 Docs Learn Events
M register not restored on SX28 interrupt — Parallax Forums

M register not restored on SX28 interrupt

dnaddordnaddor Posts: 26
edited 2007-02-16 02:13 in General Discussion
Sometimes, after an interrupt, the M register does not change back to the value it had before the interrupt. I've attached a really simple program that demonstrates this.

Can anyone explain what might be causing this?

Thanks!

Comments

  • pjvpjv Posts: 1,903
    edited 2007-02-16 01:23
    Sure...

    In an SX 18/20/28 the M register is NOT saved/restored.

    In an SX48/52 it IS saved/restored.

    Cheers,

    Peter (pjv)
  • dnaddordnaddor Posts: 26
    edited 2007-02-16 02:13
    Thank you! I never noticed the difference in the datasheet, but there it is!
Sign In or Register to comment.