Lab 07 · FPGAcademy handout edition 24.1

Interrupts in C

Count events while the foreground program continues.

Start with Part I Latch a switch pattern inside a C interrupt handler

Parts in handout order

  1. Part I
    Latch a switch pattern inside a C interrupt handler

    FPGAcademy: Handle board button interrupts in C

    CPUlator simulatorCPUlator

    Original handout PDF

  2. Part II
    Pause a C interrupt-driven LED counter

    FPGAcademy: Share counter state between timer and button handlers

    CPUlator simulatorCPUlator

    Original handout PDF

  3. Part III
    Change interrupt frequency without losing the count

    FPGAcademy: Change the interrupt-driven counting rate

    CPUlator simulatorCPUlator

    Original handout PDF

  4. Part IV
    Keep minutes, seconds and hundredths with timer interrupts

    FPGAcademy: Drive a six-digit clock from timer interrupts

    CPUlator simulatorCPUlator

    Original handout PDF

Original starter files

niosv_standard_lab7_design_files.zip