How can I install nested interrupts? With the key-word __irq is that not possible.
Bernd
You need to explain yourself, I have no idea what you mean.
Also yso state 'non-specific' so I can only guess what you refer to with "the key-word __irq"
Is this about assemble. compile, simulate or debug?
Erik
no I've one ISR
void isr_function(void) __irq
If I use this keyword at this position - I think that I'm not able to have nested interrupts.
best regards Bernd
Bernd, there is a REAL problem here, you do not seem to understand
more words do not make you seem stupid, they make you seem clear
1) what compiler ('51 - '166 - ARM) ? 2) what uC ? 3) what isthe source of the interrupts ?
sorry for the too little words I use to talk about my problem.
1) what compiler ('51 - '166 - ARM) ? MDK ARM uvision3
2) what uC ? AT91SAM7S321
3) what isthe source of the interrupts ? timer interrupt for example; I've more interrupt sources (like usart, timer (2x))
So if the controller is in one of these ISRs I want to be able to get another interrupt (e.g. from the timer).
NOW somebody may be able to answer you.
I have been away from the ARM for a while so I'll abstain. I got involved because you entered MCU: none.
add marcos IENABLE at start of --irq function and at the end use IDISBALE and copy the macros in your header file.
/* Macros for Interrupt Nesting */ #define IENABLE /* Nested Interrupts Entry */ \ __asm { MRS LR, SPSR } /* Copy SPSR_irq to LR */ \ __asm { STMFD SP!, {LR} } /* Save SPSR_irq */ \ __asm { MSR CPSR_c, #0x1F } /* Enable IRQ (Sys Mode) */ \ __asm { STMFD SP!, {LR} } /* Save LR */ \
#define IDISABLE /* Nested Interrupts Exit */ \ __asm { LDMFD SP!, {LR} } /* Restore LR */ \ __asm { MSR CPSR_c, #0x92 } /* Disable IRQ (IRQ Mode) */ \ __asm { LDMFD SP!, {LR} } /* Restore SPSR_irq to LR */ \ __asm { MSR SPSR_cxsf, LR } /* Copy LR to SPSR_irq */ \
Hello Bernd Schuster,
Please see Support Knowledgebase article http://www.keil.com/support/docs/3353.htm for more information about nested interrupts with armcc compiler.
Best regards, Martin Guenther
Does anyone have a routine that will convert UTC time to Local time according to latitude position given from GPS Nema data. Looking for something in assembly as that is what I have already written my code in. Help is always greatly appreciated. I suppose I would need to create some sort of table of coordinates with the time differences ie... EST = UTC-5 and also convert 24 hour format to 12 hour and correct for the the date if UTC is ahead by a day from EST. Such as UTC is 01:00:00 but EST is 01:00:00 - (minus) 05:00:00, which would put UTC ahead one day.
Thanks, Alain
First off: latitude is the distance north/south, so I assume that you mean longitude.
The problem is that the time zones doesn't follow exactly the longitude - they follow country borders instead.
If they did follow longitude, you would only need to check the longitude and know that there are a 15-degree difference between every time zone (24*15 = 360 degrees).
If you look at the following link, it will be obvious why the GPS coordinate is hard to use:
http://www.worldtimezone.com/
By the way - why post time-zone questions in a thread about interrupts? Because it takes too long time to create a thread of your own?