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.

Trouble Starting with CCS v4 and Using ADC/GPIO pins for eZdsp F28335

Other Parts Discussed in Thread: TMS320F28335

Hi,

I'm currently a student at the University of Connecticut, working on my senior design project which involves the use of the eZdsp F28335. When I received the board, it came with Code Composer Studio v3.3, but it would not install on Windows 7 so I had to get the free trial version of CCS v4.

I'm extremely new to these applications and am having difficulties with some very beginner steps. All tutorials I've found seem to be geared towards more experienced workers and are very vague towards the solutions of my problems, such as:

- Connecting the F28335 to CCSv4 for program downloading: Using the mini USB port on the board, hooking the F28335 to my computer is no problem. But, how do I make the CCSv4 recognize that the board is attached?

- Coding in C/C++: I have extensive experience in C-coding, but none in C++. All of the example codes I've stumbled accross seem to have different syntax than I'm used to. I normally code in C with the MATLAB application. Should my codes from MATLAB be easily transferrable to CCSv4?

- Addressing ADC pins and storing data-in: For my project, I am taking vibrational readings using an accelerometer chip. The output from the accel chip is a voltage between 0V-2V, and I need to store the results from a minute-or-so long data acquisition period into the DSC. My main questions here are: How do I reference the ADCIN pin that I will be using? How can I set the clock speed? Where will this data be stored (and how do I reference this location)? And lastly,

- Referencing/toggling GPIO pins: I would like to implement analog devices such as toggle switches, pushbuttons, LEDs, and hopefully even interface an LCD screen to output final results. The pushbutton switch would be used to begin data acquistion, so I would just need to have my code check for either a high or low to know when to begin storing data. Is this as simple as writing a loop to check for if/when the pin goes to high/low? i.e. "if GPIOXDxx = 0, run DataAcquisition;" If so, are these pins simply referenced in code by the name they're given in the F28335's reference manual? Also, I would like to have a series of LEDs to indicate which of the many stages my code is running at. Like my theories on using the push-button switch, can I simply reference these LEDs by using the GPIO port names given in the reference manual? i.e. "GPIOXDxx = 1;" when I am at the point in my sequence for which I wish to turn on the LED indicator?

Any help would be greatly appreciated. You can either respond here or send me an email at eric.snapper@uconn.edu. I've been exhaustively searching reference manuals, tutorials, and message boards but have yet to find any examples specific enough to lead me in the right direction.

 

Thanks!