We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi to all ,
i m using external interrupt 3 in lpc 2378 but when external interrupt is execute that time it gose into that isr routing that time it is not perform anather task. why ?
it is possible two external interrupt execute at the same time ?
Yes. Use two processors. Or switch to a dual-core processor.
One processor can only do one thing at a time. You can use nested interrupts, but the LPC23xx processor will still be limited to do only one thing at a time.
tanks but it is not possible me to use dual processor i want to perform two task when external interrupt occures
Your processor can only do one thing at a time.
To make it look like it does multiple jobs, you have to split the tasks into small pieces and alternate between them.
How come: There is one single program counter that points at the current instruction. To get two PC, you need a hyperthreaded or multi-core processor or multiple processors.
You may use a RTOS to interleave between multiple tasks, or you may use a super-loop that has one infinite loop that calls several short and fast functions that each performs a bit of a task before returning.
once aagain thanks
but we dont have that type of rsourses so just tel me anather option to perform this two task at a time
becouse 4 key pad pin i connected to port2, and i want one operation continue but whan i press key that time it should enter in key function but without interrupt that anather function
thank
it can't be done, as you were told more than once. having a single processor entails sharing its instruction pipeline.
"but we dont have that type of rsourses so just tel me anather option to perform this two task at a time"
I did suggest alternatives.
But since you ask again: Did you read my post?