![](http://datasheet.mmic.net.cn/30000/M30280M6-XXXHP_datasheet_2358793/M30280M6-XXXHP_247.png)
M16C/28 Group
Under development Preliminary specification
Specifications in this manual are tentative and subject to change.
15. A-D Converter
Rev.0.60 2004.02.01
page 229 of N
REJ09B0047-0060Z
___________
Note 1. When a third ADTRG pin falling edge is generated again during A-D conversion, its trigger is ignored.
___________
Note 2. The
ADTRG pin falling edge is detected synchronized with the operation clock
φAD. Therefore, when the
___________
ADTRG pin falling edge is generated in shorter periods than
φAD, the second ADTRG pin falling edge may not
___________
be detected. Do not generate the
ADTRG pin falling edge in shorter periods than
φAD.
Note 3. Do not write “1” (A-D conversion started) to the ADST bit in delayed trigger mode 1. When write “1”,unexpected
interrupts may be generated.
Note 4. AN00 to AN07 and AN20 to AN27 can be used in the same way as AN0 to AN7. However, all input pins need to
belong to the same group.
15.1.8 Delayed Trigger Mode 1
In delayed trigger mode 1, analog voltages applied to the selected pins are converted one-by-one to a
digital code. When the input of the ADTRG pin (falling edge) changes state from “H” to “L”, a single sweep
conversion is started. After completing the AN0 pin conversion, the AN1 pin is not sampled and converted
until the second ADTRG pin falling edge is generated. When the second ADTRG falling edge is generated,
The single sweep conversion of the pins after the AN1 pin is restarted. Table 15.1.8.1 shows the delayed
trigger mode 1 specifications. Figure 15.1.8.1 shows the operation example of delayed trigger mode 1.
Figure 15.1.8.2 to Figure 15.1.8.3 show each flag operation in the ADSTAT0 register that corresponds to
the operation example. Figure 15.1.8.4 shows the ADCON0 to ADCON2 registers in delayed trigger
mode 1. Figure 15.1.8.5 shows the ADTRGCON register in delayed trigger mode 1 and Table 15.1.8.2
shows the trigger select bit setting in delayed trigger mode 1.
Table 15.1.8.1 Delayed Trigger Mode 1 Specifications
Item
Specification
Function
The SCAN1 to SCAN0 bits in the ADCON1 register and ADGSEL1 to ADGSEL0 bits
in the ADCON2 register select pins. Analog voltages applied to the selected pins are
converted one-by-one to a digital code. At this time, the ADTRG pin
falling edge starts AN0 pin conversion and the second ADTRG pin falling edge starts
conversion of the pins after AN1 pin
A-D Conversion Start
AN0 pin conversion start condition
Condition
The ADTRG pin input changes state from “H” to “L” (falling edge)(Note 1)
AN1 pin conversion start condition (Note 2)
The ADTRG pin input changes state from “H” to “L” (falling edge)
When the second ADTRG pin falling edge is generated during A-D conversion of
the AN0 pin, input voltage of AN1 pin is sampled or after at the time of ADTRG
falling edge. The conversion of AN1 and the rest of the sweep starts when AN0
conversion is completed.
When the ADTRG pin falling edge is generated again during single sweep conver
sion of pins after the AN1 pin, the conversion is not affected
A-D Conversion Stop
A-D conversion completed
Condition
Set the ADST bit to "0" (A-D conversion halted)(Note 3)
Interrupt Request
Single sweep conversion completed
Generation Timing
Analog Input Pin
Select from AN0 to AN1 (2 pins), AN0 to AN3 (4 pins), AN0 to AN5 (6 pins) and
AN0 to AN7 (8 pins)
(Note 4)
Readout of A-D Conversion Result
Readout one of the AN0 to AN7 registers that corresponds to the selected pins