Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
I am trying to test four GPIO pins at the same time on TMS320F2835 using Code Composer Studio, and I was wondering if there is a way to manually change the pin values without writing specific code to do so. Also, I have written a code to try and toggle the pins but haven't had any luck. The code compiles and loads to the MCU just fine but is not making the LED's blink. I have checked the GPADIR and it shows that all the bits are zero (all set to inputs). I included my code at the end of the post. Any help would be much appreciated. Thank you.
#include "DSP28x_Project.h"
void main(void)
{
//
// Disable Protection
//
EALLOW;
//
// Make Port A GPIOs outputs
//
GpioCtrlRegs.GPADIR.all =0x01304000;
while(1)
{
//
// Toggle GPIOs 14,20,21,24
//
GpioDataRegs.GPADAT.all = 0x00000000;
DELAY_US(1000000);
GpioDataRegs.GPADAT.all = 0x01304000;
DELAY_US(1000000);
}
}