Dear Sir,
We would like to install the Exception handlers on MPC5675 (e200z series), so following details are needed. (Background is exception due to computation say divide by zero, overflow, negative of sqrt etc).
1. Default handler installed by the compiler or tool ? Are these sufficient, if not why it is not sufficient?
2. If it is required to install , please elaborate the procedure with examples.
3. We are planning to disable the interrupt,only one NMI is needed. Is it correct to disable all the interrupts execpt one?
regards
Hi,
1) There is default handler for IVOR4 only. This could be used without changes, but if you have different requirements, you can change it. For other exceptions, there in only simple trap handler.
2) If you want to create your own handler for exceptions (for example IVOR1 handler), please download the following examples and open open example5. It shows, how to create your own IVOR1 handler. (see ivor_branch_table_pc0.c file and main.c file)
http://cache.nxp.com/assets/documents/data/en/application-notes-software/AN5200SW.zip
3) This is application dependent problem and it has nothing to do with microcontroller itself. If NMI is the only interrupt you need, you can disable all other interrupts, but remember that these interrupts will not be executed.
Regards,
Martin