DEMO9S08DZ60 Freescale Semiconductor, DEMO9S08DZ60 Datasheet - Page 194

BOARD DEMO

DEMO9S08DZ60

Manufacturer Part Number
DEMO9S08DZ60
Description
BOARD DEMO
Manufacturer
Freescale Semiconductor
Type
MCUr

Specifications of DEMO9S08DZ60

Contents
Board, Cable, CD
Processor To Be Evaluated
MC9S08DZ60
Interface Type
RS-232, USB
Silicon Manufacturer
Freescale
Core Architecture
HCS08
Core Sub-architecture
HCS08
Silicon Core Number
MC9S08
Silicon Family Name
S08D
Kit Contents
MC9S08DZ60 Board, Software, Cables, Connectors
Rohs Compliant
Yes
For Use With/related Products
MC9S08DZ60
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Chapter 10 Analog-to-Digital Converter (S08ADC12V1)
ADCSC1 = 0x41 (%01000001)
ADCRH/L = 0xxx
ADCCVH/L = 0xxx
APCTL1=0x02
APCTL2=0x00
194
Bit 7
Bit 6
Bit 5
Bit 4:0 ADCH
Holds results of conversion. Read high byte (ADCRH) before low byte (ADCRL) so that
conversion data cannot be overwritten with data from the next conversion.
Holds compare value when compare function enabled
AD1 pin I/O control disabled. All other AD pins remain general purpose I/O pins
All other AD pins remain general purpose I/O pins
COCO
AIEN
ADCO
Figure 10-13. Initialization Flowchart for Example
0
1
0
00001
MC9S08DZ60 Series Data Sheet, Rev. 4
Read-only flag which is set when a conversion completes
Conversion complete interrupt enabled
One conversion only (continuous conversions disabled)
Input channel 1 selected as ADC input channel
ADCCFG = 0x98
ADCSC1 = 0x41
Then ADCRL To
Clear COCO Bit
ADCSC2 = 0x00
Read ADCRH
Initialize ADC
COCO=1?
Continue
Check
Reset
Yes
No
Freescale Semiconductor

Related parts for DEMO9S08DZ60