AN1740 Freescale Semiconductor / Motorola, AN1740 Datasheet - Page 60
![no-image](/images/no-image-200.jpg)
AN1740
Manufacturer Part Number
AN1740
Description
Applications Using the Analog Subsystem on MC68HC05JJ/JP Series Microcontrollers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN1740.pdf
(80 pages)
- Current page: 60 of 80
- Download datasheet (535Kb)
Application Note
Analog Interrupt
Timing
Instruction Cycle
Timing
60
timers with respect to the instruction cycles. These sources of timing
“jitter” will degrade the accuracy of the readings.
The conversion can be timed with a combination of software start of the
charging ramp and an analog interrupt which reads the 16-bit timer or
multifunction timer. This mode of operation will allow other tasks to be
performed while the conversion is in progress, which is especially useful
for long conversions. However, the accuracy of the analog interrupt in
capturing the ending time means that all other interrupts may not be
active until after the conversion is complete.
Also, once the analog interrupt is entered, the time that is read must be
corrected for the minimum interrupt latency time to get into the analog
interrupt service routine and read the timer state. This latency, and,
therefore, the accuracy of the time, will be affected by the variation in
cycle times of all instruction types used in the particular application
software. Avoiding long cycle time instructions such as JSR, SWI, MUL,
and some indexed addressing modes can reduce this variation from nine
to three bus cycles.
The user should be aware of the exact cycle when hardware changes
and data reads occur when using the manual A/D conversion
techniques. The accuracy of the software timing and the “rounding” of
the time count will depend on knowing the precise cycle and clock edge
when the charge time begins and when the voltage comparator output is
sampled. Two examples of simple mode 0 flows are shown in
In the flow for ATDGO1, a simple loop checks for the CPF2 flag and
increments the accumulator. The flow for ATDGO2 includes some
added delays to position the first check of the CPF2 flag to be one-half
the number of the bus cycles that occur in each loop that follows. This
places the CPF2 flag check at one-half of a “bit time” for proper rounding
of partial bits. The details of these two examples are given in the two
following software examples, and the timing is shown in
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Figure
MOTOROLA
Figure
28.
AN1740
27.
Related parts for AN1740
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN177](/images/no-image3.png)
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
![AN1268](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
![AN1315](/images/no-image3.png)
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
![AN1998](/images/no-image3.png)
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
![AN2124](/images/no-image3.png)
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
![AN2428](/images/no-image3.png)
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
![AN2708](/images/no-image3.png)
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
![AN2783](/images/no-image3.png)
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
![MC33394DH](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
![MC33394DWB](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
![MSC7110](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
![MSC7116](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7119](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7118](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC8101](/images/no-image3.png)
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola