Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 3 Next > End >>

ppz2005

Junior Boarder

2008/07/31 02:57

add user interrupts on future device

As I know,all MCUs design interrupts for only internal peripherals.It occured to me that I can use it to drive 'tasks'.
We usually write our embeded application programs based on an embeded OS.I get to know it is ok to drive a 'task' by an interrupt especially in some little applications.
To do so,we really get a OS which is drived by hardware. Schedule time is 0,and context switch time is in deed as a very fast interrupt entrance.
But,in other hand,we have to change our program models,which have been used with an embeded OS.
To make it come true,we should first get a MCU with some user interrupts.Or,we can only use some available interrupts belongs to internal peripherals as those user interrupts.
It's only an idea.I havn't do any experiments.
Is anybody interested in this subject?
Thanks,

Post edited by: ppz2005, at: 2008/07/31 03:04

login or register to reply

rocksoft

Expert Boarder

2008/07/31 08:46

Re:add user interrupts on future device

Hi,

If I understand your meaning you can either...

Pend an interrupt in software you can use the "Software Trigger Interrupt Register" or directly write the bits in the "Interrupt Set Pending Register" these are both in the Cortex core. There are many unused interrupts in the core on LM devices.

Or...

Use the SVC instruction.

Regards,

Liam.

login or register to reply

awneil

Gold Boarder

2008/08/06 16:04

Re:add user interrupts on future device

ppz2005 wrote:
all MCUs design interrupts for only internal peripherals.
What do you mean by that?

Most MCUs I've used have at least one "External Interrupt" pin...

login or register to reply

ppz2005

Junior Boarder

2008/08/06 21:26

Re:add user interrupts on future device

Sorry,I didn't express very accurately,but "External Interrupt pin" is also a "internal peripheral".
"internal" here means within MCUs.
Thank you,

login or register to reply

ppz2005

Junior Boarder

2008/08/06 22:06

Re:add user interrupts on future device

Yes,I confirm that user interrupts in MCUs is really useful.No matter how designers use the user interrupts,for example,driving 'user task' or driving peripherals,user interrupts benefit the realtime ability,program simplicity,especially,with the Cortex-M3 NVIC.
Traditional OS are not the only solution(for example,no OSs,or,state machines mothod),especially for most little,deeply embeded use.Most of Luminary MCUs is for this market.So,I think it's a good,new idea for Luminary.
I hope to know if it is a good or bad idea.
thanks,

login or register to reply

ppz2005

Junior Boarder

2008/08/06 22:22

Re:add user interrupts on future device

rocksoft wrote:
Hi,

If I understand your meaning you can either...

Pend an interrupt in software you can use the "Software Trigger Interrupt Register" or directly write the bits in the "Interrupt Set Pending Register" these are both in the Cortex core. There are many unused interrupts in the core on LM devices.

Or...

Use the SVC instruction.

Regards,

Liam.


In fact,there are some reserved interrupts in Luminary devices,but they are not available for user.Those defined by Cortex-M3 core(max 240 interrupts) are not all implemented by Luminary at all.
'Use the SVC instruction' can implement a traditional OS.But,I mean that we can use interrupt system functions as a hardware 'OS'.

login or register to reply
<< Start < Prev 1 2 3 Next > End >>