cop8cde9 National Semiconductor Corporation, cop8cde9 Datasheet - Page 47

no-image

cop8cde9

Manufacturer Part Number
cop8cde9
Description
8-bit Cmos Flash Microcontroller With 8k Memory, Virtual Eeprom, 10-bit A/d And Brownout Reset
Manufacturer
National Semiconductor Corporation
Datasheet
9.0 A/D Converter
MODE SELECT
This 1-bit field is used to select the mode of operation (single
ended or differential) as shown in the following Table 23 .
PRESCALER SELECT
This 1-bit field is used to select one of two prescaler clocks
for the A/D Converter. The following Table 24 shows the
various prescaler options. Care must be taken, when select-
ing this bit, to keep the A/D clock frequency within the
specified range.
BUSY BIT
The ADBSY bit of the ENAD register is used to control
starting and stopping of the A/D conversion. When ADBSY is
cleared, the prescale logic is disabled and the A/D clock is
turned off, drawing minimal power. Setting the ADBSY bit
starts the A/D clock and initiates a conversion based on the
TABLE 23. A/D Conversion Mode Selection
TABLE 24. A/D Converter Clock Prescale
ADMOD
PSC
0
1
0
1
FIGURE 26. A/D with Single Ended Mux Output Feature Enabled
FIGURE 27. A/D with Differential Mux Output Feature Enabled
(Continued)
Single Ended Mode
MCLK Divide by 16
MCLK Divide by 1
Differential Mode
Clock Select
Mode
47
values currently in the ENAD register. Normal completion of
an A/D conversion clears the ADBSY bit and turns off the A/D
Converter.
If the user wishes to restart a conversion which is already in
progress, this can be accomplished only by writing a zero to
the ADBSY bit to stop the current conversion and then by
writing a one to ADBSY to start a new conversion. This can
be done in two consecutive instructions.
9.1.2 A/D Result Registers
There are two result registers for the A/D converter: the high
8 bits of the result and the low 2-bits of the result. The format
of these registers is shown in Figures 27, 28 . Both registers
are read/write registers, but in normal operation, the hard-
ware writes the value into the register when the conversion is
complete and the software reads the value. Both registers
are undefined upon Reset. They hold the previous value until
a new conversion overwrites them. When reading ADRSTL,
bits 5-0 will read as 0.
Bit 7
Bit 7
Bit 9
Bit 1
Bit 8
Bit 0
Bit 7
0
20022529
TABLE 25. ADRSTH
TABLE 26. ADRSTL
20022530
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
www.national.com
Bit 0
Bit 0
Bit 2
0

Related parts for cop8cde9