| ??? 05/04/00 05:45 Read: times |
#2455 - RE: how reset hardware with Interrupts? |
Folks,
here's a software reset triggered by a command over GPIB. Only look at the inline assembler. This routine is part of a command processor which checks incoming GPIB strings. The problem is that this is a part of the GPIB interrupt routine and a RETI must be used if you dont want to "wind up" the stack each time this command forces a reset. Simple and working. *g* //************** // Command "RSET" //******************************************* // Restart System //******************************************* if ( strncmp(Befehl, "RSET", 4) == 0 ) { #pragma asm ; Restart System ;---------------- pop ACC ; remove old return adress from stack pop ACC mov A,#0 ; put RESET adress on stack push ACC push ACC reti ; end GPIB interrupt and restart #pragma endasm } |
| Topic | Author | Date |
| how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
| RE: how reset hardware with Interrupts? | 01/01/70 00:00 | |
RE: how reset hardware with Interrupts? | 01/01/70 00:00 |



