IV ANALOG BLOCK: A/D CONVERTER

A-1

I/O Memory of A/D Converter

Table 2.6 shows the control bits of the A/D converter.

For details on the I/O memory of the prescaler used to set clocks, refer to "Prescaler". For details on the I/O memory of the programmable timers used for a trigger, refer to "8-Bit Programmable Timers" or "16-Bit Programmable Timers".

Table 2.6 Control Bits of A/D Converter

Register name

Address

Bit

Name

Function

 

 

 

 

Setting

Init.

R/W

Remarks

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D conversion

0040240

D7

ADD7

A/D converted data

 

 

 

 

0x0 to 0x3FF

0

R

 

result (low-

(B)

D6

ADD6

(low-order 8 bits)

 

 

 

(low-order 8 bits)

0

 

 

order) register

 

D5

ADD5

ADD0 = LSB

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

D4

ADD4

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

D3

ADD3

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

D2

ADD2

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

D1

ADD1

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

D0

ADD0

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D conversion

0040241

D7–2

 

 

 

 

 

 

 

 

0 when being read.

result (high-

(B)

D1

ADD9

A/D converted data

 

 

 

 

0x0 to 0x3FF

0

R

 

order) register

 

D0

ADD8

(high-order 2 bits) ADD9 = MSB

 

 

 

(high-order 2 bits)

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D trigger

0040242

D7–6

 

 

 

 

 

 

 

 

0 when being read.

register

(B)

D5

MS

A/D conversion mode selection

1

Continuous

 

0

 

Normal

0

R/W

 

 

 

D4

TS1

A/D conversion trigger selection

 

TS[1:0]

 

 

 

 

Trigger

0

R/W

 

 

 

D3

TS0

 

1

 

1

 

 

#ADTRG pin

0

 

 

 

 

 

 

 

1

 

0

 

 

8-bit timer 0

 

 

 

 

 

 

 

 

0

 

1

 

 

16-bit timer 0

 

 

 

 

 

 

 

 

0

 

0

 

 

 

Software

 

 

 

 

 

D2

CH2

A/D conversion channel status

 

CH[2:0]

 

 

 

Channel

0

R

 

 

 

D1

CH1

 

1

 

1

 

1

 

 

 

 

AD7

0

 

 

 

 

D0

CH0

 

1

 

1

 

0

 

 

 

 

AD6

0

 

 

 

 

 

 

 

1

 

0

 

1

 

 

 

 

AD5

 

 

 

 

 

 

 

 

1

 

0

 

0

 

 

 

 

AD4

 

 

 

 

 

 

 

 

0

 

1

 

1

 

 

 

 

AD3

 

 

 

 

 

 

 

 

0

 

1

 

0

 

 

 

 

AD2

 

 

 

 

 

 

 

 

0

 

0

 

1

 

 

 

 

AD1

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

AD0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D channel

0040243

D7–6

 

 

 

 

 

 

 

 

0 when being read.

register

(B)

D5

CE2

A/D converter

 

CE[2:0]

 

 

End channel

0

R/W

 

 

 

D4

CE1

end channel selection

1

 

1

 

1

 

 

 

 

AD7

0

 

 

 

 

D3

CE0

 

1

 

1

 

0

 

 

 

 

AD6

0

 

 

 

 

 

 

 

1

 

0

 

1

 

 

 

 

AD5

 

 

 

 

 

 

 

 

1

 

0

 

0

 

 

 

 

AD4

 

 

 

 

 

 

 

 

0

 

1

 

1

 

 

 

 

AD3

 

 

 

 

 

 

 

 

0

 

1

 

0

 

 

 

 

AD2

 

 

 

 

 

 

 

 

0

 

0

 

1

 

 

 

 

AD1

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

AD0

 

 

 

 

 

D2

CS2

A/D converter

 

CS[2:0]

 

 

Start channel

0

R/W

 

 

 

D1

CS1

start channel selection

1

 

1

 

1

 

 

 

 

AD7

0

 

 

 

 

D0

CS0

 

1

 

1

 

0

 

 

 

 

AD6

0

 

 

 

 

 

 

 

1

 

0

 

1

 

 

 

 

AD5

 

 

 

 

 

 

 

 

1

 

0

 

0

 

 

 

 

AD4

 

 

 

 

 

 

 

 

0

 

1

 

1

 

 

 

 

AD3

 

 

 

 

 

 

 

 

0

 

1

 

0

 

 

 

 

AD2

 

 

 

 

 

 

 

 

0

 

0

 

1

 

 

 

 

AD1

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

AD0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D enable

0040244

D7–4

 

 

 

 

 

 

 

 

0 when being read.

register

(B)

D3

ADF

Conversion-complete flag

1

Completed

 

0

 

Run/Standby

0

R

Reset when ADD is read.

 

 

D2

ADE

A/D enable

1

Enabled

 

0

 

Disabled

0

R/W

 

 

 

D1

ADST

A/D conversion control/status

1

Start/Run

 

0

 

Stop

0

R/W

 

 

 

D0

OWE

Overwrite error flag

1

Error

 

0

 

Normal

0

R/W

Reset by writing 0.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A/D sampling

0040245

D7–2

 

 

 

 

 

 

 

 

0 when being read.

register

(B)

D1

ST1

Input signal sampling time setup

 

ST[1:0]

 

Sampring time

1

R/W

Use with 9 clocks.

 

 

D0

ST0

 

1

 

1

 

 

 

9 clocks

1

 

 

 

 

 

 

 

1

 

0

 

 

 

7 clocks

 

 

 

 

 

 

 

 

0

 

1

 

 

 

5 clocks

 

 

 

 

 

 

 

 

0

 

0

 

 

 

3 clocks

 

 

 

B-IV

A/D

S1C33L03 FUNCTION PART

EPSON

B-IV-2-9