1,f28035_device.h
This file is a common definition of the macro, which defines the data type, contains the necessary header files, and uses the definition of the device. If you use a different device, you can change it here.
2,F 28035_examples.h
It is to set the PLL, the system clock, and the defined constants.
3,f28035_codestartbranch.asm
Controls the steering when starting. It closes the watchdog and turns to the program entrance.
4,f28035_defaultisr.c
This file contains the ISR routines for the peripheral. During the development process, these ISR routines can be eliminated and replaced with the user's own ISR routines for each interrupt. Because the ISR for these peripherals contains an infinite loop, they are usually not used in the final program.
It is the default interrupt program, including the framework for all interrupt programs, such as:
Connected to INT13 of CPUs (use MINT13 mask):
Interrupt void INT13_ISR (void) //INT13 or Cpu-timer1
{
//Insert ISR Code here
//Next, lines for debug, halt the processor here
//Remove after inserting ISR Code
ASM ("ESTOP0");
for (;;);
}
When entering an interruption, will do nothing and stay there. When you program, you can redefine the
Break the function and turn to it, such as: Pievecttable.xint1 = &userinttruptfunction
You can also modify the functions in this file.
5,f28035_globalvariabledefs.c
This file is defined as the F28035 internal register, which is assigned a register address along with the cmd file and defines the register file structure variables.
6,f28035_pievect.c
This file is defined as the function name defined by the F2802X_DEFAULTISR.C that defines the initialization of the interrupt vector table in the struct using the member variable
Const struct Pie_vect_table Pievecttableinit = {
pie_reserved, //0 RESERVED space
pie_reserved, //1 RESERVED space
pie_reserved, //2 RESERVED space
pie_reserved, //3 RESERVED space
pie_reserved, //4 RESERVED space
pie_reserved, //5 RESERVED space
pie_reserved, //6 RESERVED space
pie_reserved, //7 RESERVED space
pie_reserved, //8 RESERVED space
pie_reserved, //9 RESERVED Space
pie_reserved, //RESERVED space
pie_reserved, //RESERVED space
pie_reserved, //RESERVED space
Non-peripheral interrupts
Int13_isr, //INT13 or Cpu-timer 1
Int14_isr, //INT14 or Cpu-timer 2
Datalog_isr, // datalogging Interrupt
Rtosint_isr, //RTOS interrupt
//---------------------------------------------------------------------------
Initpievecttable:
//---------------------------------------------------------------------------
This function initializes the PIE vector table to a known state.
This function must is executed after boot time.
void Initpievecttable (void)
{
int16 i;
Uint32 *source = (void *) &PieVectTableInit;
Uint32 *dest = (void *) &PieVectTable;
//Don't write over first 3 32-bit locations (These locations is
//initialized by boot ROM with boot variables)
Source = source + 3;
Dest = Dest + 3;
Eallow;
for (i=0; i <; i++)
*dest++ = *source++;
EDIS;
//Enable the PIE Vector Table
Piectrlregs. Piectrl. bit. Enpie = 1;
}
The function above is to convert all interrupt functions defined in DEFAULTISR.C to break entry addresses in the members of the Pievecttableinit struct variable, and then through void The initpievecttable (void) function moves the variable in the structure to the point where the first address of the pievecttable variable is at the beginning, as follows
#pragma Data_section (pievecttable,"Pievecttablefile");
#endif
struct Pie_vect_table pievecttable;
7,f28035_piectrl.c
Pie initialization function to initialize pie to a certain location
8,f28035_sysctrl.c
The system's clock control is done in this file.
9,f28035_memcopy.c
This is used when burning writes to Flash in a program that is copied to ram in the runtime. Because running a program in Flash requires a wait time to be inserted, running in RAM does not need to wait.
Ten,f28035_usdelay.asm
This is a time-lapse function, very simple. There is also a "Ramfuncs" in this file (details will be in other
Described in the article), so that you can use Memcopy () to copy it to RAM to run:
. def _dsp28x_usdelay
. Sect "Ramfuncs"
. Global __dsp28x_usdelay
_dsp28x_usdelay:
SUB ACC, #1
BF _dsp28x_usdelay,geq ;; Loop if ACC >= 0
Lretr
tms320f28035 Study record Four