mc68hc912bl16 Freescale Semiconductor, Inc, mc68hc912bl16 Datasheet - Page 106

no-image

mc68hc912bl16

Manufacturer Part Number
mc68hc912bl16
Description
16-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
ATDCTL4 — ATD Control Register 4
S10BM — ATD 10-bit Mode Control
SMP1, SMP0 — Select Sample Time
PRS4, PRS3, PRS2, PRS1, PRS0 — Select Divide-By Factor for ATD P-Clock Prescaler.
106
RESET:
SMP1
The ATD control register 4 is used to select the clock source and set up the prescaler. Writes to the ATD
control registers initiate a new conversion sequence. If a write occurs while a conversion is in progress,
the conversion is aborted and ATD activity halts until a write to ATDCTL5 occurs.
These bits are used to select one of four sample times after the buffered sample and transfer has oc-
curred. Total conversion time depends on initial sample time (fixed at two ATD clocks), transfer time
(fixed at four ATD clocks), final sample time (programmable, refer to Table 34), and resolution time
(fixed at ten ATD clocks).
The binary value written to these bits (1 to 31) selects the divide-by factor for the modulo counter-based
prescaler. The P clock is divided by this value plus one and then fed into a 2 circuit to generate the
ATD module clock. The divide-by-two circuit insures symmetry of the output clock signal. Clearing these
bits causes the prescale value to default to one which results in a 2 prescale factor. This signal is then
fed into the 2 logic. The reset state divides the P clock by a total of four and is appropriate for nominal
operation between 2 MHz and 8 MHz bus rate. Table 35 shows the divide-by operation and the appro-
priate range of system clock frequencies.
0
0
1
1
0 = 8 bit operation
1 = 10 bit operation
SMP0
S10BM
Bit 7
0
1
0
1
0
FRZ1 FRZ0
0
0
1
1
SMP1
16 ATD clock periods
Table 33 ATD Response to Background Debug Enable
2 ATD clock periods
4 ATD clock periods
Final Sample Time
8 ATD clock periods
6
0
Freescale Semiconductor, Inc.
0
1
0
1
For More Information On This Product,
Table 34 Final Sample Time Selection
SMP0
5
0
Continue conversions in active background mode
Go to: www.freescale.com
Finish current conversion, then freeze
PRS4
4
0
Freeze when BDM is active
Total 8-bit Conversion Time Total 10-bit Conversion Time
18 ATD clock periods
20 ATD clock periods
24 ATD clock periods
32 ATD clock periods
ATD Response
Reserved
PRS3
3
0
PRS2
2
0
PRS1
1
0
20 ATD clock periods
22 ATD clock periods
26 ATD clock periods
34 ATD clock periods
MC68HC912BL16TS/D
PRS0
MC68HC912BL16
Bit 0
1
$0064

Related parts for mc68hc912bl16