| Details | Message |
|---|
Read-Only Author Bernd Schuster Posted 4-Dec-2007 15:14 GMT Toolset None |  nested interrupts Bernd Schuster How can I install nested interrupts? With the key-word __irq is that not possible. Bernd |
|
Read-Only Author erik malund Posted 4-Dec-2007 15:18 GMT Toolset None |  HUH? erik malund 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 |
|
Read-Only Author Bernd Schuster Posted 4-Dec-2007 15:22 GMT Toolset None |  RE: HUH? Bernd Schuster 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 |
|
Read-Only Author erik malund Posted 4-Dec-2007 15:51 GMT Toolset None |  RE: HUH? erik malund 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 ? Erik |
|
Read-Only Author Bernd Schuster Posted 4-Dec-2007 15:57 GMT Toolset None |  RE: HUH? Bernd Schuster 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). best regards Bernd |
|
Read-Only Author erik malund Posted 4-Dec-2007 16:20 GMT Toolset None |  RE: HUH? erik malund 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. Erik |
|
Read-Only Author Umesh Maurya Posted 6-Dec-2007 11:28 GMT Toolset None |  RE: HUH? Umesh Maurya |
|
Read-Only Author Umesh Maurya Posted 6-Dec-2007 11:31 GMT Toolset None |  RE: HUH? Umesh Maurya 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 */ \ |
|
Read-Only Author Martin Günther Posted 6-Dec-2007 12:39 GMT Toolset None |  RE: HUH? Martin Günther 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 |
|
Read-Only Author Alain Beng Posted 6-Dec-2007 13:23 GMT Toolset None |  How to convert GPS UTC Time to Local time in Assembly Alain Beng 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 |
|
Read-Only Author Per Westermark Posted 6-Dec-2007 14:07 GMT Toolset None |  RE: How to convert GPS UTC Time to Local time in Assembly Per Westermark 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/ |
|
Read-Only Author Per Westermark Posted 6-Dec-2007 14:09 GMT Toolset None |  RE: How to convert GPS UTC Time to Local time in Assembly Per Westermark 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? |
|