This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: Serial Communication error

Part Number: TMS320F28335


Hello all,

I have defined all the below mentioned identifiers in serial communication program but the compiler is still showing the errors to define the same.

IE, SCON,  TMOD, TH1, TL1, TCON , PCON 

defining the pins.

#include "DSP2833x_Device.h"

#define LCD_RS GpioDataRegs.GPCDAT.bit.GPIO69 // LCD RS Pin

#define LCD_RW GpioDataRegs.GPCDAT.bit.GPIO68 // LCD Enable Pin
#define LCD_E GpioDataRegs.GPCDAT.bit.GPIO67 // LCD Enable Pin
#define plp GpioDataRegs.GPCDAT.bit.GPIO72
#define SCIRXDA GpioDataRegs.GPBDAT.bit.GPIO36
#define SCITXDA GpioDataRegs.GPBDAT.bit.GPIO35
#define LCDDATA GpioDataRegs.GPCDAT.all // LCD Data Lines

errors occured

Description Resource Path Location Type
#20 identifier "IE" is undefined serial.c /Serial_comunication line 168 C/C++ Problem
#20 identifier "PCON" is undefined serial.c /Serial_comunication line 174 C/C++ Problem
#20 identifier "SBUF" is undefined serial.c /Serial_comunication line 142 C/C++ Problem
#20 identifier "SCON" is undefined serial.c /Serial_comunication line 169 C/C++ Problem
#20 identifier "TCON" is undefined serial.c /Serial_comunication line 173 C/C++ Problem
#20 identifier "TH1" is undefined serial.c /Serial_comunication line 171 C/C++ Problem
#20 identifier "TL1" is undefined serial.c /Serial_comunication line 172 C/C++ Problem
#20 identifier "TMOD" is undefined serial.c /Serial_comunication line 170 C/C++ Problem
#29 expected an expression serial.c /Serial_comunication line 159 C/C++ Problem
gmake: *** [serial.obj] Error 1 Serial_comunication C/C++ Problem
gmake: Target 'all' not remade because of errors. Serial_comunication C/C++ Problem

can anyone suggest me what to do? 

need some sample codes on same topic.

Thanks in advance.