 |
 |
| View previous topic :: View next topic |
| Author |
Message |
asmallri
Joined: 12 Aug 2004 Posts: 1680 Location: Perth, Australia
|
|
Posted: Wed Dec 17, 2008 9:50 am |
|
|
| FvM wrote: |
Furthermore, your interrupt service function looks somewhat dubios. Interrupt disable/enable has no effect, cause global interrupts are disabled during execution of the interrupt, if not reenabled explicitely. |
Global interrupts are not disabled during execution of an interrupt. Higher priority interrupts can interrupt a lower priority interrupt handler. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
 |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Dec 17, 2008 2:56 pm |
|
|
| Quote: | | With #BUILD(STACK=0x0802:0x881) I was able to move my stack into another position. | Very good. I didn't yet notice this option.
| Quote: | | Global interrupts are not disabled during execution of an interrupt. Higher priority interrupts can interrupt a lower priority interrupt handler. | Correct, strictly spoken. Practically, without assigning new priorities, all PIC24 user interrupts have equal, default priority and don't interrupt each other. Global interrupt disable is used as a function name by CCS C, but doesn't exist in PIC24. The CPU priority is set to highest user level instead. |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|