Repeat Sweep Mode 0 - Renesas M16C/6NK Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)

16.1.4 Repeat Sweep Mode 0

In repeat sweep mode 0, analog voltage applied to selected pins is repeatedly converted to a digital code.
Table 16.5 lists the specifications of repeat sweep mode 0. Figure 16.7 shows the ADCON0 and
ADCON1 registers in repeat sweep mode 0.
Table 16.5 Repeat Sweep Mode 0 Specifications
Item
Function
A/D Conversion
Start Condition
A/D Conversion
Stop Condition
Interrupt Request
Generation Timing
Analog Input Pin
Reading of Result of
A/D Converter
NOTE:
1. AN0_0 to AN0_7, and AN2_0 to AN2_7 can be used in the same way as AN0 to AN7.
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
The SCAN1 to SCAN0 bits in the ADCON1 register and the ADGSEL1 to
ADGSEL0 bits in the ADCON2 register select pins. Analog voltage applied
to the pins is repeatedly converted to a digital code.
• When the TRG bit in the ADCON0 register is "0" (software trigger)
The ADST bit in the ADCON0 register is set to "1" (A/D conversion starts)
• When the TRG bit is "1" (ADTRG trigger)
_____________
Input on the ADTRG pin changes state from high to low after the ADST
bit is set to "1" (A/D conversion starts)
Set the ADST bit to "0" (A/D conversion halted)
None generated
Select from AN0 to AN1 (2 pins), AN0 to AN3 (4 pins), AN0 to AN5 (6 pins),
AN0 to AN7 (8 pins)
Read one of the AD0 to AD7 registers that corresponds to the selected pin
page 212 of 378
Specification
_____________
(1)
16. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents