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.

Code for selection of external interface zone in TMS320F28335

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

HI,

i am new in embedded coding and from the past couple of weeks i am working on a code to interface external interface zone 7 of TMS320F28335 with an external device using XD0-XD7 (8 bits). though i am not sure if i am writing the correct code.

First of all i have defined an address location MAX2982 in zone 7 using the following code.

#define MAX2982 (Uint16 volatile *)0x200000 //Zone 7 address 

now , under a specific interrupt service routine i am writing to the external interface zone 7 using the following commands.

for (ndx = 0; ndx<50 ; ndx++)
{ *MAX2982 = (TestBuf1[ndx]);      // TestBuf is defined as a 16 bit unsigned integer. and contains some test values
 }

Next for reading the external interface zone i am using 

for(ndx2=0; ndx2<50; ndx2++)
{
MAX2982_data = *MAX2982;
TestBuf2[ndx2]= MAX2982_data;

}

Kindly reply if i am doing it right or wrong.