19-6
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
(4)
Continuous conversion mode (ADC12A_
n
TRG.CNVMD bit = 1)
A/D conversion for ADIN
n
3
–
4 (ADC12A_
n
TRG.STAAIN[2:0] bits = 0x3, ADC12A_
n
TRG.ENDAIN[2:0] bits =
0x4) Software trigger (ADC12A_
n
TRG.CNVTRG[1:0] bits = 0x0)
Figure 19.4.4.1 A/D Conversion Operations
A/D converted data transfer using DMA
By setting the ADC12A_
n
DMAEN.ADCDMAEN
x
bit to 1 (DMA transfer request enabled), a DMA
transfer request is sent to the DMA controller and the ADC12A_
n
ADD register value is transferred to
the specified memory via DMA Ch.
x
when the ADC12A_
n
INTF.AD
m
CIF bit is set to 1 (when A/D
conversion for the analog input signal
m
has completed).
This automates reading and saving of A/D converted data.
The transfer source/destination and control data must be set for the DMA controller and the
relevant DMA channel must be enabled to start a DMA transfer in advance. For more information
on DMA, refer to
the “DMA Controller” chapte
r.
Table 19.4.4.1 DMA Data Structure Configuration Example (Capture Data Transfer)
Item
Setting example
End pointer
Transfer source
ADC12A_
n
ADD register address
Transfer destination
Memory address to which the last A/D converted data is stored
Control data
dst_inc
0x1 (+2)
dst_size
0x1 (haflword)
src_inc
0x3 (no increment)
src_size
0x1 (halfword)
R_power
0x0 (arbitrated for every transfer)
n_minus_1
Number of transfer data
cycle_ctrl
0x1 (basic transfer)
First ADIN
n
3
result
Second ADIN
n
3
result
First ADIN
n
4
result
Second ADIN
n
4
result
0x3 (ADIN
n
3)
0x4 (ADIN
n
4)
0x4 (ADIN
n
4)
0x3 (ADIN
n
3)
0x5 (ADIN
n
5)
ADC12A_
n
CTL.ADST
ADC12A_
n
CTL.BSYSTAT
ADC12A_
n
CTL.ADSTAT[2:0]
A/D conversion operations
ADC12A_
n
ADD.ADD[15:0]
ADC12A_
n
INTF.AD3CIF
ADC12A_
n
INTF.AD4CIF
ADIN
n
3
ADIN
n
3
ADIN
n
3
ADIN
n
3
ADIN
n
3
ADIN
n
3
Sampling
Conversion
Sampling
Conversion
Sampling
Conversion
Cleared
A/D converting
ADIN
n
3
ADIN
n
3
Sampling
Conversion
Cleared
Cleared
Cleared
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...