Panasonic MN103S User Manual page 434

Panaxseries
Hide thumbs Also See for MN103S:
Table of Contents

Advertisement

Chapter 14
A/D Converter
Setting Sampling/Hold Time
Sampling/hold time can be selected from 1, 2 , 4 and 6 cycles of the conversion clock. Select the proper value
with the A/D input impedance. If the A/D input impedance is high, select 6 cycles.
Selecting Operation Mode
Operation mode is set by the AN0MD1-0 flags of the AN0CTR0 register and the AN1MD1-0 flags of the
AN1CTR0 register and the AN2MD1-0 flags of the AN2CTR0 register. Table: 14.3.2 shows the operation mode
to be set. One-time conversion means that one-time input to the ADINn pin is converted by the any single channel
or multiple channels. Continuous conversion means that the conversion is continued until it is stopped by the any
single channel or multiple channels.
Table:14.3.2 Operation Mode of A/D Conversion
ANnMD1
0
0
1
1
A/D Converter Start
A/D conversion is started when the set-up start trigger is generated.
Table:14.3.3 Converter Start Trigger (AD0, 1, 2)
Start trigger
Register set by instruction
PWM0 overflow
PWM0 underflow
Timer 12 compare A
Timer 12 compare B
PWM1 overflow
PWM1 underflow
Timer 13 compare A
Timer 13 compare B
A/D Converter Stop
A/D converter stop differs depending on the conversion mode to be selected.
Table:14.3.4 A/D Converter Stop
Operation mode
Any single channel/one time con-
version
Multiple channels/one time con-
version for each
Any single channel/continuous
conversion
Multiple channels/continuous
conversion
XIV - 28
Operation
ANnMD0
Operation mode
0
Any single channel/one-time conversion
1
Multiple channels/one-time conversion for each
0
Any single channel/continuous conversion
1
Multiple channels/continuous conversion
AN0TRG
ADnAST2-0
(AN0CTR)
(ADSTn)
0
-
1
000
1
001
1
010
1
011
1
100
1
101
1
110
1
111
Stop operation
When one-time conversion ends, all the conversion operation is completed and the con-
version operation is stopped.
The conversion operation is not stopped even if one-time conversion ends. To stop the
conversion, the ANnEN flag needs to be cleared to "0".
ANnTRGB
(ANnCTR1
Conversion is started by setting the ANnEN flag of the conver-
-
sion control register (ANnCTR0) to "1".
1
Conversion is started by PWN0 overflow signal.
1
Conversion is started by PWN0 underflow signal.
1
Conversion is started by the timer 12 compare A interrupt.
1
Conversion is started by the timer 12 compare B interrupt.
1
Conversion is started by PWN1 overflow signal.
1
Conversion is started by PWN1 underflow signal.
1
Conversion is started by the timer 13 compare A interrupt.
1
Conversion is started by the timer 13 compare B interrupt.
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn103sa7dMn103sa7g

Table of Contents