Update on the things I've tried.
@Ridgeglider as you stated yourself in an earlier post :
One other thing to be careful of is to insure that in the INTERRUPT( Addr_of_ISR, 0x2n00) call that the, 'n' must not be lower than the LEVEL specified in the corresponding SetIntc() call.
I've tried it ...
Search found 7 matches
- Tue Sep 10, 2013 8:16 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
- Wed Sep 04, 2013 3:32 pm
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
Re: PIT interruption by IRQ1 (EPORT)
That would be cool. Also if you say it can be modified easily I will have a talk with the designer to see if it could be possible to use the timer pins!
- Wed Sep 04, 2013 11:21 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
Re: PIT interruption by IRQ1 (EPORT)
@Ridgeglider I've tried clearing flag as soon as I enter the interrupt and still I'm unable to interrupt PIT with IRQ1.
@Paul Indeed this is an interesting solution, I didn't know there were other ways to trigger interrupts with external source. Unfortunately, I was given a board already design to ...
@Paul Indeed this is an interesting solution, I didn't know there were other ways to trigger interrupts with external source. Unfortunately, I was given a board already design to ...
- Wed Sep 04, 2013 10:25 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
Re: PIT interruption by IRQ1 (EPORT)
Yes I've tried to set PIT IRQ Level to 1 and priority to 0 with:
SetIntc((long)PIT_routine, 38, 1, 0);
Still IRQ1, which should be Level 1 priority 3-4 can't seem to interrupt PIT IRQ
I've also tried Level to 3 and priority to 0:
SetIntc((long)PIT_routine, 38, 3, 0);
That makes IRQ3 unable to ...
SetIntc((long)PIT_routine, 38, 1, 0);
Still IRQ1, which should be Level 1 priority 3-4 can't seem to interrupt PIT IRQ
I've also tried Level to 3 and priority to 0:
SetIntc((long)PIT_routine, 38, 3, 0);
That makes IRQ3 unable to ...
- Wed Sep 04, 2013 9:20 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
Re: PIT interruption by IRQ1 (EPORT)
Actually I want the external IRQs to have precedence over the PIT but I need all four of them...
Are you saying that it is impossible for IRQ1 to have precedence over the PIT?
Are you saying that it is impossible for IRQ1 to have precedence over the PIT?
- Wed Sep 04, 2013 8:18 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
Re: PIT interruption by IRQ1 (EPORT)
Ok here is my SetIntc function and INTERRUPT macro for both my PIT and IRQ1:
PIT:
INTERRUPT( PIT_routine, 0x2100 ){...}
SetIntc((long)PIT_routine, 38, 1, 0);
IRQ1:
INTERRUPT(IRQ1_routine, 0x2700){...}
SetIntc((long)&IRQ1_routine, 1, 7, 8);
I don't think setting the Level and priority for the IRQ1 ...
PIT:
INTERRUPT( PIT_routine, 0x2100 ){...}
SetIntc((long)PIT_routine, 38, 1, 0);
IRQ1:
INTERRUPT(IRQ1_routine, 0x2700){...}
SetIntc((long)&IRQ1_routine, 1, 7, 8);
I don't think setting the Level and priority for the IRQ1 ...
- Wed Sep 04, 2013 5:35 am
- Forum: NetBurner Software
- Topic: PIT interruption by IRQ1 (EPORT)
- Replies: 16
- Views: 12793
PIT interruption by IRQ1 (EPORT)
I need to use the four available IRQ (EPORT 1, 3, 5, 7) for my application, which must be run as soon as they are triggered. I also have a Programmable interrupt timer (PIT), which scan I/O every 100 us and which doesn't need to be as much accurate as the IRQ. My problem is that IRQ1 cannot ...