AN1740 Freescale Semiconductor / Motorola, AN1740 Datasheet - Page 23
![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: 23 of 80
- Download datasheet (535Kb)
Comparator
Output Analog
Interrupt
AN1740
MOTOROLA
The outputs of the comparators can be monitored also by using the
analog interrupt. When using interrupt-driven detection of the transitions,
the main consideration is the latency of entering the interrupt service
routine and its later return to the background software. The CPU will
always complete the instruction currently in process before beginning an
interrupt service routine. The range of instruction times varies from two
to 11 CPU bus cycles.
The three longest instructions are the MUL (11 cycles), the SWI (10
cycles), and the RTI (nine cycles). While the user can avoid using either
the MUL or SWI instruction, the RTI is a necessary instruction if
interrupts are being considered.
Once the interrupt is acknowledged, there is a delay of 10 cycles to stack
the CPU state before executing the first instruction in the interrupt
service routine. This means it takes from 12 to 21 cycles to acknowledge
the interrupt and access its service routine. Once the service routine is
completed, there will be nine cycles to execute its final RTI instruction
and 10 more cycles to unstack the CPU state before the interrupt is
complete and the CPU is ready to begin processing another one.
From this discussion, at least 46 CPU bus cycles are required to simply
acknowledge and clear the CPF1 or CPF2 static flags as follows:
This does include any software time to actually perform a task.
Therefore, analog interrupts should not be used to detect pulses
separated by less than about 60 CPU bus cycles. On the other hand,
software polling can test and clear the CPF1 or CPF2 static flags within
11 CPU bus cycles as follows:
Software polling should not be used for pulses separated by less than 30
CPU bus cycles.
•
•
•
•
•
Freescale Semiconductor, Inc.
For More Information On This Product,
21 cycles to acknowledge; max instruction plus stacking
Six cycles to clear the static flag (BSET)
19 cycles to return; RTI plus unstacking
Five cycles to test for the static flag being set (BRSET)
Six cycles to clear the static flag (BSET)
Go to: www.freescale.com
Voltage Comparators
Application Note
23
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