EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #71 background imageLoading...
Page #71 background image
Interrupts
C2000 Microcontroller Workshop - Reset and Interrupts 4 - 15
memory copy function copies the interrupt vector table to the PIE RAM and then sets ENPIE to
1, enabling the PIE block. This process is done to set up the vectors for interrupts.
PIE Initialization Code Flow - Summary
RESET
<0x3F FFC0>
Reset Vector
<0x3F F75C> = Boot Code
Flash Entry Point
<0x3F 7FF6> = LB _c_int00
M0SARAM Entry Point
<0x00 0000> = LB _c_int00
_c_int00:
CALL main()
OR
main()
{ initialization();
}
Initialization()
{
Load PIE Vectors
Enable the PIE
Enable PIEIER
Enable Core IER
Enable INTM
}
PIE Vector Table
256 Word RAM
0x00 0D00 0DFF
Main.c
CodeStartBranch.asm
rts2800_fpu32.lib
Boot option determines
code execution entry point
interrupt void name(void)
{
}
DefaultIsr.c
Interrupt
.sect “codestart
In summary, the PIE initialization code flow is as follows. After the device is reset and executes
the boot code, the selected boot option determines the code entry point. This figure shows two
different entry points. The one on the left is for memory block M0, and the one on the right is for
flash.
In either case, CodeStartBranch.asm has a “Long Branchto the entry point of the runtime
support library. After the runtime support library completes execution, it calls main. In main, we
have a function call to initialize the interrupt process and enable the PIE block. When an
interrupt occurs, the PIE block contains a vector to the interrupt service routine located in
DefaultIsr.c.

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals