EasyManua.ls Logo

Panasonic MN103S - Page 445

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 - 39
An example setup procedure, with a description of each step is shown below.
Setup Procedure Description
(1) Set the AD0: Stop the A/D converter
operation
AN0CTR0(0x0000A400)
bp7: AN0EN=0 bp5: AN0TRG=0
Set the AD1: Stop the A/D converter
operation
AN1CTR0(0x0000A440)
b p7 : AN 1 EN =0 b p 5: A N1 TR G =0
Set the AD2: Stop the A/D converter
operation
AN2CTR0(0x0000A480)
bp7: AN2EN=0 bp5: AN2TRG=0
(1) Set the AN0EN flag and the AN0TRG flag of the A/D0
conversion control register 0 (AN0CTR0) to “0” to stop
the A/D conversion.
Set the AN1EN flag and the AN1TRG flag of the A/D1
conversion control register 0 (AN1CTR0) to “0” to stop
the A/D conversion.
Set the AN2EN flag and the AN2TRG flag of the A/D2
conversion control register 0 (AN2CTR0) to “0” to stop
the A/D conversion.
(2) Set the AD0: Disable the AD0 complete
interrupt
G26ICR(0x00008968)
bp8: G26IE0=0 bp9: G26IE1=0
Set the AD1: Disable the AD1 complete
interrupt
G27ICR(0x0000896C)
bp8: G27IE0=0 bp9: G27IE1=0
Set the AD2: Disable the AD2 complete
interrupt
G28ICR(0x00008970)
bp8: G28IE0=0
(2) Set the IE flags of the G26ICR, G27ICR and G28ICR
registers to “0” to disable the AD0, 1 and 2 conversion
complete interrupts.
(3) Set the PWM0 and 1 (3) Set PWM0 and 1.
* Do not execute PWM start at this point.
PWMMD0 (0x0000A300), PWMMD1 (0x0000A330)
bp: TCENn=0

Table of Contents

Other manuals for Panasonic MN103S

Related product manuals