Return to previous page Return to menu Go to next page

Interrupt management library

1.Guide

1.1 Purpose

is to manage interrupts.

1.2 Overview

Registers and references interrupt register access management and interrupt processing routines.

1.3 Function overview

[Interrupt register access management]

Since the interrupt mask register is write-only, its value cannot be read. Therefore, the value written to the interrupt mask register is held in the library. Specifically, the method is as follows.
 (1) Prepare a memory that always has the same contents as the interrupt mask register (hereinafter referred to as mask storage memory)
(2) When writing to the interrupt mask register, always write the same contents to the mask save memory.
(3) When reading the interrupt mask register, read the contents of the mask save memory. 

[Register and refer to interrupt handling routine]

You can register an interrupt function or SCU function in the interrupt vector table, or refer to the current interrupt vector registration contents.
The SCU interrupt function is registered as an initial value in the SCU interrupt vector table. The SCU interrupt function has a function to make a subroutine call to a registered SCU function. The registered SCU function is executed each time the SCU interrupt function is executed.
Initial values ​​are registered as dummy functions (only return processing is executed) for interrupt functions and SCU dummy functions (only return processing is executed) for SCU interrupt functions.

1.4 Terms of use

[Interrupt register access management]

Since the library holds the value of the interrupt mask register, use the functions provided by the library to write to the interrupt mask register. If direct writing is performed, the mask save memory and interrupt mask register cannot be matched, and correct processing cannot be performed.


Return to previous page Return to menu Go to next page