Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
M register not restored on SX28 interrupt — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
General Discussion
M register not restored on SX28 interrupt
dnaddor
Posts:
26
2007-02-16 00:45
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!
src
src
ITest.src
1K
ITest.src
1.4K
Comments
pjv
Posts:
1,903
2007-02-16 01:23
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)
dnaddor
Posts:
26
2007-02-16 02:13
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.
Comments
In an SX 18/20/28 the M register is NOT saved/restored.
In an SX48/52 it IS saved/restored.
Cheers,
Peter (pjv)