15.07.2013 Views

L33-L38 Nios II Interrupts without LQuiz - Courses

L33-L38 Nios II Interrupts without LQuiz - Courses

L33-L38 Nios II Interrupts without LQuiz - Courses

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example: ABS Brake Controller – toggle LEDG0 if KEY3 is infrequent.<br />

ISR and main program communicate using register r22.<br />

.include "ubc-de1media-macros.s"<br />

/*****************************************************************************<br />

* RESET SECTION<br />

* The <strong>Nios</strong> <strong>II</strong> assembler/linker places this section at address 0x00000000.<br />

* It must be

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!