mpc82x52a Megawin Technology, mpc82x52a Datasheet - Page 55

no-image

mpc82x52a

Manufacturer Part Number
mpc82x52a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
MEGAWIN
SFR: ADCTL (ADC Control register)
SFR: ADCV (ADC Value register):
ADCON :=
{SPEED1, SPEED0} := Conversion speed selector
ADCS := ADC Start control
ADCI := ADC Interrupt flag
{CHS2, CHS1, CHS0} := Input Channel Selector
The ADCV is the final result from the A/D conversion.
ADCON
Bit-7
Bit-7
When clear shut down the power of ADC block. When set turn on the power of
ADC block.
Set to start an A/D conversion. It will be automatically cleared by the device after
the device has finished the conversion.
It will be set by the device after the device has finished a conversion, and should
be cleared by the user’s software.
SPEED1
Bit-6
Bit-6
{0,0} := (default)
{0,1} :=
{1,0} :=
{1,1} :=
{0,0,0} := (default)
{0,0,1} :=
{0,1,0} :=
{0,1,1} :=
{1,0,0} :=
{1,0,1} :=
{1,1,0} :=
{1,1,1} :=
A conversion takes 840 clock cycles
A conversion takes 630 clock cycles
A conversion takes 420 clock cycles
A conversion takes 210 clock cycles
SPEED0
Bit-5
Set P1.0 as the A/D channel input
Set P1.1 as the A/D channel input
Set P1.2 as the A/D channel input
Set P1.3 as the A/D channel input
Set P1.4 as the A/D channel input
Set P1.5 as the A/D channel input
Set P1.6 as the A/D channel input
Set P1.7 as the A/D channel input
Bit-5
MPC82x52A Data Sheet
Achieved Conversion Value
ADCI
Bit-4
Bit-4
ADCS
Bit-3
Bit-3
CHS2
Bit-2
Bit-2
CHS1
Bit-1
Bit-1
CHS0
Bit-0
Bit-0
55

Related parts for mpc82x52a