EasyManuals Logo

Renesas RL78/G15 User Manual

Renesas RL78/G15
765 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #361 background imageLoading...
Page #361 background image
RL78/G15 CHAPTER 11 COMPARATOR
R01UH0959EJ0110 Rev.1.10 Page 361 of 765
Mar 7, 2023
11.5.2 Disabling Comparator Operation (in the Case of CMP0)
Figure 11-9. Procedure for Disabling Comparator Operation
Start
Set the C0IE bit
Set the C0ENB bit
Set the PER0 register
(Mandatory)
(Mandatory)
(Optional)
End
Disable comparator interrupt request.
Clear the C0IE bit in COMPOCR to 0 to disable interrupt request.
Clear the comparator interrupt request flag.
Clear the CMPIF0 bit in IF1H to 0 to initialize interrupt request
(unnecessary interrupt request cleared).
Clear the CMPEN bit in PER0 to 0 to stop clock supply to the comparator.
Note that stopping clock supply by setting PER0 initializes all control registers of
the comparator (except for port mode register 0 (PM0), port register 0 (P0), and
port mode control register 0 (PMC0)).
To use the comparator again, set the control registers according to Figure 11-8
Procedure for Enabling Comparator Operation.
Disable comparator operation.
Clear the C0ENB bit in COMPMDR to 0 to stop comparator 0 operation.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G15 and is the answer not in the manual?

Renesas RL78/G15 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G15
CategoryMicrocontrollers
LanguageEnglish

Related product manuals