rej05b0285_m16cap| Application Note

rej05b0285_m16cap PDF

rej05b0285_m16cap| Application Note


APPLICATION NOTE

M32C/82,83 Group
How to use intelligent I/O interrupt
1.0 Abstract
An intelligent I/O has multiple interrupt request factors, such as a time measurement interrupt and a waveform generation interrupt. An intelligent I/O arrange several interrupt requests factors and use them as one intelligent I/O interrupt.

2.0 Introduction
This application note introduces how to use the intelligent I/O interrupt M32C/82 group M32C/83 group

3.0 Detailed description
This application note describes M32C/83 group intelligent I/O interrupt 1 as one example.
IIO1IR register
Interrupt request of group 0 waveform generation function channel 0 Interrupt request of group 1 waveform generation function channel 4 Interrupt request (specialty) of group 0 communication function Interrupt request (transmit) of group 0 communication function
bit1
0 1

IR bit in the IIO1IC register
D Q R

PO00R
bit2

0 1

PO14R
bit4

0 1

G0TOR
bit5

Interrupt acknowledgement

0 1

SIO0TR

IIO1IE register
bit0

IRLT
bit1

PO00E
bit2

PO14E
bit4

G0TOE
bit5

SIO0TE

When using an intelligent I/O interrupt 1, set the IRLT bit in the IIO1IE register to "1" (use the interrupt request by an interrupt) and set the interrupt enabled bit in the IIO1IE register to "1". For example, when using both the group 0 waveform generation function channel 0 (PO00) interrupt and the group 1 waveform generation function channel 4 (PO14) interrupt, set both the PO00 bit and the PO14 bit in the IIO1IE register to "1". When the PO00 interrupt request is generated, the PO00R bit in the IIO1IR register becomes "1" and when the PO14R interrupt request is generated, the PO14R bit in the IIO1IR register becomes "1". When either the PO00R bit or the PO14R bit, or both of them become "1", the IR bit in the IIO1IC register becomes "1". When reading the IIO1IR register within an interrupt process, the microcomputer judges the generated interrupt factors and executes the interrupt processes.

REJ05B0285-0110Z/Rev.1.10

June 2004

Page 1 of 7


rej05b0285_m16cap Application Note renesas Download PDF

Add this permalink to your bookmarks for future download of rej05b0285_m16cap ApplicationNote

Permalink: http://application.emcelettronica.com/renesas/rej05b0285_m16cap

PDF rej05b0285_m16cap APPLICATION NOTE