TMS320F28335 Library  1.0
Documentation
Delay

This page describes how to use the DELAY_US()-function


1) Click your Project with the right Mouse Button --> New --> File

2) Name your file "DSP2833x_usDelay.asm" - Ensure that it is an assembly file with ending .asm

delay1

delay2

Click Finish

delay3

3) Open file DSP2833x_usDelay.asm and replace code by this code

4) With included global_defines.h file, user is now able to use the DELAY_US() function which provides a delay for desired amount of microseconds


Code example

#include "global_defines.h" //Include global_defines.h
#include "system_controls/system_controls.h" //Include module of system controls
void main(void){
setSystemControls(); //Call setSystemControls() function
DELAY_US(150); //Delay of 150 microseconds
}
global_defines.h
Header file for global defines.
setSystemControls
void setSystemControls(void)
Configuration of system control register.
Definition: system_controls.c:13
system_controls.h
Header file for System Controls module.