uBlaze ISR : Steps to write/implement an ISR...

Oct 27, 2006 2 Replies

Hi all.



At the moment I never implement a ISR on uBlaze system.



I have seen, I know I have to use the INTC IP driver routines, but I have seen also there are some commands in uBlaze interface Header.



For example: microblaze_enable_interrupts(void); microblaze_disable_interrupts(void);



I imagine before of all I HAVE to use microblaze_enable_interrupts(void); that it has priority and works directly on uBlaze CPU.



After it I should instance INTC structure/object, initialize it, enable it.



After I have to connect my ISR with proper instruction but I don't know very well how to do it... Please someone could write me a list of steps (in order) and if possible write a little example?



Thanks in advance.



Al.


"Alfmyk" schrieb im Newsbeitrag news: snipped-for-privacy@webx.sUNCHnE...

step by step

Optional Step 0: learn to read Step 1: browse in EDK\ and open some example that uses INTC Step 2: read and study the example Step 3: implement your code base on the example

Antti

Ok, thank again Antti ! I didn't know and suppose in EDK Examples was present a project oriented to iterrupt driven example.

Anyway I'd like to ask you: 1) In generally what are different between static ISR (ISR assigned via XPS Softaware Menu) and dynamic ISR? The only different is just the possibility to change ISR Routine is it was assigned (dinamically)?

2) Moreover in generally taking a look to EDK example I have seen that ISR has a input parameter like ( (void *) baseAddress_p ) is it always the baseAddress related to IP Peripheral or not ?

Thanks in advance.

Cheers, Al.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required