??? 10/17/04 10:20 Read: times |
#79445 - RE: hard- or software problem? Responding to: ???'s previous message |
There are a couple of registers that I also use in the
interrupt indeed, ie: a,r0 (@r0). What I do is: At the start of the program I "init" the chip, I configure the interrupt and set the the stack at 30h, address space below 30h is variable space for me. At the start of the interrupt I push the Accu on the stack, copy r0 to a and pushes Accu on the stack again. After the interrupt (just before RETI) I pop back accu and store that in R0 and then I pop back accu once more. Other addresses aren't used in the interrupt. |
Topic | Author | Date |
8052 newbie: int0 problems | 01/01/70 00:00 | |
RE: 8052 newbie: int0 problems | 01/01/70 00:00 | |
Pull-ups at P0 lines? | 01/01/70 00:00 | |
RE: layout / wiring | 01/01/70 00:00 | |
RE: layout / wiring | 01/01/70 00:00 | |
RE: layout / wiring | 01/01/70 00:00 | |
RE: layout / wiring | 01/01/70 00:00 | |
RE: layout / wiring | 01/01/70 00:00 | |
RE: 8052 newbie: int0 problems | 01/01/70 00:00 | |
Real name | 01/01/70 00:00 | |
RE: Real name | 01/01/70 00:00 | |
RE: 8052 newbie: int0 problems | 01/01/70 00:00 | |
RE: hard- or software problem? | 01/01/70 00:00 | |
RE: hard- or software problem? | 01/01/70 00:00 | |
RE: hard- or software problem? | 01/01/70 00:00 |