AN2109 Freescale Semiconductor / Motorola, AN2109 Datasheet - Page 29
![no-image](/images/no-image-200.jpg)
AN2109
Manufacturer Part Number
AN2109
Description
MPC555 Interrupts
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2109.pdf
(56 pages)
- Current page: 29 of 56
- Download datasheet (575Kb)
7.3.1.1 Example 1: Initialization and Main Routines
#include "mpc555.h"
void init555()
{
USIU.SYPCR.R = 0xffffff03;
}
void initPIT()
{
}
main()
{
}
UINT32 counter = 0 ;
UINT32 loopctr = 0 ;
USIU.PLPRCR.B.MF = 0x009;
while(USIU.PLPRCR.B.SPLS == 0);
UIMB.UMCR.B.HSPEED = 0;
USIU.PITC.B.PITC = 1000;
USIU.PISCR.B.PITF = 1;
USIU.PISCR.B.PTE = 1;
USIU.PISCR.B.PIRQ = 0x80;
USIU.PISCR.B.PIE = 1 ;
USIU.SIMASK.R = 0x40000000;
init555();
initPIT();
asm(" mtspr EIE, r3");
while(1)
{
}
loopctr++;
Freescale Semiconductor, Inc.
For More Information On This Product,
Rev. 0, 26 July 2001
MPC555 Interrupts
Go to: www.freescale.com
// Global for ISR to hold the
// number of PIT interrupts
// Loop counter for main loop
// Simple MPC555 Initialization
// Disable watchdog timer
// Run at 40MHz for 4MHz crystal
// Wait for PLL to lock
// Run IMB at full clock speed
// STEP 1: MODULE SPECIFIC INITIALIZATION
// Setup count value.
// Freeze enabled to stop PIT
// PIT enabled to start counting
// STEP 2: LEVEL ASSIGNMENT
// Level 0 PIT interrupt
// STEP 3: ENABLE INTERRUPT
// Enable PIT interrupt
// STEP 4: SET APPROPRIATE SIMASK BITS
// Enable level 0; others disabled
// Perform a simple 555 initialization
// Init PIT to generate interrupts
// FINAL STEP: SET MSR[EE], MSR[RI] BITS
// Wait for PIT interrupts
// Increment loopctr for something to do
MOTOROLA
29
Related parts for AN2109
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