Kclk Fall Interrupt Operation; Figure 17.14 Example Of Kclk Input Fall Interrupt Operation - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

17.4.9

KCLK Fall Interrupt Operation

In this device, clearing the KBFSEL bit to 0 in KBCRH enables the KBF bit in KBCRH to be
used as a flag for the interrupt generated by the fall of KCLK input.
Figure 17.14 shows the setting method and an example of operation.
Start
Set KBIOE
KBE = 0
(KBBR reception
disabled)
KBFSEL = 0
KBIE = 1
(KCLK falling edge
interrupts enabled)
KCLK pin
fall detected?
Yes
KBF = 1
(interrupt generated)
Interrupt handling
Clear KBF
Note:* The KBF setting timing is the same as the timing of KBF setting and KCLK automatic I/O inhibit bit
generation in figure 17.11. When the KBF bit is used as the KCLK input fall interrupt flag, the
automatic I/O inhibit function does not operate.

Figure 17.14 Example of KCLK Input Fall Interrupt Operation

KCLK
(pin state)
KBF bit
No
Section 17 Keyboard Buffer Control Unit (KBU)
Interrupt
Cleared
generated
by software
Rev. 3.00 Jul. 14, 2005 Page 605 of 986
Interrupt
generated
REJ09B0098-0300

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents