EasyManua.ls Logo

Panasonic MN103S

Panasonic MN103S
552 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
Loading...
Chapter 14
A/D Converter
Operation XIV - 35
Setup Example of Multiple Channels/One-Time Conversion for Each
A/D converter result can be obtained with feeding analog voltage by the ADIN00 and ADIN01 pins. Conversion
is performed regularly with the timer 12 compare A matching.
Figure:14.3.7 1-channel A/D Conversion
Table:14.3.6 Conditions for Multiple Channel A/D Conversion ·
An example setup procedure, with a description of each step is shown below.
Setting item Description
Input pin
ADIN00 pin
ADIN01 pin
ADIN02 pin
Operation mode Multiple channels/one-time conversion for each
A/D converter start trigger Timer 12 compare A
A/D converter start cycle 1ms
IOCLK 30MHz
Setup Procedure Description
(1) Set the AD0: Stop the A/D conversion
operation
AN0CTR0(0x0000A400)
bp7: AN0EN=0
bp5:AN0TRG=0
(1) Set the AN0EN and AN0TRG flags of the A/D0
conversion control register (AN0CTR0) to “0” to stop A/
D conversion.
(2) Set the AD0: Disable the AD0 complete
interrupt
G26ICR(0x00008968)
bp8: G26IE0=0
(2) Set the G26IE0 flag of the G26ICR register to “0” to
disable the AD0 conversion complete interrupt.
(3) Set the timer 11: Stop the timer 12
TM12MD(0x0000A280)
bp6: TMLDE=0
bp7: TMCNE=0
(3) Set the TMLDE and TMCNE flags of the timer 12 mode
register (TM12MD) to “0” to stop the timer 12 counting.
Volume3Volume2
0
5
10
Volume1
0
5
10
0
5
10
AD conversion
ch0
ch1
ch2
Data buffer
External tri
gg
er( Timer 12 compareA match )
CPU Core
MN103S

Table of Contents

Other manuals for Panasonic MN103S

Related product manuals